NETWORKING · CCNA V1.1 · CHAPTER 11

IP services

The network already routes and switches; now you add the services that make it usable and manageable: the time, automatic addressing, monitoring, a gateway that does not go down, the way out to the Internet and quality for voice and video.

55 min read · 3 sessionsDomain 4 · IP Services (and 3.5 · FHRP)Level: intermediateAGLE method · A, G, L, E
AGLE methodSelf-studyAll the chapter text, at your own pace.

From point A to point B

Point A: your devices route and switch, but their clocks disagree, every PC needs a manual IP, you never find out when something fails, if the gateway goes down the LAN loses its way out, you do not know how to share one public IP among a hundred devices, nor why the voice call breaks up when someone downloads a file. Point B: by the end you will synchronize the time with NTP, explain DHCP and DNS and configure a relay, describe SNMP and the syslog levels, provide a redundant gateway with an FHRP, configure static, dynamic and PAT NAT, and explain how QoS prioritizes delay-sensitive traffic.

This chapter covers domain 4, IP Services (10% of the v1.1 exam): NAT (4.1), NTP (4.2), DHCP and DNS (4.3), SNMP (4.4), syslog (4.5), DHCP client and relay (4.6), QoS (4.7), SSH (4.8) and TFTP/FTP (4.9). It adds the FHRPs of topic 3.5, which the blueprint places under IP connectivity but which are, in practice, another network service.

NTP: the network’s clock

Without a common time, the logs of two devices cannot be correlated, certificates fail and scheduled tasks drift. NTP (Network Time Protocol, UDP 123) synchronizes every device’s clock with a reliable source.

NTP: synchronizes the clock by strataNTP keeps the same time across the network, essential for logs, certificates and security. It is organized in strata: stratum 0 is an exact time source (atomic clock or GPS), and each hop adds one. A device is a client of a server at a lower stratum.LOWER STRATUM = CLOSER TO THE SOURCE · UDP 123Stratum 0Atomic clock / GPSStratum 1NTP serverStratum 2Router (client and server)Stratum 3Switches and PCsntp server …ntp master 2Stratum 16 means “unsynchronized”; show ntp status and show ntp associations verify it

The NTP stratum hierarchy. Diagram: The House of Routing.

NTP is organized in strata: stratum 0 is an exact time source (atomic clock or GPS), stratum 1 is a server directly connected to it, and each hop adds one. A lower stratum number is closer to the source and more reliable. Stratum 16 means “unsynchronized”.

! Client of an external NTP server
R1(config)# ntp server 200.1.1.1
! Or be the local reference (stratum 2) for the internal network
R1(config)# ntp master 2
R1# show ntp status
R1# show ntp associations

A router can be a client of a server and at the same time a server for the devices on its network. For security, NTP supports authentication with keys, so a device only accepts the time from a trusted source.

DHCP and DNS

Two services make connecting automatic. DHCP hands out the IP configuration; DNS translates names (thehouseofrouting.com) into IP addresses, so no one has to remember numbers.

DHCP: how a client gets its IPDHCP automatically hands out IP, mask, gateway and DNS. The exchange is four messages (DORA). If the server is on another subnet, the router acts as a relay with ip helper-address and forwards the broadcast request as unicast to the server.DISCOVER · OFFER · REQUEST · ACK (DORA)ClientDHCP serverRouter (relay)ip helper-address 10.0.0.101 DISCOVER (broadcast)2 OFFER3 REQUEST (broadcast)4 ACKThe client uses “ip address dhcp”; the relay turns the broadcast into unicast to the server

The DORA exchange and the relay. Diagram: The House of Routing.

DHCP hands out IP, mask, gateway and DNS server in four messages, the DORA exchange: Discover (the client asks by broadcast), Offer (the server offers an address), Request (the client asks for it) and Ack (the server confirms). The client is configured with ip address dhcp.

The catch: Discover travels by broadcast and routers do not forward it, so a server on another subnet never receives it. The fix is the relay: on the client’s interface you put ip helper-address with the server’s IP, and the router turns the broadcast into a unicast aimed at the server.

