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.
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.
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
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.
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.
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 2andtransport input sshon 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.
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.
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:
| Type | What it does | When it is used |
|---|---|---|
| Static | Maps one private IP to one fixed public IP, 1 to 1 | Publishing an internal server to the Internet |
| Dynamic | Assigns public ones from a pool, as needed | When there are as many public IPs as simultaneous sessions |
| PAT (overload) | Many private ones share one public IP, told apart by port | The 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.
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
| Symptom | Likely cause | What to check |
|---|---|---|
| Clients on a subnet get no IP | The DHCP server is on another subnet | ip helper-address is missing on their interface |
| Logs do not line up across devices | The clocks are not synchronized | NTP: show ntp status and ntp server |
| The LAN loses its way out when a router fails | No gateway redundancy | HSRP: virtual IP, priority and preempt |
| Both HSRP routers think they are active | They do not see each other’s hellos | Same group, same subnet and link between them |
| An internal device cannot reach the Internet with NAT | Interfaces mismarked or the ACL excludes it | ip nat inside/outside and the NAT list |
| Voice breaks up when the network is busy | Without QoS, voice competes with data | Classification, 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.
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.
- Chapter 11 · Part 1IOS tools IWatch video
- Chapter 11 · Part 2IOS tools IIWatch video
- Chapter 11 · Part 3IOS tools IIIWatch video
- Chapter 11 · Part 4Lab: HSRP configuration IWatch video
- Chapter 11 · Part 5Lab: HSRP configuration IIWatch video
- Chapter 11 · Part 6NAT and PAT fundamentals IWatch video
- Chapter 11 · Part 7NAT and PAT fundamentals IIWatch video
- Chapter 11 · Part 8NAT and PAT configurationWatch video
- Chapter 11 · Part 9QoS fundamentalsWatch video
- Chapter 11 · Part 10QoS configuration with MQCWatch video
When you play a video, it loads from YouTube (no cookies until you open it). See the full playlist on YouTube.
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.
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
- Cisco U.: Implementing and Administering Cisco Solutions (CCNA) pathu.cisco.com
- Cisco Learning Network: community, forums and study resourceslearningnetwork.cisco.com
- Cisco Packet Tracer at Networking Academynetacad.com
Exam and certification
- Official CCNA 200-301 v1.1 exam topics (PDF)learningcontent.cisco.com
- Official CCNA certification pagecisco.com
Reference documentation
- Cisco: NAT frequently asked questionscisco.com
- Cisco: HSRP guidecisco.com
- RFC 5905: NTP version 4rfc-editor.org
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.
