我校有用户与科学院高能所IPv4通信量较大,两个网络都有IPv6的高速通道,近期我们在IPv6上建设了IPv4透明通道,对这种应用进行了初步尝试。
设备:双方各有一台Linux机器,eth0口连接IPv6网络,可以互通。eth1口分别连接了IPv4的路由器。
其中: 科大方Linux IPv6地址是2001:da8:d800:f001::125路由器地址是210.45.229.249
高能所方Linux IPv6地址是2001:cc0:2010:23::17路由器地址是210.45.229.251
Linux运行程序v6tap, http://netfee.ustc.edu.cn/~james/v6tap.tgz
科大方的Liux启动脚本为:
brctl addbr ihep
brctl addif ihep eth1.40
ip link set ihep up
ip link set eth1.40 up
/usr/src/v6tap/v6tap /usr/src/v6tap/tunnel.cfg
tunnel.cfg文件内容为
2001:da8:d800:f001::125 5000 2001:cc0:2010:23::17 5000 ihep
路由器关键配置为:
interface Vlan40
description IHEP-v6-tunnel
ip address 210.45.229.249 255.255.255.248
router bgp 21045
bgp log-neighbor-changes
neighbor 210.45.229.251 remote-as 3460
address-family ipv4
neighbor 210.45.229.251 activate
neighbor 210.45.229.251 soft-reconfiguration inbound
neighbor 210.45.229.251 prefix-list ahernet out
no auto-summary
no synchronization
network 114.214.128.0 mask 255.255.128.0
network 121.251.0.0 mask 255.255.128.0
network 202.38.64.0 mask 255.255.224.0
…
ip prefix-list ahernet description AHERNET IP RANGE
ip prefix-list ahernet seq 4 permit 114.214.128.0/17
ip prefix-list ahernet seq 5 permit 121.251.0.0/17
ip prefix-list ahernet seq 10 permit 202.38.64.0/19
…
以上设置后,双方的IPv4数据,在IPv6和Linux机器正常时,会通过IPv6网络传递,单线程用
wget下载高能所服务器上的文件,带宽很容易到150Mbps以上。
我方设备上看到的路由表
#show bgp
BGP table version is 49, local router ID is 210.45.231.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 202.38.128.0/23 210.45.229.251 0 0 3460 i
*> 202.122.32.0/21 210.45.229.251 0 0 3460 i
0 Responses
Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.