地 址
|
系 統
|
外網IP
|
外網網關
|
內網IP
|
內網網關
|
北 京
|
RHEL 5.4 64B
|
210.150.133.2
|
210.150.130.1
|
172.28.0.191
|
172.28.0.1
|
Centos 5.4 64B
|
|
|
172.25.0.192
|
172.25.0.1
|
|
廣 州
|
Centos 5.4 64B
|
118.148.160.2
|
118.148.160.1
|
10.8.1.178
|
10.8.1.179
|
Centos 5.4 64B
|
|
|
10.8.1.179
|
10.8.1.1
|
|
深 圳
|
Centos 5.4 64B
|
210.76.5.34
|
210.76.5.1
|
192.168.145.2
|
192.168.145.1
|
Centos 5.4 64B
|
|
|
192.168.145.3
|
192.168.145.1
|
insmod /lib/modules/2.6.18-164.el5/kernel/net/ipv4/ip_gre.ko前端
ip tunnel add bj-to-gz mode gre remote 118.147.160.2 local 210.150.130.2 ttl 255linux
ip link set bj-to-gz up服務器
ip addr add 10.0.0.1 dev bj-to-gz網絡
ip route add 10.8.1.0/24 dev bj-to-gzide
ip route add 10.0.1.0/24 dev bj-to-gz學習
insmod /lib/modules/2.6.18-164.el5/kernel/net/ipv4/ip_gre.ko測試
ip tunnel add gz-to-bj mode gre remote 210.150.130.2 local 118.147.160.2 ttl 255url
ip link set gz-to-bj upspa
ip addr add 10.0.1.1 dev gz-to-bj3d
ip route add 172.28.0.0/24 dev gz-to-bj
ip route add 10.0.0.0/24 dev gz-to-bj