Saturday, 15 November 2025

IPv6 Static, Default, and Dynamic routing lab

 In this lab, we see the configuration of  IPv6 static, default, and dynamic routing protocols. This lab is divided into three labs:

  • IPv6 Static routing
  • IPv6 Default routing
  • IPv6 Dynamic routing


- starting with IPv6 Static routing

Topology:-



  • Configure the topology as per the picture.
  • Configure the IPv6 address as per the topology
  • Configure IPv6 Static routing 
  • Verify the configuration with ping and show commands



R1(config)#ipv6 unicast-routing
R1(config)#interface fastethernet 0/0
R1(config-if)#ipv6 address 2001:1234:1234:1234::1/64
R1(config-if)#no shutdown
R1(config-if)#exit

R1(config)#interface fastethernet 2/0
R1(config-if)#ipv6 address fc00:1111:1111:1111::1/64
R1(config-if)#no shutdown
R1(config-if)#exit

R2(config)#ipv6 unicast-routing
R2(config)#interface fastethernet 0/0
R2(config-if)#ipv6 address 2001:1234:1234:1234::2/64
R2(config-if)#no shutdown
R2(config-if)#exit

R2(config)#interface fastethernet 2/0
R2(config-if)#ipv6 address fc00:1111:1111:2222::2/64
R2(config-if)#no shutdown
R2(config-if)#exit

R1#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::C801:3FFF:FE40:0
    2001:1234:1234:1234::1

ATM1/0                     [administratively down/down]
FastEthernet2/0            [up/up]
    FE80::C801:3FFF:FE40:38
    FC00:1111:1111:1111::1

GigabitEthernet3/0         [administratively down/down]
FastEthernet4/0            [administratively down/down]
FastEthernet4/1            [administratively down/down]

R2#show ipv6 interface brief
FastEthernet0/0            [up/up]
    FE80::C802:6CFF:FE10:0
    2001:1234:1234:1234::2

ATM1/0                     [administratively down/down]
FastEthernet2/0            [up/up]
    FE80::C802:6CFF:FE10:38
    FC00:1111:1111:2222::2

GigabitEthernet3/0         [administratively down/down]
FastEthernet4/0            [administratively down/down]
FastEthernet4/1            [administratively down/down]

PC2> ip auto
GLOBAL SCOPE      : fc00:1111:1111:1111:2050:79ff:fe66:6801/64
ROUTER LINK-LAYER : ca:01:3f:40:00:38

PC7> ip auto
GLOBAL SCOPE      : fc00:1111:1111:2222:2050:79ff:fe66:6805/64
ROUTER LINK-LAYER : cc:04:3e:ac:00:00

R1(config)#ipv6 route fc00:1111:1111:2222::/64 2001:1234:1234:1234::2
R1(config)#end

R2(config)#ipv6 route fc00:1111:1111:1111::/64 2001:1234:1234:1234::1
R2(config)#end

R1#show ipv6 route static
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
S   FC00:1111:1111:2222::/64 [1/0]
     via 2001:1234:1234:1234::2


R2#show ipv6 route static
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
S   FC00:1111:1111:1111::/64 [1/0]
     via 2001:1234:1234:1234::1


R1#ping fc00:1111:1111:2222::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FC00:1111:1111:2222::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 32/48/64 ms


R1#traceroute fc00:1111:1111:2222::2
Type escape sequence to abort.
Tracing the route to FC00:1111:1111:2222::2
  1 FC00:1111:1111:2222::2 36 msec 32 msec 56 msec
