16.3.2 Lab - Troubleshoot IPv4 and IPv6 Static and Default Routes - Preconfig
16.3.2 Lab - Troubleshoot IPv4 and IPv6 Static and Default Routes - Preconfig
Router R1
enable
config terminal
hostname R1
ipv6 unicast-routing
interface g0/0/1
ip address 192.168.0.17 255.255.255.240
ipv6 address fe80::1 link-local
ipv6 address 2001:db8:acad:16::1/64
no shutdown
interface g0/0/0
ip address 192.168.0.1 255.255.255.240
ipv6 address fe80::1 link-local
ipv6 address 2001:db8:acad::1/64
no shutdown
interface loopback 1
ip address 172.16.1.1 255.255.255.0
ipv6 address fe80::1 link-local
ipv6 address 2001:db8:acad:171::1/64
interface loopback 2
ip address 209.165.200.1 255.255.255.128
ipv6 address fe80::1 link-local
ipv6 address 2001:db8:acad:209::1/64
ip route 209.165.200.128 255.255.255.128 192.168.0.3
ip route 0.0.0.0 0.0.0.0 192.168.0.14 80
ip route 0.0.0.0 0.0.0.0 192.168.0.3
ipv6 route ::/0 2001:db8:acad:16::2
!Router R2
enable
config terminal
hostname R2
no ip domain lookup
ipv6 unicast-routing
interface g0/0/0
ip address 192.168.0.14 255.255.255.240
ipv6 address fe80::2 link-local
ipv6 address 2001:db8:acad::14/64
no shutdown
interface g0/0/1
ip address 192.168.0.30 255.255.255.240
ipv6 address fe80::2 link-local
ipv6 address 2001:db8:acad:16::2/64
no shutdown
interface loopback 1
ip address 172.16.2.1 255.255.255.0
ipv6 address fe80::2 link-local
ipv6 address 2001:db8:acad:172::1/64
interface loopback 2
ip address 209.165.200.129 255.255.255.128
ipv6 address fe80::2 link-local
ipv6 address 2001:db8:acad:210::1/64
ipv6 route 2001:db8:acad:209::/64 2001:db7:acad:16::1
ipv6 route ::/0 2001:db8:acad::1 90
ipv6 route ::/0 2001:db8:acad:15::1
ip route 0.0.0.0 0.0.0.0 192.168.0.17
end
!Switch S1
enable
config terminal
hostname S1
interface range f0/1-3, f0/6-24, g0/1-2
shutdown
end
!Switch S2
enable
config terminal
hostname S2
interface range f0/1-3, f0/6-24, g0/1-2
shutdown
end
a.Traffic from R1 to R2’s 172.16.2.1 address use the next hop 192.168.0.14.
R1#traceroute 172.16.2.1
R1(config)# no ip route 0.0.0.0 0.0.0.0 192.168.0.14 80
R1(config)# no ip route 0.0.0.0 0.0.0.0 192.168.0.3
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.0.14
R1(config)# ip route 0.0.0.0 0.0.0.0 192.168.0.30 80
R1(config)#end
b.Traffic from R1 to R2’s 209.165.200.129 address use the next hop 192.168.0.30.
R1#traceroute 209.165.200.129
R1(config)#no ip route 209.165.200.128 255.255.255.128 192.168.0.3
R1(config)#ip route 209.165.200.128 255.255.255.128 192.168.0.30
R1(config)#end
c.When R1’s G0/0/0 interface is shut down, traffic from R1 to R2’s 172.16.2.1 use
the next hop 192.168.0.30.
R1(config)#Int g0/0/0
R1(config)#sh
R1#traceroute 172.16.2.1
R2#traceroute 2001:db8:acad:171::1
R2(config)#no ipv6 route 2001::/0 2001:db8:acad::1 90
R2(config)#ipv6 route 2001::/0 2001:db8:acad::1
R2(config)#no ipv6 route 2001::/0 2001:db8:acad:15::1
R2(config)#ipv6 route 2001::/0 2001:db8:acad:16::1 80
R2#traceroute 2001:db8:acad:171:209::1
R2(config)#no ipv6 route 2001:db8:acad:209::/64 2001:db7:acad:16::1
R2(config)#ipv6 route 2001:db8:acad:209::/64 2001:db8:acad:16::1
R2(config)#end
R1(config)#Int g0/0/0
R1(config)#sh
R2#traceroute 2001:db8:acad:171::1