1、网络拓扑图
链接:https://pan.baidu.com/s/1QHtOl2Uyi47neJLqHlv21Q
提取码:8888
eNSP
链接:https://pan.baidu.com/s/1wP0vHim4yqVV0bc0wmzhFw
提取码:8888
2、网络需求
在R1和R3上配置IPv6 over IPv4实现IPv6网络互通。
3、配置
[R1-Tunnel0/0/0] ipv6 address auto link-local #注意如果不为tunnel口配置全局单播地址则必须为接口配置linklocal地址,否则接口的ipv6协议状态为down,如果配置了全局单播地址则系统将自动配置linklocal地址,因此无需再配置这条命令。
3.1、R1的配置
display current-configuration
[V200R003C00]
sysname R1
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
clock timezone China-Standard-Time minus 08:00:00
portal local-server load portalpage.zip
drop illegal-mac alarm
ipv6
set cpu-usage threshold 80 restore 75
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %
%
K8m.Nt84DZ}e#<0`8bmE3Uw}%
%
local-user admin service-type http
firewall zone Local
priority 15
interface GigabitEthernet0/0/0
ip address 192.168.12.1 255.255.255.0
interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 2001::1/64
interface GigabitEthernet0/0/2
interface NULL0
interface Tunnel0/0/0
ipv6 enable
ipv6 address auto link-local
tunnel-protocol ipv6-ipv4
source GigabitEthernet0/0/0
destination 192.168.23.2
ospf 1 router-id 192.168.12.1
area 0.0.0.0
network 192.168.12.0 0.0.0.255
ipv6 route-static :: 0 Tunnel0/0/0
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
wlan ac
return
3.2、R2 的配置
display current-configuration
[V200R003C00]
sysname R2
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
clock timezone China-Standard-Time minus 08:00:00
portal local-server load portalpage.zip
drop illegal-mac alarm
ipv6
set cpu-usage threshold 80 restore 75
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %
%
K8m.Nt84DZ}e#<0`8bmE3Uw}%
%
local-user admin service-type http
firewall zone Local
priority 15
interface GigabitEthernet0/0/0
ip address 192.168.12.2 255.255.255.0
interface GigabitEthernet0/0/1
ip address 192.168.23.1 255.255.255.0
interface GigabitEthernet0/0/2
interface NULL0
interface Tunnel0/0/0
ipv6 enable
ipv6 address auto link-local
tunnel-protocol ipv6-ipv4
source GigabitEthernet0/0/0
destination 192.168.12.1
ospf 1 router-id 192.168.12.2
area 0.0.0.0
network 192.168.12.0 0.0.0.255
network 192.168.23.0 0.0.0.255
ipv6 route-static :: 0 Tunnel0/0/0
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
wlan ac
return
3.3、R3 的配置
display current-configuration
[V200R003C00]
sysname R3
snmp-agent local-engineid 800007DB03000000000000
snmp-agent
clock timezone China-Standard-Time minus 08:00:00
portal local-server load portalpage.zip
drop illegal-mac alarm
ipv6
set cpu-usage threshold 80 restore 75
aaa
authentication-scheme default
authorization-scheme default
accounting-scheme default
domain default
domain default_admin
local-user admin password cipher %
%
K8m.Nt84DZ}e#<0`8bmE3Uw}%
%
local-user admin service-type http
firewall zone Local
priority 15
interface GigabitEthernet0/0/0
ip address 192.168.23.2 255.255.255.0
interface GigabitEthernet0/0/1
ipv6 enable
ipv6 address 2002::1/64
interface GigabitEthernet0/0/2
interface NULL0
interface Tunnel0/0/0
ipv6 enable
ipv6 address auto link-local
tunnel-protocol ipv6-ipv4
source GigabitEthernet0/0/0
destination 192.168.12.1
ospf 1 router-id 192.168.23.2
area 0.0.0.0
network 192.168.23.0 0.0.0.255
ipv6 route-static :: 0 Tunnel0/0/0
user-interface con 0
authentication-mode password
user-interface vty 0 4
user-interface vty 16 20
wlan ac
return
4.测试