! The router as a DHCP server
R1(config)# ip dhcp excluded-address 10.0.0.1 10.0.0.9
R1(config)# ip dhcp pool LAN
R1(dhcp-config)# network 10.0.0.0 255.255.255.0
R1(dhcp-config)# default-router 10.0.0.1
R1(dhcp-config)# dns-server 8.8.8.8
! The router as a relay toward a server on another subnet
R1(config)# interface gigabitethernet0/0
R1(config-if)# ip helper-address 10.0.0.10
Exam tip. If clients on a subnet get no IP and the DHCP server is on another, the ip helper-address is almost always missing on the interface those clients arrive through.

SNMP: management and monitoring

SNMP (Simple Network Management Protocol) lets you watch and configure many devices from a central station.

SNMP: network management and monitoringSNMP lets a management station (NMS) query and configure devices. Each device’s agent exposes its data in a MIB, identified by OIDs. The NMS does GET and SET; the agent sends a TRAP or INFORM when something happens. v2c uses clear-text communities; v3 adds authentication and encryption.GET / SET FROM THE NMS · TRAP FROM THE AGENTNMS (manager)Agent (device)MIB · OIDGET / SET · UDP 161TRAP / INFORM · UDP 162VersionSecurityv1Clear-text communityv2cClear-text community + GETBULKv3Authentication and integrity + encryption

NMS, agent, MIB and the SNMP messages. Diagram: The House of Routing.

  • The NMS (management station) does a GET to read a value and a SET to change it, over UDP 161.
  • Each device’s agent exposes its data in a MIB, a hierarchical database whose objects are identified by an OID.
  • The agent sends a TRAP (or an INFORM, which waits for acknowledgment) over UDP 162 when something happens, without the NMS having to ask.

There are three versions: v1 and v2c use a “community” (a kind of password) that travels in clear text; v2c adds GETBULK. v3 is the only secure one: it adds authentication, integrity and encryption. Use SNMPv3 whenever you can.

Syslog

Syslog records the device’s events (an interface going down, a security violation) and can send them to a central server to keep and analyze.

Syslog: severity levelsSyslog records the device’s events and can send them to a central server. Each message carries a severity level from 0 to 7: the lower the number, the more severe. When you configure logging at a level, that level and all more severe ones are logged.FROM 0 (EMERGENCY) TO 7 (DEBUGGING) · LOWER = MORE SEVERELevelNameMeaning0EmergencySystem unusable1AlertImmediate action2CriticalCritical condition3ErrorError4WarningWarning5NotificationNormal but notable6InformationalInformational7DebuggingDebugginglogging host 10.0.0.20 sends messages to a server; logging trap 5 limits the level

The eight severity levels. Diagram: The House of Routing.

Each message has a severity level from 0 to 7: the lower the number, the more severe. When you set a level with logging trap, that level and all the more severe ones (lower numbers) are logged. A trick to remember the order: Every Awesome Cisco Engineer Will Need Icecream Daily (Emergency, Alert, Critical, Error, Warning, Notification, Informational, Debugging).

R1(config)# logging host 10.0.0.20
R1(config)# logging trap 5      ! levels 0 to 5
R1(config)# service timestamps log datetime msec
R1# show logging

A typical message is %LINK-3-UPDOWN: the facility (LINK) says which subsystem generated it and the number (3) is the severity. That is why NTP matters so much: without a synchronized time, the log timestamps are useless for correlating an incident across devices.

SSH, TFTP and FTP

The blueprint groups three management services here:

  • SSH (TCP 22) is secure remote access to the CLI, which you saw in chapter 10. Remember the requirements: hostname, ip domain-name, a user, crypto key generate rsa, ip ssh version 2 and transport input ssh on the VTY lines. Never use Telnet.
  • TFTP (UDP 69) is a minimal file transfer with no authentication. It is used to copy the IOS or the configuration to a server and back: copy running-config tftp:.
  • FTP (TCP 20 and 21) also transfers files, but with a username and password, and is more reliable than TFTP over lossy networks.
