Hands-on teaching plan with practical examples for Cisco IOS/IOS-XE.
vlan [vlan-id]interface vlan [vlan-id]switchport mode trunk/accessswitchport access vlan [vlan-id]vtp domain [domain-name]vtp server/clientvtp version 3
configure terminal
vlan 10
name Sales
exit
interface GigabitEthernet0/1
switchport mode access
switchport access vlan 10
exit
interface GigabitEthernet0/2
switchport mode trunk
switchport trunk allowed vlan 10,20
Create VLAN 20 (HR), assign port Gi0/3 to VLAN 20, and configure VTP domain "NETWORKLAB".
router ospf [process-id]network [network] area [area-id]router eigrp [as-number]router bgp [as-number]neighbor [ip] remote-as [as-number]show ip ospf neighbor
configure terminal
router ospf 1
network 192.168.1.0 0.0.0.255 area 0
exit
router bgp 65001
neighbor 10.0.0.1 remote-as 65002
network 192.168.2.0 mask 255.255.255.0
Configure EIGRP between two routers with AS 100 and advertise 192.168.3.0/24.
ip route [network] [mask] [next-hop]ip nat inside/outsideip nat source list [acl] interface [interface] overloadshow ip nat translations
configure terminal
interface FastEthernet0/0
ip nat inside
exit
interface FastEthernet0/1
ip nat outside
exit
ip route 0.0.0.0 0.0.0.0 192.168.1.1
ip access-list extended NAT_ACL
permit ip 192.168.2.0 0.0.0.255 any
Set up static route to 172.16.1.0/24 via 10.10.10.1 and enable NAT.
ip access-list extended [acl-name]permit/deny [protocol] host/source wildcardip access-group [acl-name] in/outshow ip access-lists
configure terminal
ip access-list extended SECURE_ACLS
permit tcp 192.168.1.0 0.0.0.255 any eq 80
deny ip any 10.10.10.0 0.0.0.255
exit
interface GigabitEthernet0/1
ip access-group SECURE_ACLS in
Create an ACL blocking traffic from 172.16.0.0/16 to all ports except SSH.
interface Tunnel [number]tunnel source [ip]tunnel destination [ip]mls qosclass-map [name]policy-map [name]
configure terminal
interface Tunnel0
ip address 192.168.255.1 255.255.255.252
tunnel source 10.0.0.1
tunnel destination 10.0.0.2
exit
class-map match-all VOICE
match access-group name VOICE_ACL
policy-map QOS_POLICY
class VOICE
priority percent 50
Configure a GRE tunnel between two routers with IP 192.168.254.0/30.
snmp-server community [community] ROntp server [ip]logging host [ip]show snmpshow ntp status
configure terminal
snmp-server community NETWORKLABRO RO
ntp server 192.168.1.254
logging host 192.168.1.100
Configure NTP with server 10.10.10.254 and set SNMP community "READONLY".
debug ip ospf adjping [ip] source [interface]traceroute [ip]show ip interface briefshow cdp neighbors
Use debug commands to troubleshoot an OSPF neighbor adjacency issue.
Complete the following tasks: