OpenVZ Forum


Home » General » Support » GRE/IPIP tunnel support on VE
GRE/IPIP tunnel support on VE [message #6672] Thu, 21 September 2006 06:59 Go to next message
magicboiz is currently offline  magicboiz
Messages: 6
Registered: September 2006
Junior Member
From: *alhsys.es
Hello all

I'm trying to add an ip tunnel inside a VE, but with no luck. I'd try two ways:

1.- Inside the VE, I did run:
-bash-3.00# ip tunnel add tunel0 mode gre local 10.1.2.3 remote 10.2.3.4
ioctl: No such device

2.- From the HW node, I did create the tunnel interface, and then, trying to add it to the VE:

[root@hwnode /]#ip tunnel add tunel0 mode gre local 10.1.2.3 remote 10.2.3.4
[root@hwnode /]# vzctl set 100 --netdev_add tunel0 --save
Bad parameter for --netdev_add: tunel0


Is possible to use IP tunnels (GRE/IPIP) in OpenVZ enviroment?

HW machine running CentOS 4.4 with kernel 2.6.9-023stab016

thx in advance.
Javier.
Re: GRE/IPIP tunnel support on VE [message #6674 is a reply to message #6672] Thu, 21 September 2006 07:17 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
Check that gre/ipip kernel modules are loaded in HN.
You also should add r/w device permissions for tunel device for VE using --devnode command of vzctl and then use device inside VE.


HTH,
vass.
Re: GRE/IPIP tunnel support on VE [message #6685 is a reply to message #6674] Thu, 21 September 2006 10:13 Go to previous messageGo to next message
magicboiz is currently offline  magicboiz
Messages: 6
Registered: September 2006
Junior Member
From: *alhsys.es
Hello,

the modules are loaded:

[root@icmnms ~]# lsmod | grep gre
ip_gre 10912 0
[root@icmnms ~]#


How can I see what device is under /dev, any network interface? /dev/tunel0 does not exist..... /dev/eth0 doesn't to....

Thx!
Re: GRE/IPIP tunnel support on VE [message #6686 is a reply to message #6685] Thu, 21 September 2006 10:30 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
Quote:

How can I see what device is under /dev, any network interface? /dev/tunel0 does not exist..... /dev/eth0 doesn't to....


Rolling Eyes Sorry I don't quite get your question...
To see devices under /dev you can do ls Smile
Are we specing about /dev inside VE or on HN?
If so, why eth0 should be there?

So, please, ask providing more details!

Thanks!
Re: GRE/IPIP tunnel support on VE [message #6709 is a reply to message #6686] Thu, 21 September 2006 15:16 Go to previous messageGo to next message
magicboiz is currently offline  magicboiz
Messages: 6
Registered: September 2006
Junior Member
From: *alhsys.es
first of all, thanks for your help vass

I need to have a tunnel gre interface inside my VE. I cannot create it inside the VE using the tipicall way (ip tunnel add.... comand).

I also did try to pass it to the VE (vzctl set 100 --netdev_add tunel0 --save.... command), but it didn't work too.

Now, you suggest me to make the interface RW... but i don't know how.
Can you tell me the command that you guess I should write? Something like "vzctl set 100 --devnode tunel0 rw"??

What a nightmare..... Rolling Eyes

Thx

PD: sorry my english.....
Re: GRE/IPIP tunnel support on VE [message #6755 is a reply to message #6709] Fri, 22 September 2006 05:27 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
Hello,

I suppose you should use

vzctl set 100 --devnodes tunel0:rw


And then do everything like usual inside VE.

HTH,
vass.
Re: GRE/IPIP tunnel support on VE [message #6758 is a reply to message #6755] Fri, 22 September 2006 07:13 Go to previous messageGo to next message
magicboiz is currently offline  magicboiz
Messages: 6
Registered: September 2006
Junior Member
From: *44.217.87.dynamic.jazztel.es
No luck Sad

[root@HWNODE ~]# ifconfig tunel0
tunel0 Link encap:UNSPEC HWaddr 0A-A8-20-65-00-00-00-00-00-00-00-00-00-00-00-00
POINTOPOINT NOARP MTU:1476 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 b) TX bytes:0 (0.0 b)

[root@HWNODE ~]# ip tunnel show
gre0: gre/ip remote any local any ttl inherit nopmtudisc
tunel0: gre/ip remote 10.168.32.250 local 10.168.32.101 dev eth1 ttl inherit


[root@HWNODE ~]# vzctl set 100 --devnodes tunel0 rw
Bad parameter for --devnodes: tunel0
[root@HWNODE ~]#


I'm afraid that Openvz does not support this kind of network interfaces inside a VE.....

Regards.

Re: GRE/IPIP tunnel support on VE [message #6759 is a reply to message #6758] Fri, 22 September 2006 07:18 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
You forgot about ':'!
--devnodes tunel0:rw
Re: GRE/IPIP tunnel support on VE [message #6771 is a reply to message #6759] Fri, 22 September 2006 09:42 Go to previous messageGo to next message
magicboiz is currently offline  magicboiz
Messages: 6
Registered: September 2006
Junior Member
From: *44.217.87.dynamic.jazztel.es
Sad

[root@HWNODE ~]# vzctl set 100 --devnodes tunel0:rw
Incorrect device name /dev/tunel0: No such file or directory
Bad parameter for --devnodes: tunel0:rw
[root@HWNODE ~]#


Sad
Re: GRE/IPIP tunnel support on VE [message #6773 is a reply to message #6771] Fri, 22 September 2006 09:58 Go to previous messageGo to next message
Vasily Tarasov is currently offline  Vasily Tarasov
Messages: 1345
Registered: January 2006
Senior Member
From: *sw.ru
It means, that file
/dev/tunel0 doesn't exist.
Maybe tunnel0? Smile
Please, provide `ls /dev/tun*` output (on HN)...

[Updated on: Fri, 22 September 2006 10:00]

Report message to a moderator

Re: GRE/IPIP tunnel support on VE [message #6856 is a reply to message #6773] Mon, 25 September 2006 14:49 Go to previous messageGo to next message
magicboiz is currently offline  magicboiz
Messages: 6
Registered: September 2006
Junior Member
From: *alhsys.es
No tun* device.....

[root@HWNODE ~]# ls -l /dev/tun*
ls: /dev/tun*: No such file or directory
[root@HWNODE ~]#

Regards
Re: GRE/IPIP tunnel support on VE [message #10259 is a reply to message #6672] Tue, 13 February 2007 23:55 Go to previous messageGo to next message
MaksymDolgykh is currently offline  MaksymDolgykh
Messages: 4
Registered: February 2007
Location: Ukraine
Junior Member
From: *org.ua
You need set interface up in HW before move it into VE:
ip tunnel add tunel0 mode gre local 10.1.2.3 remote 10.2.3.4
ip link set up dev tunel0

Now you can move tunnel interface into VE:
vzctl set 100 --netdev_add tunel0 --save

This work for me on debian-3.1 with kernel 2.6.8-022stab078.14
Re: GRE/IPIP tunnel support on VE [message #53322 is a reply to message #10259] Wed, 30 May 2018 02:44 Go to previous messageGo to next message
vinesh is currently offline  vinesh
Messages: 2
Registered: May 2018
Junior Member
From: *actcorp.in
Hi,

MaximDolgikh, please let me know Razz .

How to set interface up in HW before move it into VE?

Thanks,


Vinesh
Re: GRE/IPIP tunnel support on VE [message #53324 is a reply to message #53322] Wed, 30 May 2018 10:12 Go to previous message
MaksymDolgykh is currently offline  MaksymDolgykh
Messages: 4
Registered: February 2007
Location: Ukraine
Junior Member
From: *la.net.ua
Hello,

Actually, I have mentioned all commands in the previous message Smile
Just make sure the interface is in UP state on the HW

ip tunnel add tunel0 mode gre local 10.1.2.3 remote 10.2.3.4
ip link set up dev tunel0
vzctl set 100 --netdev_add tunel0 --save

I didn't try this now, but 11 years ago it worked, so I'm going to assume it still works.

Thank you.
Previous Topic: Problem updating with yom
Next Topic: How to install openvz7 to centos
Goto Forum:
  


Current Time: Sat Nov 17 05:22:18 GMT 2018