DCN-cs6200 ipv6 6to4隧道
DCN-cs6200 ipv6 6to4隧道:
SW-1配置:
CS6200-28X-EI>enable
CS6200-28X-EI#config terminal
CS6200-28X-EI(config)#hostname SW-1
SW-1(config)#vlan 10,20
SW-1(config)#interface vlan 10
SW-1(config-if-vlan10)#ip address 1.1.1.1 255.255.255.0
SW-1(config-if-vlan10)#no shutdown
SW-1(config-if-vlan10)#exit
SW-1(config-if-vlan10)#interface vlan 20
SW-1(config-if-vlan20)#ipv6 address 2022::1/64
SW-1(config-if-vlan20)#no shutdown
SW-1(config-if-vlan20)#exit
SW-1(config)#interface ethernet 1/0/1
SW-1(config-if-ethernet1/0/1)#switchport access vlan 20
SW-1(config-if-ethernet1/0/1)#no shutdown
SW-1(config)#interface ethernet 1/0/24
SW-1(config-if-ethernet1/0/24)#switchport access vlan 10
SW-1(config-if-ethernet1/0/24)#no shutdown
6to4隧道配置:
SW-1(config)#interface tunnel 1
SW-1(config-if-tunnel1)#tunnel source 1.1.1.1
SW-1(config-if-tunnel1)#tunnel mode ipv6ip 6to4
SW-1(config-if-tunnel1)#ipv6 address 2019::1/64 eui-64
SW-1(config-if-tunnel1)#exit
Show run 查看隧道地址:
…略
…略
interface Tunnel1
tunnel source 1.1.1.1
tunnel mode ipv6ip 6to4
ipv6 address 2002:101:101::1/64 //6to4地址
ipv6 address 2019::101:101/64 //tunnel地址
發放ipv6 默認路由和靜態路由:
SW-1(config)#ipv6 route ::/0 2019::101:102
SW-1(config)#ipv6 route 2021::/64 2002:101:102::1
查看ipv6 路由表:
show ipv6 route
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - IS-IS, B - BGP
Timers: Uptime
S ::/0 [1/0] via 2019::101:102, Tunnel1, 00:28:01 tag:0
C ::1/128 via ::, Loopback, 00:29:29 tag:0
C 2002:101:101::/64 via ::, Tunnel1, 00:06:38 tag:0
C 2019::/64 via ::, Tunnel1, 00:06:11 tag:0
S 2021::/64 [1/0] via 2002:101:102::1 (recursive via 2019::101:102, Tunnel1), 00:18:19 tag:0
C 2022::/64 via ::, Vlan20, 00:29:08 tag:0
SW-2配置:
CS6200-28X-EI>enable
CS6200-28X-EI#config terminal
CS6200-28X-EI(config)#hostname SW-2
SW-2(config)#vlan 10,20
SW-2(config)#interface vlan 10
SW-2(config-if-vlan10)#ip address 1.1.1.2 255.255.255.0
SW-2(config-if-vlan10)#no shutdown
SW-2(config-if-vlan10)#exit
SW-2(config-if-vlan10)#interface vlan 20
SW-2(config-if-vlan20)#ipv6 address 2021::1/64
SW-2(config-if-vlan20)#no shutdown
SW-2(config-if-vlan20)#exit
SW-2(config)#interface ethernet 1/0/1
SW-2(config-if-ethernet1/0/1)#switchport access vlan 20
SW-2(config-if-ethernet1/0/1)#no shutdown
SW-2(config)#interface ethernet 1/0/24
SW-2(config-if-ethernet1/0/24)#switchport access vlan 10
SW-2(config-if-ethernet1/0/24)#no shutdown
6to4隧道配置:
SW-2(config)#interface tunnel 1
SW-2(config-if-tunnel1)#tunnel source 1.1.1.2
SW-2(config-if-tunnel1)#tunnel mode ipv6ip 6to4
SW-2(config-if-tunnel1)#ipv6 address 2019::2/64 eui-64
SW-2(config-if-tunnel1)#exit
Show run 查看隧道地址:
…略
…略
interface Tunnel1
tunnel source 1.1.1.2
tunnel mode ipv6ip 6to4
ipv6 address 2002:101:102::1/64 //6to4地址
ipv6 address 2019::101:102/64 //tunnel地址
發放ipv6 默認路由和靜態路由:
SW-1(config)#ipv6 route ::/0 2019::101:101
SW-1(config)#ipv6 route 2021::/64 2002:101:101::1
查看路由表:
show ipv6 route
IPv6 Routing Table
Codes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,
I - IS-IS, B - BGP
Timers: Uptime
S ::/0 [1/0] via 2019::101:101, Tunnel1, 00:26:42 tag:0
C ::1/128 via ::, Loopback, 00:36:19 tag:0
C 2002:101:102::/64 via ::, Tunnel1, 00:00:23 tag:0
C 2019::/64 via ::, Tunnel1, 00:00:13 tag:0
C 2021::/64 via ::, Vlan20, 00:35:58 tag:0
S 2022::/64 [1/0] via 2002:101:101::1 (recursive via 2019::101:101, Tunnel1), 00:26:27 tag:0
總結
以上是生活随笔為你收集整理的DCN-cs6200 ipv6 6to4隧道的全部內容,希望文章能夠幫你解決所遇到的問題。