OpenVZ Forum


Home » General » Support » *SOLVED* ETH Device problem in VPS
*SOLVED* ETH Device problem in VPS [message #10355] Thu, 15 February 2007 17:11 Go to next message
xwinner is currently offline  xwinner
Messages: 11
Registered: December 2006
Junior Member
Hi,


ETH0 is ok on nodes serveur but not on venot0

http://www.crossover.biz/rajan/ETH_venet0_OpenVz.jpg

message on NODE boot:
Eth0 OK
sit0 OK
e1000 device venet0 does not seem to be present
e1000 device veth101.0 does not seem to be present

I use the Mandriva minimum in VPS and Mandriva CS4 for node server

Can someboby help me ?

Thanks

André

[Updated on: Tue, 06 March 2007 09:08] by Moderator

Report message to a moderator

Re: ETH Device problem in VPS [message #10371 is a reply to message #10355] Fri, 16 February 2007 08:21 Go to previous messageGo to next message
dim is currently offline  dim
Messages: 344
Registered: August 2005
Senior Member
Could you give access to the node (via PM)?

http://static.openvz.org/openvz_userbar_en.gif
Re: ETH Device problem in VPS [message #10374 is a reply to message #10355] Fri, 16 February 2007 12:17 Go to previous messageGo to next message
xwinner is currently offline  xwinner
Messages: 11
Registered: December 2006
Junior Member
pm ?
Re: ETH Device problem in VPS [message #10380 is a reply to message #10374] Fri, 16 February 2007 15:29 Go to previous messageGo to next message
xwinner is currently offline  xwinner
Messages: 11
Registered: December 2006
Junior Member
xwinner wrote on Fri, 16 February 2007 07:17

pm ?


I just install the OpenVZ module for webmin...

with this module, i make a operational VPS, it's working well. I can, ping external and all of services (apache, sshd, postfix...)

But when i reboot the node server, i have allready the error in my post, and the vps loss is eth device and won't work...


note: the webmin module do exactly the same command has i do.... i don't understand why webmin Openvz create works and not my manual command....

i don't understand why when node reboot, he lost my vps device !
Re: ETH Device problem in VPS [message #10393 is a reply to message #10371] Sat, 17 February 2007 19:14 Go to previous message
xwinner is currently offline  xwinner
Messages: 11
Registered: December 2006
Junior Member
Hera is some advance in test ....

take a look at this
when i configure, it's ok, when i stop, lose all eth config, but now i can reconfigure...

[root@scrameustache vz]# vzlist
VEID NPROC STATUS IP_ADDR HOSTNAME
101 4 running 192.168.0.101 vps101.localdomain.
[root@scrameustache vz]# vzctl enter 101
entered into VE 101
[root@vps101 /]# ifconfig
venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:127.0.0.1 P-t-P:127.0.0.1 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 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)

venet0:0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
inet addr:192.168.0.101 P-t-P:192.168.0.101 Bcast:192.168.0.101 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1

[root@vps101 /]# ping 192.168.0.1
PING 192.168.0.1 (192.168.0.1) 56(84) bytes of data.
64 bytes from 192.168.0.1: icmp_seq=1 ttl=63 time=37.5 ms
64 bytes from 192.168.0.1: icmp_seq=2 ttl=63 time=0.310 ms

--- 192.168.0.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 999ms
rtt min/avg/max/mdev = 0.310/18.947/37.585/18.638 ms
[root@vps101 /]# exit
logout
exited from VE 101
[root@scrameustache vz]# vzctl set 101 --netif_add eth0,00:12:34:56:78:9A,veth101.0,00:12:34:56:78:9B --save
Configure veth devices: veth101.0
Saved parameters for VE 101
[root@scrameustache vz]# ifconfig veth101.0 0
[root@scrameustache vz]# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/forwarding
[root@scrameustache vz]# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/proxy_arp
[root@scrameustache vz]# echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
[root@scrameustache vz]# echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
[root@scrameustache vz]# vzctl enter 101
entered into VE 101
[root@vps101 /]# /sbin/ifconfig eth0 0
[root@vps101 /]# /sbin/ip addr add 192.168.0.101 dev eth0
[root@vps101 /]# /sbin/ip route add default dev eth0
RTNETLINK answers: File exists
[root@vps101 /]#
[root@vps101 /]# exit
logout
exited from VE 101
[root@scrameustache vz]# ip route add 192.168.0.101 dev veth101.0
RTNETLINK answers: File exists
[root@scrameustache vz]#
[root@scrameustache vz]# vzctl restart 101
Restarting VE
Stopping VE ...
VE was stopped
VE is unmounted
Starting VE ...
VE is mounted
Adding IP address(es): 192.168.0.101
Setting CPU units: 1000
Set hostname: vps101.localdomain.
File resolv.conf was modified
Configure veth devices: veth101.0
VE start in progress...
[root@scrameustache vz]# vzctl enter 101
entered into VE 101
[root@vps101 /]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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@vps101 /]#[root@vps101 /]# exit
logout
exited from VE 101
[root@scrameustache vz]# vzctl stop 101
Stopping VE ...
VE was stopped
VE is unmounted
[root@scrameustache vz]# cd /etc/rc.d/init.d/
[root@scrameustache init.d]# ./vz restart
Stopping OpenVZ: [ OK ]
Starting OpenVZ: [ OK ]
Bringing up interface venet0: [ OK ]
Configuring interface venet0: [ OK ]
Configure node UB resources: [ OK ]
Starting VE 101: [ OK ]
[root@scrameustache init.d]# vzctl enter 101
entered into VE 101
[root@vps101 /]# ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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@vps101 /]# exit
logout
exited from VE 101
[root@scrameustache init.d]# vzctl set 101 --netif_add veth101,00:12:34:56:78:9A,eth0.0,00:12:34:56:78:9B --save
Configure veth devices: eth0.0
Saved parameters for VE 101
[root@scrameustache init.d]# ifconfig veth101.0 0
[root@scrameustache init.d]# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/forwarding
[root@scrameustache init.d]# echo 1 > /proc/sys/net/ipv4/conf/veth101.0/proxy_arp
[root@scrameustache init.d]# echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
[root@scrameustache init.d]# echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
[root@scrameustache init.d]# vzctl enter 101
entered into VE 101
[root@vps101 /]# /sbin/ifconfig eth0 0
[root@vps101 /]# /sbin/ip addr add 192.168.0.101 dev eth0
[root@vps101 /]# /sbin/ip route add default dev eth0
[root@vps101 /]# exit
logout
exited from VE 101
[root@scrameustache init.d]# ip route add 192.168.0.101 dev veth101.0
RTNETLINK answers: File exists
[root@scrameustache init.d]# ip route add 192.168.0.101 dev veth101.0 --save
Error: either "to" is duplicate, or "--save" is a garbage.
[root@scrameustache init.d]# vzctl enter 101
entered into VE 101
[root@vps101 /]# ifconfig
eth0 Link encap:Ethernet HWaddr 00:12:34:56:78:9A
inet addr:192.168.0.101 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 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)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 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@vps101 /]# exit
logout


SOME suggest to conserve configuration ?

Thanks a lot,

André
...

Previous Topic: *SOLVED* openvpn in VE / Debian - sarge
Next Topic: running dnsmasq on VPS?
Goto Forum:
  


Current Time: Wed Jul 10 17:25:46 GMT 2024

Total time taken to generate the page: 0.02654 seconds