DCN-cs6200 ipv6 isatap 隧道
DCN-cs6200 ipv6 isatap 隧道:
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
Isatap 隧道配置:
sW-1(config)#int tunnel 1
sW-1(config-if-tunnel1)#tunnel source 1.1.1.1
sW-1(config-if-tunnel1)#tunnel nexthop 1.1.1.2
sW-1(config-if-tunnel1)#tunnel mode ipv6ip isatap
sW-1(config-if-tunnel1)#ipv6 address 2019::1/64 eui-64
sW-1(config-if-tunnel1)#exit
查看ipv6 隧道:
show ipv6 interface tunnel 1
Tunnel1 is up, line protocol is up, dev index is 16001
Device flag 0x81(UP NOARP)
IPv6 is disabled
Link-local address(es):
fe80::5efe:101:101 PERMANENT
Site-local address(es):
Global unicast address(es):
2019::5efe:101:101 //本端隧道地址 subnet is 2019::5efe:101:101/64 PERMANENT
Joined group address(es):
ff02::1
MTU is 1480 bytes
ND DAD is enabled, number of DAD attempts is 1
ND managed_config_flag is unset
ND other_config_flag is unset
ND NS interval is 1 second(s)
ND router advertisements is disabled
ND RA min-interval is 200 second(s)
ND RA max-interval is 600 second(s)
ND RA hoplimit is 64
ND RA lifetime is 1800 second(s)
ND RA MTU is 1500
ND advertised reachable time is 30000 millisecond(s)
ND advertised retransmit time is 1000 millisecond(s)
ND advertised default router preference is Medium
配置 ipv6默認路由:
sW-1(config)#ipv6 route ::/0 2019::5efe:101:102 // 對端隧道地址
查看路由表:
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::5efe:101:102, Tunnel1, 00:07:25 tag:0
C ::1/128 via ::, Loopback, 00:28:25 tag:0
C 2019::/64 via ::, Tunnel1, 00:13:24 tag:0
C 2022::/64 via ::, Vlan20, 00:14:24 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
Isatap 隧道配置:
sW-1(config)#int tunnel 1
sW-1(config-if-tunnel1)#tunnel source 1.1.1.2
sW-1(config-if-tunnel1)#tunnel nexthop 1.1.1.1
sW-1(config-if-tunnel1)#tunnel mode ipv6ip isatap
sW-1(config-if-tunnel1)#ipv6 address 2019::2/64 eui-64
sW-1(config-if-tunnel1)#exit
查看ipv6 隧道:
show ipv6 interface tunnel 1
Tunnel1 is up, line protocol is up, dev index is 16001
Device flag 0x81(UP NOARP)
IPv6 is disabled
Link-local address(es):
fe80::5efe:101:101 PERMANENT
Site-local address(es):
Global unicast address(es):
2019::5efe:101:102 //本端隧道地址 subnet is 2019::5efe:101:102/64 PERMANENT
Joined group address(es):
ff02::1
MTU is 1480 bytes
ND DAD is enabled, number of DAD attempts is 1
ND managed_config_flag is unset
ND other_config_flag is unset
ND NS interval is 1 second(s)
ND router advertisements is disabled
ND RA min-interval is 200 second(s)
ND RA max-interval is 600 second(s)
ND RA hoplimit is 64
ND RA lifetime is 1800 second(s)
ND RA MTU is 1500
ND advertised reachable time is 30000 millisecond(s)
ND advertised retransmit time is 1000 millisecond(s)
ND advertised default router preference is Medium
配置 ipv6默認路由:
sW-1(config)#ipv6 route ::/0 2019::5efe:101:101 // 對端隧道地址
查看路由表:
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::5efe:101:101, Tunnel1, 00:07:28 tag:0
C ::1/128 via ::, Loopback, 00:32:53 tag:0
C 2019::/64 via ::, Tunnel1, 00:07:56 tag:0
C 2021::/64 via ::, Vlan20, 00:08:34 tag:0
總結
以上是生活随笔為你收集整理的DCN-cs6200 ipv6 isatap 隧道的全部內容,希望文章能夠幫你解決所遇到的問題。