[LARTC] GRE tunnel question

Linux Advanced Routing and Traffic Control

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I have set up GRE tunnels accoding to the LARTC
document but its not working.

I have 3 routers connected in the form of a ring.
They have interfaces as follows:

Mars: 172.16.0.2, 172.16.1.1
Mercury: 172.16.0.1, 172.16.2.2
Pluto: 172.16.2.1, 172.16.1.2

Mars can reach 0.0 and 1.0 networks but not 2.0
network.
I set up a tunnel as follows on Mars:

ip tunnel add netb mode gre remote 172.16.0.1 local
172.16.0.2 ttl 255
ip link set netb up
ip addr add 172.16.1.1 dev netb
ip route add 172.16.2.0/24 dev netb

When I ping 172.16.2.1 or 172.16.2.2, I get:

PING 172.16.2.1 (172.16.2.1) from 172.16.1.1 : 56(84)
bytes of data.

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux