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: Configuration steps: (1)configure port ip for SW1 SW1> enable SW1# configure terminal SW1(config)# interface fastethernet 0/1 SW1(config-if-GigabitEthernet 0/1)# no switchport SW1(config-if-GigabitEthernet 0/1)# ipv6 address2001::1/64 SW1(config-if-GigabitEthernet 0/1)# interfaceGigabitEthernet 0/25 SW1(config-if-GigabitEthernet 0/2))# noswitchport SW1(config-if-GigabitEthernet 0/2))# ipv6 address2003::1/64 SW1(config-if-GigabitEthernet 0/2))# exit (2)configure port ip for SW2 SW2> enable SW2# configure terminal SW2(config)# interface fastethernet 0/1 SW2(config-if-GigabitEthernet 0/1)# no switchport SW2(config-if-GigabitEthernet 0/1)# ip address2002::1/64 SW2(config-if-GigabitEthernet 0/1)# interfaceGigabitEthernet0/25 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. |
This site contains user submitted content, comments and opinions and is for informational purposes only. Ruijie may provide or recommend responses as a possible solution based on the information provided; every potential issue may involve several factors not detailed in the conversations captured in an electronic forum and Ruijie can therefore provide no guarantee as to the efficacy of any proposed solutions on the community forums. Ruijie disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Ruijie Community Terms of Use.
More ways to get help: Visit Support Videos, call us via Service Hotline, Facebook or Live Chat.
©2000-2023 Ruijie Networks Co,Ltd