OpenVZ Forum


Home » General » Support » Problem with tun interface...even after following docs
Problem with tun interface...even after following docs [message #36994] Fri, 07 August 2009 19:33 Go to next message
jbwiv is currently offline  jbwiv
Messages: 15
Registered: August 2006
Junior Member

Guys,

I followed the documentation religiously to enable tun in my containers. It once worked, but at some point along the way (possibly through yum updates) became broken. My system is CentOS 5.2. Here's what I get from within the VE:

# ifconfig tun0 192.168.2.3 pointopoint 192.168.2.4
SIOCSIFADDR: No such device
tun0: unknown interface: No such device
SIOCSIFDSTADDR: No such device
tun0: unknown interface: No such device


# file /dev/net/tun
/dev/net/tun: character special (10/200)
# ls -l /dev/net/tun
crw------- 1 root root 10, 200 Nov 26  2008 /dev/net/tun


And now in the host:
# lsmod | grep tun
tun                    47872  0
# uname -r -v
2.6.18-128.1.1.el5.028stab062.3 #1 SMP Sun May 10 18:54:51 MSD 2009
# cat /etc/vz/conf/102.conf  | grep -E 'DEVICE|CAPABILITY'
DEVICES="c:10:200:rw "
CAPABILITY="NET_ADMIN:on "


Anyone else seeing this? Can you help?

Thanks!
jbwiv
Re: Problem with tun interface...even after following docs [message #37018 is a reply to message #36994] Wed, 12 August 2009 16:49 Go to previous messageGo to next message
jbwiv is currently offline  jbwiv
Messages: 15
Registered: August 2006
Junior Member
Bump...anyone? I'm at a complete loss.

Thanks,
jbwiv
Re: Problem with tun interface...even after following docs [message #37029 is a reply to message #37018] Thu, 13 August 2009 06:53 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
How did you use it before?
As far as I remember a special command should be used (ioctl) on /dev/net/tun device to create a network device on your system. OpenVPN does this command.
Previous Topic: Help Me Please my /boot filesystem Full
Next Topic: Assigning an IP address to venet0 on the HN
Goto Forum:
  


Current Time: Thu Jul 25 22:31:44 GMT 2024

Total time taken to generate the page: 0.03288 seconds