*SOLVED* ETH lost Device problem in VPS with Mandriva
Here is some advance in test .... and follow a complete detail 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é
Re: ETH lost Device problem in VPS with Mandriva
SOlved but hard to solve Just a littel problem, it (vps) works via node server but not from outside André