PC2> ping 2001:1234:1234:1234::1/64
2001:1234:1234:1234::1 icmp6_seq=1 ttl=64 time=32.271 ms
2001:1234:1234:1234::1 icmp6_seq=2 ttl=64 time=32.632 ms
2001:1234:1234:1234::1 icmp6_seq=3 ttl=64 time=32.318 ms
2001:1234:1234:1234::1 icmp6_seq=4 ttl=64 time=32.362 ms
2001:1234:1234:1234::1 icmp6_seq=5 ttl=64 time=32.418 ms
PC2> ping 2001:1234:1234:1234::2/64
2001:1234:1234:1234::2 icmp6_seq=1 ttl=63 time=128.036 ms
2001:1234:1234:1234::2 icmp6_seq=2 ttl=63 time=79.702 ms
2001:1234:1234:1234::2 icmp6_seq=3 ttl=63 time=95.755 ms
2001:1234:1234:1234::2 icmp6_seq=4 ttl=63 time=80.116 ms
2001:1234:1234:1234::2 icmp6_seq=5 ttl=63 time=80.655 ms
PC2> ping fc00:1111:1111:2222::2/64
fc00:1111:1111:2222::2 icmp6_seq=1 ttl=63 time=80.813 ms
fc00:1111:1111:2222::2 icmp6_seq=2 ttl=63 time=63.469 ms
fc00:1111:1111:2222::2 icmp6_seq=3 ttl=63 time=80.616 ms
fc00:1111:1111:2222::2 icmp6_seq=4 ttl=63 time=64.005 ms
fc00:1111:1111:2222::2 icmp6_seq=5 ttl=63 time=79.650 ms




In the second section, we see the configuration of IPv6 Default routing:

Topology:


  • Continuing the previous lab and erasing static routing 
  • Configure IPv6 default routing
  • Verify the configuration with show commands, ping and traceroute


R1(config)#no ipv6 route fc00:1111:1111:2222::/64 2001:1234:1234:1234::2
R2(config)#no ipv6 route fc00:1111:1111:1111::/64 2001:1234:1234:1234::1

R1(config)#ipv6 route 0::/0 2001:1234:1234:1234::2
R1(config)#end

R2(config)#ipv6 route 0::/0 2001:1234:1234:1234::1
R2(config)#end

R1#show ipv6 route static
IPv6 Routing Table - 7 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
S   ::/0 [1/0]
     via 2001:1234:1234:1234::2


R2#show ipv6 static
IPv6 Static routes
Code: * - installed in RIB
* ::/0 via nexthop 2001:1234:1234:1234::1, distance 1

R1#ping fc00:1111:1111:2222::2
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FC00:1111:1111:2222::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/43/56 ms


R1#traceroute fc00:1111:1111:2222::2
Type escape sequence to abort.
Tracing the route to FC00:1111:1111:2222::2
  1 FC00:1111:1111:2222::2 56 msec 36 msec 64 msec

R2#ping fc00:1111:1111:1111::1
Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FC00:1111:111\1:1111::1, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 28/32/36 ms


R2#traceroute fc00:1111:1111:1111::1
Type escape sequence to abort.
Tracing the route to FC00:1111:1111:1111::1
  1 FC00:1111:1111:1111::1 20 msec 36 msec 44 msec


In this third final lab, we see the configuration of IPv6 dynamic routing OSPF:

Topology:


  • Continuing our previous lab and erasing the previous default route configuration
  • Configure OSPFv3 routing 
  • Verify the configuration with show commands and ping 

R1(config)#no ipv6 route 0::/0 2001:1234:1234:1234::2
R1(config)#end


R2(config)#no ipv6 route 0::/0 2001:1234:1234:1234::1
R2(config)#end

R1(config)#ipv6 router ospf 1
*Nov 13 20:19:41.751: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id,please configure manually

R1(config-rtr)#router-id 100.1.1.1
R1(config-rtr)#exit

R1(config)#interface serial 5/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit

R1(config)#interface fastethernet 2/0
R1(config-if)#ipv6 ospf 1 area 0
R1(config-if)#exit

R1(config)#interface fastethernet 0/0
R1(config-if)#ipv6 ospf 1 area 1
R1(config-if)#exit

*Nov 13 20:26:00.503: %OSPFv3-5-ADJCHG: Process 1, Nbr 200.1.1.1 on FastEthernet0/0 from LOADING to FULL, Loading Done

*Nov 13 20:27:53.283: %OSPFv3-5-ADJCHG: Process 1, Nbr 33.1.1.1 on Serial5/0 from LOADING to FULL, Loading Done


