日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

DCN-cs6200 ipv6 6to4隧道

發布時間:2023/11/27 生活经验 40 豆豆
生活随笔 收集整理的這篇文章主要介紹了 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隧道的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。