! Back up the configuration to a TFTP server
R1# copy running-config tftp:
Address or name of remote host []? 10.0.0.30
Destination filename [r1-confg]?

Backing up the configuration and the IOS to a server is part of maintenance: if a device breaks, you restore its configuration in minutes.

First-hop redundancy (FHRP)

Every device on a LAN points to a single default gateway. If that router goes down, the whole LAN loses its way out, even if there is a second router right next to it. An FHRP (First Hop Redundancy Protocol) solves this by presenting a virtual gateway.

FHRP: a redundant default gatewayIf the default gateway goes down, the whole LAN loses its way out. An FHRP like HSRP presents a virtual IP and MAC that clients use as their gateway. One router is active and another on standby; if the active one fails, the standby takes over without clients changing anything.HSRP: VIRTUAL IP 192.168.1.1 · MAC 0000.0C07.ACxxACTIVE routerpriority 110 · preemptSTANDBY routerpriority 100HSRP helloVirtual gateway192.168.1.1ClientsProtocolOriginLoad-balancesHSRPCiscoNo (one active)VRRPStandardNo (one master)GLBPCiscoYes (several forward)

HSRP: active and standby routers and the virtual IP. Diagram: The House of Routing.

The most used in the CCNA is HSRP, from Cisco. Two or more routers share a virtual IP and a virtual MAC (0000.0C07.ACxx, where xx is the group number). Clients use that virtual IP as their gateway. One router is active (forwards) and another is on standby; if the active one stops sending its hellos, the standby takes over in seconds, without clients changing anything.

R1(config)# interface gigabitethernet0/0
R1(config-if)# ip address 192.168.1.1 255.255.255.0
R1(config-if)# standby 1 ip 192.168.1.3
R1(config-if)# standby 1 priority 110
R1(config-if)# standby 1 preempt
  • The highest priority wins the active role (default 100); with preempt, a router that comes back with a better priority reclaims the active role.
  • The virtual IP belongs to no physical interface: it is the one clients use.
  • Alternatives: VRRP is the open-standard equivalent; GLBP, from Cisco, also spreads the load across several routers at once.

NAT and PAT

Public IPv4 addresses ran out, so networks use private addresses inside and translate them to public ones on the way out. That is NAT.

NAT: translates private addresses into public onesNAT lets many devices with a private IP reach the Internet with public addresses. The exam distinguishes four views of one address and three variants: static (1 to 1), dynamic (from a pool) and PAT, which multiplexes many devices onto a single public IP using ports.INSIDE LOCAL → INSIDE GLOBAL · PAT MULTIPLEXES WITH PORTSPC192.168.1.10R1 (NAT)Serverip nat insideip nat outsideInside local: 192.168.1.10Inside global: 200.1.1.1:1050ip nat inside source list 10 interface g0/1 overloadTypeWhat it doesKey commandStaticOne private ↔ one fixed publicip nat inside source staticDynamicFrom a pool of public onesip nat inside source list … poolPAT (overload)Many private → one public, by portsip nat inside source list … overload

The views of the address and the NAT types. Diagram: The House of Routing.

The exam distinguishes four names for the same address, depending on where and how it is seen: inside local (the internal device’s private one), inside global (the public one that device appears as outside), outside local and outside global (the external device’s). Interfaces are marked with ip nat inside and ip nat outside. There are three variants:

TypeWhat it doesWhen it is used
StaticMaps one private IP to one fixed public IP, 1 to 1Publishing an internal server to the Internet
DynamicAssigns public ones from a pool, as neededWhen there are as many public IPs as simultaneous sessions
PAT (overload)Many private ones share one public IP, told apart by portThe usual case: a whole office with a single public IP
! PAT: the whole LAN leaves with the outside interface’s IP
R1(config)# interface gigabitethernet0/0
R1(config-if)# ip nat inside
R1(config)# interface gigabitethernet0/1
R1(config-if)# ip nat outside
R1(config)# access-list 10 permit 192.168.1.0 0.0.0.255
R1(config)# ip nat inside source list 10 interface gigabitethernet0/1 overload
! Static NAT of an internal server
R1(config)# ip nat inside source static 192.168.1.100 200.1.1.5
R1# show ip nat translations

