ipv6overipv4+linux,IPv4 over IPv6 的配置

对于 Cisco 路由器,可以使用 GRE ipv6 实现 IPv4 over IPv6

◆环境:

router_A 联一个 192.168.1.0/24 的IPv4子网,

router_B 联一个 192.168.2.0/24 的IPv4子网,

router_A 和 router_B 之间是通过 ipv6 互联。

◆需求:

192.168.1.0/24 和 192.168.2.0/24 两个IPv4子网之间互通。

◆配置:

router_A 配置

ipv6 unicast-routing

interface Tunnel1

ip address 10.0.0.1 255.255.255.0

tunnel source 2001:DA8:8000:100::8

tunnel destination 2001:DA8:B8:100::2

tunnel mode gre ipv6

interface FastEthernet0/0

no ip address

duplex auto

speed auto

ipv6 address 2001:DA8:8000:100::8/64

ipv6 enable

!

interface FastEthernet0/1

ip address 192.168.1.1 255.255.255.0

duplex auto

speed auto

ip route 192.168.2.0 255.255.255.0 Tunnel1

ipv6 route ::/0 2001:DA8:8000:100::1

router_B 配置

ipv6 unicast-routing

interface Tunnel1

ip address 10.0.0.2 255.255.255.0

tunnel source 2001:DA8:B8:100::2

tunnel destination 2001:DA8:8000:100::8

tunnel mode gre ipv6

!

interface GigabitEthernet0/0

no ip address

duplex auto

speed auto

ipv6 address 2001:DA8:B8:100::2/64

ipv6 enable

!

interface GigabitEthernet0/1

ip address 192.168.2.1 255.255.255.0

duplex auto

speed auto

ip route 192.168.1.0 255.255.255.0 Tunnel1

ipv6 route ::/0 2001:DA8:B8:100::1

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值