需求:将两个孤立的IPV6网络通过IPV4连接起来

 

使用技术:IPV6隧道技术

 

要求:R1R2这两台边缘路由器必须支持IPV6

 

R1配置如下:

 

Ipv6 unicast-routing                        #IPV6路由单播

 

Interface loopback 0

No ip address

Ipv6 address 2000::/64 eui-64

Ipv6 enable

Ipv6 ospf network point-to-point                #指定OSPF网络类型

Ipv6 ospf 100 area   0                         #将接口加入OSPF100进程,区域为0

 

Interface FastEthernet 0/0

Ip addr 10.10.10.1 255.255.255.0

Duplex half

No cdp enable

 

#建立通道

 

Interface Tunnel 0

Ipv6 addr 2013:1:1:11::1/64

Ipv6 enable

Ipv6 ospf 100 area 0

Tunnel source FastEthernet 0/0                         #指定通道源接口

Tunnel destination 10.10.10.2                        #指定通道目标IPV4地址

Tunnel mode ipv6ip                              #指定通道模式为IPV6IP,Manual

 

#IPV6 OSPF 配置

Ipv6 router ospf 100

Router-id  1.1.1.1

log-addjacency-changes

 

R2配置如下:

 

Ipv6 unicast-routing

 

Interface loopback 0

No ip address

Ipv6 address 2001::/64 eui-64

Ipv6 enable

Ipv6 ospf network point-to-point

Ipv6 ospf 100 area   0

 

Interface FastEthernet 0/0

Ip addr 10.10.10.2 255.255.255.0

Duplex half

No cdp enable

 

#建立通道

 

Interface Tunnel 0

Ipv6 addr 2013:1:1:11::2/64

Ipv6 enable

Ipv6 ospf 100 area 0

Tunnel source FastEthernet 0/0

Tunnel destination 10.10.10.1

Tunnel mode ipv6ip

 

#IPV6 OSPF 配置

Ipv6 router ospf 100

Router-id  2.2.2.2

log-addjacency-changes