Title: How to configure an IPv6 static route on Ruijie Switch? [Print this page] Author: zhangqiao@ruiji Time: 2024-11-14 17:22 Title: How to configure an IPv6 static route on Ruijie Switch? Introduction:
Static routes are manually configured by the network administrator. After astatic route is configured, a static route is generated in the routing table. Static routes are used to forward packets destined for the remote network. On a simple network, you can manually configure IPv6 static routes to implement network communication. Topology:
SW2(config-if-GigabitEthernet 0/2))# no switchport
SW2(config-if-GigabitEthernet 0/2))# ip address2003::2/64
SW2(config-if-GigabitEthernet 0/2))# exit
(3) Configure a static route on SW1 to forward the packets whose destinationaddress is 2002::/64 to 2003::2/64.
SW1(config)# ipv6 route 2002::/64 2003::2
(4) Configure a static route on SW2 to forward the packets whose destinationaddress is 2001::/64 to 2003::1/64.
SW2(config)# ipv6 route 2001::/64 2003::1
Verification:
Run "show ipv6 route" command to check the routing table of the device and verify that static routes exist.
(1) Routing table of SW1
SW1> enable
SW1# show ipv6 route
Codes: C -connected, S - static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area N1 -OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type1, E2 - OSPF external type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1,L2 - IS-IS level-2 ia - IS-IS interarea, * - candidate default
Gateway of last resort is no set
S 2002::/64 [1/0] via 2003::2
C 2003::/64 is directly connected, GigabitEthernet0/25
C 2003::1/64 is local host.
C 2003::2/64 is directly connected, FastEthernet0/1
C 2001::1/64 is local host
(2)Routing table of SW2
SW2> enable
SW2# show ipv6 route Codes: C - connected, S -static, R - RIP, B - BGP O - OSPF, IA - OSPF inter area N1 - OSPF NSSA externaltype 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPFexternal type 2 i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-ISlevel-2 ia - IS-IS inter area, * - candidate default Gateway of last resort isno set
S 2001::1/64 via 2003::1
C 2003::/64 is directly connected, GigabitEthernet0/25
C 2003::2/64 is local host.
C 2002::/64 is directly connected, FastEthernet 0/1
C 2002::1/64 is local host.
Welcome to Ruijie Community (https://community.ruijienetworks.com/)