NetA – RouterA – Inet – RouterB – NetB
Router A (eth0: 172.16.1.2/24; eth1: 10.0.0.0/24)
modprobe ip_gre
ip tunnel add gre0 mode gre \
remote 172.16.2.2 local 172.16.1.2
ip addr add 192.168.1.1 peer 192.168.1.2 dev gre0
ip link set gre0 up
ip route add 10.0.4.0/24 dev gre0
netstat -rn
Router A (eth0: 172.16.2.2/24; eth1: 10.0.4.0/24)
modprobe ip_gre
ip tunnel add gre0 mode gre \
remote 172.16.1.2 local 172.16.2.2
ip addr add 192.168.1.2 peer 192.168.1.1 dev gre0
ip link set gre0 up
ip route add 10.0.0.0/24 dev gre0
netstat -rn
No comments:
Post a Comment