Skip to contentSkip to conversation

Unnumbered GRE tunnel

LARTC Pullus Cuetlachtli 3 participants 3 messages Sep 23, 2007 – Sep 25, 2007

lore
Share & tools
lore
#0 lore raw

Hi!
Can I create the unnumbered GRE tunnel with iproute2 utility? Can someone provide me a link/howto/example_config how to do it? The topology is one tunnel between two linux boxes:
-- eth1-|__|-eth0 <-------------> eth0-|__|-eth1 --

I'm trying now with:
ip tu add tun1 mode gre local loc.IP remote rem.IP ttl 255 dev eth0 ip addr add tun1 0.0.0.0
ip link set tun1 up

but it doesn't succeed..
Thanks in advance for any help!
--
WBR Sagi Sh

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#1 lore raw
Quoted 2 lines · Pullus Cuetlachtli

Can I create the unnumbered GRE tunnel with iproute2 utility? Can someone provide me a link/howto/example_config how to do it?

If I understand what you are trying to do, you can try bridging, but I don't know if it will work the way you want it to or not.

Quoted 7 lines

The topology is one tunnel between two linux boxes:
-- eth1-|__|-eth0 <-------------> eth0-|__|-eth1 --

I'm trying now with:
ip tu add tun1 mode gre local loc.IP remote rem.IP ttl 255 dev eth0 ip addr add tun1 0.0.0.0 <http://0.0.0.0>
ip link set tun1 up

Bring your tunnel up like you are, with IPs on each end. Then bridge the tunnel interfaces with their local ethernet interfaces at each end.
In essence you are bridging your local ethernet segment with a common
element, the tunnel, and thus together them selves.

Grant. . . .
_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

#2 lore raw
In reply to Pullus Cuetlachtli

Hi' I'm using few ways to achieve a ip tunnel

option 1
ppp over ssh

option 2
ipip:
modprobe ipip
iptunnel add tundev mode ipip remote ${REMOTEIP}
ifconfig tundev $IP

or u can use gre like your email above,

hope it helps

Sew

Quoted 16 lines · Pullus Cuetlachtli

Hi!
Can I create the unnumbered GRE tunnel with iproute2 utility? Can someone provide me a link/howto/example_config how to do it? The topology is one tunnel between two linux boxes:
-- eth1-|__|-eth0 <-------------> eth0-|__|-eth1 --

I'm trying now with:
ip tu add tun1 mode gre local loc.IP remote rem.IP ttl 255 dev eth0 ip addr add tun1 0.0.0.0
ip link set tun1 up

but it doesn't succeed..
Thanks in advance for any help!
--
WBR Sagi Sh

Quoted 6 lines

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

_______________________________________________
LARTC mailing list
[email protected]
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc