Study guide · Domain 4.0
Network Services and Security
20% of the exam · 7 exam topics
Domain 4 is how a network is managed and protected: signing in to devices with local accounts and AAA servers, moving files securely, translating addresses with NAT and PAT, finding the DNS record behind a failed name lookup, how IPsec VPNs protect traffic, filtering with IPv4 ACLs, and the switch features that stop rogue DHCP servers, ARP spoofing, broadcast storms, rogue IPv6 routers and unknown devices.
A study feature written by ExamDragon, not part of the real exam. Each heading is one of this domain's 7 exam topics, as Cisco states it in the 200-301 CCNA v2.0 exam topics.
At a glance
Domain 4.0of the exam, as Cisco weights it for 200-301 v2.0
- Weight
- 20%
- Objectives
- 7
- Key terms
- 10
What this guide covers, topic by topic
- 4.1Configure network devices with local usernames and as an AAA client (TACACS+ and RADIUS) for management
- 4.2Manage device configuration and software files using secure file transfer operations with SFTP/SCP
- 4.3Configure NAT/PAT on IOS XE routers
- 4.4Diagnose issues with DNS records (A, AAAA, CNAME, MX, NS, and PTR) to support host, web application, and mail server access by name
- 4.5Describe IPsec remote access and site-to-site VPNs (protocols and transport modes)
- 4.6Configure IPv4 access control lists (standard, extended, numbered, and named ACLs)
- 4.7Configure Layer 2 security features
4.1Configure network devices with local usernames and as an AAA client (TACACS+ and RADIUS) for management
- A local account is username NAME privilege 15 secret PASSWORD. The secret keyword stores a one-way hash; the password keyword stores clear text, shown as reversible type 7 only when service password-encryption is on.
- aaa new-model turns on AAA. From then on, method lists decide how logins are checked: aaa authentication login LIST method1 method2, applied to a line with login authentication LIST. The list named default applies to every line that names no list.
- Methods are tried in order, and the next one is tried only when the current one returns an error, such as no server answering. A server that rejects the password ends the attempt. Put local last as the fallback for when the servers are unreachable.
- TACACS+ (Cisco developed) uses TCP port 49, encrypts the whole packet body and keeps authentication, authorization and accounting separate, which allows per-command authorization. It is the usual choice for device administration.
- RADIUS (open standard) uses UDP 1812 for authentication and 1813 for accounting (1645 and 1646 on older systems), encrypts only the password and combines authentication and authorization. It is the usual choice for network access such as 802.1X and VPN users, and it can also check device logins.
- IOS XE syntax: tacacs server NAME with address ipv4 and key; radius server NAME with address ipv4 A.B.C.D auth-port 1812 acct-port 1813 and key; optional server groups with aaa group server tacacs+ or radius; then group tacacs+, group radius or group NAME in the method list.
- The situationA router must check SSH administrators against the TACACS+ server 10.20.0.10, and still let the team in with a local account if that server is down.
- Step 1Create the fallback account first: username netops privilege 15 secret, so a mistake cannot lock you out.
- Step 2Enable AAA with aaa new-model and define tacacs server TAC1 with address ipv4 10.20.0.10 and the shared key.
- Step 3Configure aaa authentication login default group tacacs+ local, so every line tries TACACS+ and then local.
- Step 4Test a TACACS+ login, then test with the server unreachable and confirm the local account works.
- Where questions turnExpecting the local account to work when the TACACS+ server is up and rejects it, or swapping the facts: TACACS+ is TCP 49 and encrypts the whole body, RADIUS is UDP 1812 and 1813 and encrypts only the password.
- The takeawayLocal in the method list is a fallback for an unreachable server, not for a rejected password.
4.2Manage device configuration and software files using secure file transfer operations with SFTP/SCP
- SFTP and SCP both run over SSH on TCP port 22, so the login and the file are encrypted. TFTP (UDP 69) and FTP (TCP 21) send everything in clear text and do not meet a secure transfer requirement.
- SSH needs a host name, a domain name and an RSA key pair (crypto key generate rsa modulus 2048), and ip ssh version 2 is the standard setting. Restrict the vty lines with transport input ssh.
- For the router to act as an SCP server, it also needs AAA login authentication and exec authorization (so it knows the user's privilege level) and the ip scp server enable command, which is off by default.
- As a client, the router uses copy with a URL, source first then destination: copy running-config scp://user@host/file to back up, copy scp://user@host/file flash: or copy sftp://user@host/file flash: to fetch an image.
- Copying a file into running-config merges it with the current configuration; it does not replace it. To restore a whole configuration, copy it to startup-config and reload, or use configure replace.
- Before copying an image, check free space with dir flash:; after copying, verify the file with verify /md5 (or /sha512) against the hash the vendor publishes, before pointing the boot variable at it.
- The situationAn engineer must push a new IOS XE image to R1 from a workstation with SCP, but the copy fails while SSH logins work.
- Step 1Confirm SSH works and the account has privilege 15, with aaa authorization exec configured.
- Step 2Look for ip scp server enable in the running configuration; it is missing.
- Step 3Add ip scp server enable, repeat the transfer, then run verify /md5 on the file and compare the hash.
- Where questions turnChoosing TFTP or FTP for a transfer that must be secure, or getting the copy direction backwards and merging a backup into the running configuration.
- The takeawayWorking SSH is necessary but not enough: SCP server mode needs its own command.
4.3Configure NAT/PAT on IOS XE routers
- NAT terms: inside local is the inside host's own (usually private) address; inside global is the address the outside sees for it; outside global is the outside host's real address; outside local is how the outside host appears to the inside, usually the same as outside global.
- Mark each interface with ip nat inside (toward the private hosts) or ip nat outside (toward the ISP). An inside source rule translates traffic that goes from an inside interface out an outside interface, and translates the replies back.
- Static NAT, ip nat inside source static 192.168.10.5 203.0.113.5, is one to one and permanent, and outside hosts can start connections to the inside global address. It suits servers.
- Dynamic NAT uses a pool: ip nat pool NAME first last netmask mask, then ip nat inside source list ACL pool NAME. Without overload, each inside host takes one pool address, and the pool can run out.
- PAT (overload) lets many inside hosts share one address told apart by port: ip nat inside source list 1 interface GigabitEthernet0/0/0 overload, or pool NAME overload. The ACL selects which inside local addresses are translated.
- Verify with show ip nat translations (the four address columns) and show ip nat statistics (the inside and outside interfaces, hits, misses, mappings); clear dynamic entries with clear ip nat translation *.
- The situationAfter a new VLAN 20 is added, its hosts reach the inside network but not the internet, while VLAN 10 works.
- Step 1Check show ip nat statistics: the inside and outside interfaces are correct.
- Step 2Read the NAT rule: ip nat inside source list 1 interface Gi0/0/0 overload.
- Step 3Read access-list 1: it permits only 192.168.10.0 0.0.0.255, so add a permit for 192.168.20.0 0.0.0.255.
- Where questions turnMixing up inside global and outside local, or forgetting that a dynamic pool without overload gives one address per host and runs out.
- The takeawayWhen one subnet fails and another works, check the ACL the NAT rule names.
4.4Diagnose issues with DNS records (A, AAAA, CNAME, MX, NS, and PTR) to support host, web application, and mail server access by name
- A maps a name to an IPv4 address and AAAA to an IPv6 address. An IPv6-only client asks for AAAA, so a name with only an A record is unreachable for it.
- CNAME makes a name an alias of another name, which is then resolved; the target must have its own A or AAAA record. A CNAME cannot sit beside other records of the same name, so it cannot be used at the zone apex.
- MX names a domain's mail host and a preference; the lower value is tried first. An MX record holds a host name, never an address, and that host needs an A or AAAA record.
- NS names the authoritative servers for a zone, and the parent zone's NS records delegate it. Missing or wrong NS records break resolution for the whole zone.
- PTR maps an address back to a name, in in-addr.arpa with the octets reversed (25.113.0.203.in-addr.arpa for 203.0.113.25), or in ip6.arpa for IPv6. Mail servers often reject senders with no PTR.
- Diagnose with nslookup or dig: NXDOMAIN means the name does not exist; NOERROR with an empty answer means the name exists but has no record of that type. Cached answers last for the record's TTL. On a Cisco device, ip name-server and ip domain lookup make it a DNS client.
- The situationUsers cannot open portal.example.com, and dig returns NXDOMAIN with a CNAME to web07.example.com in the answer.
- Step 1Note that the alias exists, so the problem is the target name.
- Step 2Run dig web07.example.com A: NXDOMAIN, so the target has no record.
- Step 3Add the A record (and an AAAA record if IPv6 clients need it) and test again once the negative cache time has passed.
- Where questions turnFixing a forward lookup problem with a PTR record, or a reverse lookup problem with an A record, and thinking an MX record can hold an IP address.
- The takeawayFollow a CNAME to its end; the failure is usually at the target.
4.5Describe IPsec remote access and site-to-site VPNs (protocols and transport modes)
- A site-to-site VPN joins whole networks through gateways (routers or firewalls), so hosts behind them need no VPN software. A remote access VPN connects individual users, usually with a client on the device, to a headend.
- IKE negotiates the security associations and keys on UDP port 500 (IKEv1 in two phases, or IKEv2). When a peer is behind NAT, NAT traversal moves IKE and ESP to UDP port 4500.
- ESP (IP protocol 50) provides confidentiality by encryption, plus integrity and authentication. It is the protocol used in nearly all VPNs.
- AH (IP protocol 51) provides integrity and authentication but no encryption, and it does not work through NAT because NAT changes the header that AH protects.
- Tunnel mode protects the whole original packet and adds a new outer IP header, which suits gateways. Transport mode protects only the payload and keeps the original header, which suits two end hosts talking directly.
- IPsec carries unicast IP only, so routing protocol multicast between sites needs GRE over IPsec or a virtual tunnel interface.
- The situationHeadquarters must accept a site-to-site tunnel from a branch router that sits behind its ISP's NAT device.
- Step 1Recognise site-to-site with ESP in tunnel mode between the two gateways.
- Step 2Open UDP 500 for IKE and UDP 4500 for NAT traversal from the branch's public address.
- Step 3Do not plan on AH, because it cannot pass through NAT.
- Where questions turnThinking AH encrypts, or that transport mode hides the original addresses; ESP encrypts, and only tunnel mode hides the inner header.
- The takeawayBehind NAT, IPsec needs UDP 500 and UDP 4500, and only ESP works.
4.6Configure IPv4 access control lists (standard, extended, numbered, and named ACLs)
- An ACL is read top down, the first matching entry decides, and every ACL ends with an invisible deny any. A list needs at least one permit, or it blocks everything.
- Standard ACLs (1 to 99 and 1300 to 1999) match only the source address and are placed near the destination. Extended ACLs (100 to 199 and 2000 to 2699) match protocol, source, destination and ports, and are placed near the source.
- Wildcard masks invert the subnet mask: 0 bits must match, 1 bits are ignored. A /21 is 0.0.7.255, host 10.0.0.10 is 10.0.0.10 0.0.0.0, and any is 0.0.0.0 255.255.255.255.
- Named ACLs use ip access-list standard NAME or ip access-list extended NAME. Inside, sequence numbers place lines (5 deny ... goes before line 10), and no 20 removes one line; numbered ACLs can be edited the same way in this mode.
- Apply with ip access-group NAME in or out on an interface, one ACL per interface, direction and protocol. Use access-class on vty lines to limit who can reach the management sessions.
- show access-lists shows each entry with its match count, which shows which line is catching traffic; the implicit deny has no counter.
- The situationHosts on 192.168.10.0/24 must not Telnet to server 10.0.0.10, and all other traffic must pass.
- Step 1Choose an extended ACL, because the rule depends on the destination and port.
- Step 2Write deny tcp 192.168.10.0 0.0.0.255 host 10.0.0.10 eq 23, then permit ip any any.
- Step 3Apply it inbound on the interface where the hosts connect, near the source.
- Step 4Test Telnet and another service, and read the match counts.
- Where questions turnForgetting the implicit deny, writing the subnet mask instead of the wildcard, or adding a deny after a broader permit, where it is never reached.
- The takeawayMatch the most specific traffic first and always end with the permit that keeps everything else working.
4.7Configure Layer 2 security features
- DHCP snooping (4.7.a): ip dhcp snooping and ip dhcp snooping vlan N. All ports become untrusted, and server messages (offers, acknowledgments) are dropped on untrusted ports, so trust the port toward the real server or relay with ip dhcp snooping trust. It builds the binding table of IP, MAC, VLAN and port, and by default inserts option 82 (relay agent information).
- Dynamic ARP inspection (4.7.b): ip arp inspection vlan N checks the IP and MAC pair in ARP packets on untrusted ports against the DHCP snooping binding table and drops mismatches, stopping ARP spoofing. Trust uplinks with ip arp inspection trust, and allow static hosts with an ARP ACL (ip arp inspection filter).
- Storm control (4.7.c): storm-control broadcast level 20.00 (or multicast, unicast; level pps for packets per second) measures traffic each second and, by default, drops it while above the level. storm-control action shutdown or trap must be added to do more.
- RA guard (4.7.d): stops rogue IPv6 router advertisements. Create ipv6 nd raguard policy NAME with device-role host and attach it to access ports with ipv6 nd raguard attach-policy NAME; RAs arriving on those ports are dropped, while the router-facing port stays allowed.
- Port security (4.7.e): switchport port-security on an access port, maximum N addresses (default 1), learned dynamically, configured or sticky (saved into the running configuration). Violation modes: shutdown (default, err-disabled), restrict (drop, log and count), protect (drop silently, no count).
- An err-disabled port comes back with shutdown then no shutdown, or automatically with errdisable recovery cause psecure-violation (and its interval). Check with show port-security interface and show interfaces status err-disabled.
- The situationAfter DHCP snooping and DAI are turned on in VLAN 10, clients lose their addresses and a printer with a static address goes silent.
- Step 1Check where offers are dropped: on the untrusted uplink, so configure ip dhcp snooping trust there.
- Step 2Renew the clients and confirm bindings appear in show ip dhcp snooping binding.
- Step 3Note that the printer has no binding, so add an ARP ACL for its IP and MAC and apply it with ip arp inspection filter.
- Where questions turnAssuming restrict is the default violation mode (it is shutdown), trusting access ports instead of the uplink, or expecting DHCP snooping to stop rogue IPv6 router advertisements (that is RA guard).
- The takeawayDAI depends on DHCP snooping: fix the trusted ports first, then cover the static hosts.
Key terms
- AAA
- Authentication, Authorization, and Accounting
- TACACS+
- Terminal Access Controller Access-Control System Plus
- RADIUS
- Remote Authentication Dial-In User Service
- SCP
- Secure Copy Protocol
- SFTP
- SSH File Transfer Protocol
- PAT
- Port Address Translation
- ESP
- Encapsulating Security Payload
- AH
- Authentication Header
- IKE
- Internet Key Exchange
- DAI
- Dynamic ARP Inspection
Show the answer
No. A reject ends the attempt; local is tried only when the TACACS+ server returns an error, such as no answer. TACACS+ uses TCP port 49.
Built to Cisco's 200-301 CCNA v2.0 exam topics. The explanations, worked examples and traps are ExamDragon's own. Every source this path is built on.