PAT (Port Address Translation, also “NAT overload”) is what almost every home and office network uses: it shares a single public IP among hundreds of devices, telling each connection apart by its source port number.

QoS

When a link gets congested, you have to decide which traffic goes first. A voice call tolerates no delay; a download does. QoS (quality of service) gives that preferential treatment to sensitive traffic.

QoS: per-hop behavior (PHB)When there is congestion, QoS decides which traffic goes first. The per-hop behavior (PHB) is applied on each device: first the traffic is classified and marked, then queued by priority, and the excess is controlled with policing (drops) or shaping (delays). Voice and video, sensitive to delay, go first.CLASSIFY · MARK · QUEUE · CONTROLClassifyIdentifies the trafficMarkDSCP / CoSQueuePriority per queueControlPolicing or shapingPolicing drops the excess; shaping delays it in a buffer. The trust boundary marks where the marking is believed

The per-hop behavior (PHB): classify, mark, queue and control. Diagram: The House of Routing.

The blueprint asks you to understand the per-hop behavior (PHB): each device along the path treats traffic according to how it is marked. The steps are:

  • Classification: identify which class each packet belongs to (voice, video, data) by port, protocol or an ACL.
  • Marking: write that class into the header, so other devices need not reclassify it. At layer 3 you use DSCP (6 bits of the ToS field, e.g. EF for voice); at layer 2, CoS.
  • Queuing: each interface has several queues; traffic marked as priority leaves first. Voice usually goes in a low-latency queue.
  • Controlling the excess: policing drops traffic over a limit; shaping holds it in a buffer and releases it more slowly. Congestion avoidance (WRED) drops some packets early to keep the queue from filling.

A key concept is the trust boundary: the point in the network up to which the marking the traffic carries is believed. A Cisco IP phone is trusted; the PC plugged in behind it is not, so a user cannot mark their download as voice.

Verification

R1# show ntp status
R1# show ntp associations
R1# show ip dhcp binding
R1# show ip dhcp pool
R1# show standby brief
R1# show ip nat translations
R1# show ip nat statistics
R1# show logging
R1# show snmp
  • show ntp status: whether the clock is synchronized and with which stratum.
  • show ip dhcp binding: which IP the server handed out and to which MAC.
  • show standby brief: the HSRP state (Active/Standby), the priority and the virtual IP of each group.
  • show ip nat translations: the live NAT translation table; with PAT you see the same global IP with different ports.

Troubleshooting

SymptomLikely causeWhat to check
Clients on a subnet get no IPThe DHCP server is on another subnetip helper-address is missing on their interface
Logs do not line up across devicesThe clocks are not synchronizedNTP: show ntp status and ntp server
The LAN loses its way out when a router failsNo gateway redundancyHSRP: virtual IP, priority and preempt
Both HSRP routers think they are activeThey do not see each other’s hellosSame group, same subnet and link between them
An internal device cannot reach the Internet with NATInterfaces mismarked or the ACL excludes itip nat inside/outside and the NAT list
Voice breaks up when the network is busyWithout QoS, voice competes with dataClassification, marking and a priority queue

For your notes. Lab 1 configures PAT on the edge router (RT-GW-01): the 192.168.1.0/24 LAN reaches the Internet with the outside interface’s IP. Lab 2 configures HSRP between two devices with the virtual IP 192.168.1.3, priority and preempt, and checks the failover by shutting down the active one.