R2(config)#ipv6 router ospf 1

*Nov 13 20:25:17.659: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id, please configure manually

R2(config-rtr)#router-id 200.1.1.1
R2(config-rtr)#exit

R2(config)#interface fastethernet 0/0
R2(config-if)#ipv6 ospf 1 area 1
R2(config-if)#exit

*Nov 13 20:25:59.475: %OSPFv3-5-ADJCHG: Process 1, Nbr 100.1.1.1 on FastEthernet 0/0 from LOADING to FULL, Loading Done

R2(config)#interface fastethernet 2/0
R2(config-if)#ipv6 ospf 1 area 1
R2(config-if)#exit

R3(config)#ipv6 unicast-routing
R3(config)#ipv6 router ospf 1
*Nov 14 09:48:49.883: %OSPFv3-4-NORTRID: OSPFv3 process 1 could not pick a router-id,
please configure manually
R3(config-rtr)#router-id 33.1.1.1
R3(config-rtr)#exit

R3(config)#interface serial 5/0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#exit
*Nov 14 09:49:30.599: %OSPFv3-5-ADJCHG: Process 1, Nbr 100.1.1.1 on Serial5/0 from LOADING to FULL, Loading Done
R3(config)#interface fastethernet 0/0
R3(config-if)#ipv6 ospf 1 area 0
R3(config-if)#exit

R1#show ipv6 route
IPv6 Routing Table - 10 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
C   2001:33:33:33::/64 [0/0]
     via ::, Serial5/0
L   2001:33:33:33::1/128 [0/0]
     via ::, Serial5/0
C   2001:1234:1234:1234::/64 [0/0]
     via ::, FastEthernet0/0
L   2001:1234:1234:1234::1/128 [0/0]
     via ::, FastEthernet0/0
O   FC00:33:33:33::/64 [110/65]
     via FE80::C805:2BFF:FEE4:0, Serial5/0
C   FC00:1111:1111:1111::/64 [0/0]
     via ::, FastEthernet2/0
L   FC00:1111:1111:1111::1/128 [0/0]
     via ::, FastEthernet2/0
O   FC00:1111:1111:2222::/64 [110/2]
     via FE80::C802:6CFF:FE10:0, FastEthernet0/0
L   FE80::/10 [0/0]
     via ::, Null0
L   FF00::/8 [0/0]
     via ::, Null0

R2#show ipv6 route ospf
IPv6 Routing Table - 9 entries
Codes: C - Connected, L - Local, S - Static, R - RIP, B - BGP
       U - Per-user Static route
       I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
       O - OSPF intra, OI - OSPF inter, OE1 - OSPF ext 1, OE2 - OSPF ext 2
       ON1 - OSPF NSSA ext 1, ON2 - OSPF NSSA ext 2
OI  2001:33:33:33::/64 [110/65]
     via FE80::C801:3FFF:FE40:0, FastEthernet0/0
OI  FC00:33:33:33::/64 [110/66]
     via FE80::C801:3FFF:FE40:0, FastEthernet0/0
OI  FC00:1111:1111:1111::/64 [110/2]
     via FE80::C801:3FFF:FE40:0, FastEthernet0/0

R3#ping fc00:1111:1111:2222::2

Type escape sequence to abort.
Sending 5, 100-byte ICMP Echos to FC00:1111:1111:2222::2, timeout is 2 seconds:
!!!!!
Success rate is 100 percent (5/5), round-trip min/avg/max = 68/79/92 ms

R3#traceroute fc00:1111:1111:2222::2

Type escape sequence to abort.
Tracing the route to FC00:1111:1111:2222::2

  1 2001:33:33:33::1 44 msec 40 msec 36 msec
  2 FC00:1111:1111:2222::2 76 msec 76 msec 60 msec





 



No comments:

What is OSPFv3 IPsec authentication? How to configure OSPFv3 authentication?

 If you're coming from an OSPFv2 world, you're used to typing in a simple {IP OSPF AUTHENTICATION-KEY} command. When you jump to IPv...