Get the App
SLTechnology News&Howtos  ›  Network Security  › 

65. 6to4 Tunnel of IPv6 configuration experiment

Shulou Source: shulou.com Published: 2022-06-01 08:09:25 10月03日 Update

1, 6to4 Tunnel analysis

The network number 2002: c0a8:6301::/48 of the E0 interface is obtained from:

192.168.99.1 To convert to hexadecimal notation, it is c0a8:6301, and add 20002: to it to get the network number 2002:c0a8:6301::/48. The IP address of the E0 interface can be manually configured or automatically generated via eui-64.

2. Experimental topology

3. Experimental configuration

R1 configurations

ipv6 unicast-routing

interface FastEthernet1/0

ipv6 address 2002:202:202::1/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ipv6 address 2002:202:202:15::1/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 1.1.1.1

R2 configuration

ipv6 unicast-routing

interface Loopback0

ip address 2.2.2.2 255.255.255.0

interface Tunnel2

ipv6 unnumbered FastEthernet1/0

tunnel source Loopback0

tunnel mode ipv6ip 6to4

interface FastEthernet1/0

ipv6 address 2002:202:202::2/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ip address 23.1.1.2 255.255.255.0

ip route 3.3.3.0 255.255.255.0 23.1.1.3

ipv6 route 2002::/16 Tunnel2

ipv6 router ospf 110

router-id 2.2.2.2

redistribute static

R3 configuration

ipv6 unicast-routing

interface Loopback0

ip address 3.3.3.3 255.255.255.0

interface Tunnel3

ipv6 unnumbered FastEthernet1/0

tunnel source Loopback0

tunnel mode ipv6ip 6to4

interface FastEthernet1/0

ipv6 address 2002:303:303::3/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ip address 23.1.1.3 255.255.255.0

ip route 2.2.2.0 255.255.255.0 23.1.1.2

ipv6 route 2002::/16 Tunnel3

ipv6 router ospf 110

router-id 3.3.3.3

redistribute static

R4 configuration

ipv6 unicast-routing

interface FastEthernet1/0

ipv6 address 2002:303:303::4/64

ipv6 ospf 110 area 0

interface FastEthernet2/0

ipv6 address 2002:303:303:46::4/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 4.4.4.4

R5 configuration

ipv6 unicast-routing

interface FastEthernet2/0

ipv6 address 2002:202:202:15::5/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 5.5.5.5

R6 configuration

ipv6 unicast-routing

interface FastEthernet2/0

ipv6 address 2002:303:303:46::6/64

ipv6 ospf 110 area 0

ipv6 router ospf 110

router-id 6.6.6.6

4. Experimental test

Tags: Configuration lab interface network can be passed address manual topology automatic generation binary test generation Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology Shulou Information vpn OPPO Reno Xiaomi