3.8 Configure, verify, and troubleshoot IPv6 static routing

IPv6 static routing is the same as IPv4 the only difference is the structure of the IP addresses which use prefixes instead of netmasks.
For example here we create a static route to R3 through R2 and set the Administrative Distance to 1.

Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#ipv6 route ?
 X:X:X:X::X/<0-128> IPv6 prefix
 vrf IPv6 Routing table
Router(config)#ipv6 route 2001:DB8:0:3::/64 ?
 Async Async interface
 Auto-Template Auto-Template interface
 BVI Bridge-Group Virtual Interface
 CDMA-Ix CDMA Ix interface
 CTunnel CTunnel interface
 Dialer Dialer interface
 Ethernet IEEE 802.3
 GigabitEthernet GigabitEthernet IEEE 802.3z
 Lex Lex interface
 Loopback Loopback interface
 MFR Multilink Frame Relay bundle interface
 Multilink Multilink-group interface
 Null Null interface
 Port-channel Ethernet Channel of interfaces
 SSLVPN-VIF SSLVPN Virtual Interface
 Tunnel Tunnel interface
 Vif PGM Multicast Host interface
 Virtual-PPP Virtual PPP interface
 Virtual-Template Virtual Template interface
 Virtual-TokenRing Virtual TokenRing
 X:X:X:X::X IPv6 address of next-hop
 vmi Virtual Multipoint Interface
Router(config)#ipv6 route 2001:DB8:0:3::/64 2001:DB8::C802:17FF:FE35:8 ?
 <1-254> Administrative distance
 multicast Route only usable by multicast
 nexthop-vrf Nexthop IPv6 VRF
 tag Tag value
 unicast Route only usable by unicast
Router(config)#ipv6 route 2001:DB8:0:3::/64 2001:DB8::C802:17FF:FE35:8 1
Router#traceroute 2001:DB8:0:1:C803:17FF:FE44:8
*Apr 21 17:46:11.835: %SYS-5-CONFIG_I: Configured from console by console
Type escape sequence to abort.
Tracing the route to 2001:DB8:0:1:C803:17FF:FE44:8
1 2001:DB8:0:3:C803:17FF:FE44:1C 28 msec
 2001:DB8::C802:17FF:FE35:8 12 msec
 2001:DB8:0:3:C803:17FF:FE44:1C 12 msec


3.8.a Default route

Router(config)#ipv6 route ::/0 2001:DB8::C802:17FF:FE35:8

3.8.b Network route

Router(config)#ipv6 route 2001:DB8:0:1::/64 2001:DB8::C802:17FF:FE35:

3.8.c Host route

Router(config)#ipv6 route 2001:DB8:0:3:C803:17FF:FE44:1C/128 2001:DB8::C802:17FF:FE35:8

3.8.d Floating static

Router(config)#ipv6 route 2001:DB8:0:1::/64 2001:DB8::C802:17FF:FE35:8 254


IPv6 Routing Table - Default - 8 entries
Codes: C - Connected, L - Local, S - Static, U - Per-user Static route
 B - BGP, HA - Home Agent, MR - Mobile Router, R - RIP
 I1 - ISIS L1, I2 - ISIS L2, IA - ISIS interarea, IS - ISIS summary
 D - EIGRP, EX - EIGRP external
 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:DB8::C802:17FF:FE35:8
C 2001:DB8::/64 [0/0]
 via GigabitEthernet0/0, directly connected
L 2001:DB8::C801:17FF:FE26:8/128 [0/0]
 via GigabitEthernet0/0, receive
D 2001:DB8:0:1::/64 [90/3072]
 via FE80::C802:17FF:FE35:8, GigabitEthernet0/0
 via FE80::C803:17FF:FE44:1C, GigabitEthernet1/0
C 2001:DB8:0:3::/64 [0/0]
 via GigabitEthernet1/0, directly connected
L 2001:DB8:0:3:C801:17FF:FE26:1C/128 [0/0]
 via GigabitEthernet1/0, receive
S 2001:DB8:0:3:C803:17FF:FE44:1C/128 [1/0]
 via 2001:DB8::C802:17FF:FE35:8
L FF00::/8 [0/0]
 via Null0, receive

Leave a comment

Your email address will not be published. Required fields are marked *