What you take away

  • NTP (UDP 123) synchronizes the time by strata: a lower stratum is closer to the source; 16 = unsynchronized.
  • DHCP hands out IP in four steps (DORA); if the server is on another subnet, the router needs ip helper-address. DNS translates names into addresses.
  • SNMP: the NMS does GET/SET (UDP 161) and the agent sends TRAP (UDP 162); v3 is the only secure version.
  • Syslog: levels 0 (Emergency) to 7 (Debugging); a lower number is more severe; the facility names the subsystem.
  • SSH (TCP 22) for the remote CLI; TFTP (UDP 69) and FTP (TCP 20/21) to copy the IOS and the configuration.
  • FHRP: a virtual IP and MAC give a redundant gateway. HSRP (Cisco): active/standby, priority and preempt. VRRP is the standard; GLBP spreads the load.
  • NAT: inside local/global; static (1 to 1), dynamic (pool) and PAT (many to one by ports). Mark the interfaces with ip nat inside/outside.
  • QoS (PHB): classify, mark (DSCP/CoS), queue and control; policing drops and shaping delays. The trust boundary decides where the marking is believed.

In the next chapter you close the course with network architecture: two- and three-tier topologies, spine-leaf, firewalls, controllers, PoE, the cloud and virtualization.

AGLE methodInstructor-guidedThe class slides and videos.

Slides

These slides support the guided class: view them here, full screen, or download the PDF for your notes. Part 1 goes with videos 1 to 3 (IOS tools); Part 2, videos 4 and 5 (the HSRP lab); Part 3, videos 6 to 8 (NAT and PAT), and Part 4, videos 9 and 10 (QoS).

Class videos

The videos are in Spanish. The translation of the videos is in development.

Each part of the chapter has its own video. Tap a card and the video opens right here, over the page; use the Close button or the Esc key to go back to where you were. Use them alongside the slides of the same part.

When you play a video, it loads from YouTube (no cookies until you open it). See the full playlist on YouTube.

AGLE methodLabsHands-on practice in Packet Tracer.

Packet Tracer labs

The labs are in Spanish. The translation of the labs is in development.

Download each lab's files and open them with Cisco Packet Tracer. Tap the name to see the two downloads.

Lab 1Configuring NAT overload (PAT)

A SOHO LAN (192.168.1.0/24) reaches the Internet through the edge router RT-GW-01, with the inside interface marked ip nat inside and the outside one (200.100.101.2) ip nat outside. You configure PAT with an ACL that selects the LAN and ip nat inside source list … interface … overload, so that every device leaves with the outside interface’s IP. Then you check with a ping to the Internet and with show ip nat translations, where you will see the same global IP with different ports. The topology carries no personal data.

Lab 2Configuring HSRP

Two devices share the virtual gateway 192.168.1.3 of group 1, while the LAN clients use it as their gateway. You configure standby 1 ip, raise the priority and enable preempt on the one that should be active, and leave the other on standby. You verify with show standby brief which is Active and which Standby, and check the failover by shutting down the active one’s interface: the standby takes over without clients losing their way out. The topology carries no personal data.

AGLE methodContinuous assessmentExam-style questions to measure your progress.

Chapter assessment

There are 100 single-choice questions, split into 10 tabs of 10. Each tab mixes every topic in the chapter and rises in level: questions 1 to 3 are low difficulty, 4 to 8 are medium and 9 to 10 are high.

We do not save your answers. They run in your browser and, if you close or reload the page, you start from zero. Getting it wrong here is the cheapest way to learn.

Additional resources

These links take you to official sites outside this portal. Use them to practice, go further and confirm what you learned.

To study and practice

Exam and certification

Reference documentation

Source and credits. Chapter built from the IP-services slide decks and mentoring sessions (IOS tools, HSRP, NAT and PAT, and QoS) of Jesús Espinoza’s CCNA 200-301 course, paraphrased, updated and aligned with the official CCNA 200-301 v1.1 exam topics. Text written with AI assistance; original diagrams by The House of Routing. Technical data was checked against official Cisco documentation and the NTP (5905), DHCP (2131), SNMP (3411) and syslog (5424) RFCs.

Navigate