Problems with multiple virtual Ethernet on OpenVZ

mhammett

Renowned Member
Mar 11, 2009
161
2
83
DeKalb, Illinois, United States
I can't seem to ping out the eth1 port on this VM, but I can on other VMs where the only Ethernet port is on eth1.

This is in the container:

[root@dns1 /]# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.1.5.0 * 255.255.255.0 U 0 0 0 eth0
65.182.165.0 * 255.255.255.0 U 0 0 0 eth1
169.254.0.0 * 255.255.0.0 U 0 0 0 eth1
10.0.0.0 10.1.5.1 255.0.0.0 UG 0 0 0 eth0
default 65.182.165.1 0.0.0.0 UG 0 0 0 eth1
[root@dns1 /]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 56:7F:DF:48:A3:C0
inet addr:10.1.5.101 Bcast:10.1.5.255 Mask:255.255.255.0
inet6 addr: fe80::547f:dfff:fe48:a3c0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5911 errors:0 dropped:0 overruns:0 frame:0
TX packets:17 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:286290 (279.5 KiB) TX bytes:817 (817.0 b)

eth1 Link encap:Ethernet HWaddr 00:18:51:0C:56:F4
inet addr:65.182.165.38 Bcast:65.182.165.255 Mask:255.255.255.0
inet6 addr: fe80::218:51ff:fe0c:56f4/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:7735 errors:0 dropped:0 overruns:0 frame:0
TX packets:34 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:641901 (626.8 KiB) TX bytes:2202 (2.1 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
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)

venet0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
BROADCAST POINTOPOINT 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)

This is on the host:

Fenix:~# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:23:54:c1:53:fa
inet6 addr: fe80::223:54ff:fec1:53fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1076349 errors:0 dropped:0 overruns:0 frame:0
TX packets:365235 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:141067742 (134.5 MiB) TX bytes:47508272 (45.3 MiB)
Interrupt:90 Base address:0x4000

eth1 Link encap:Ethernet HWaddr 00:90:27:5a:d1:8e
inet6 addr: fe80::290:27ff:fe5a:d18e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1310326 errors:0 dropped:0 overruns:0 frame:0
TX packets:277180 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:207014079 (197.4 MiB) TX bytes:78699087 (75.0 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:34447 errors:0 dropped:0 overruns:0 frame:0
TX packets:34447 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11353517 (10.8 MiB) TX bytes:11353517 (10.8 MiB)

sit0 Link encap:IPv6-in-IPv4
NOARP MTU:1480 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 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
RX packets:24436 errors:0 dropped:0 overruns:0 frame:0
TX packets:30760 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2802373 (2.6 MiB) TX bytes:29004602 (27.6 MiB)

veth101.0 Link encap:Ethernet HWaddr 00:18:51:fc:1d:28
inet6 addr: fe80::218:51ff:fefc:1d28/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:17 errors:0 dropped:0 overruns:0 frame:0
TX packets:6525 errors:0 dropped:88 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:817 (817.0 B) TX bytes:316041 (308.6 KiB)

veth101.1 Link encap:Ethernet HWaddr 00:18:51:fd:78:6c
inet6 addr: fe80::218:51ff:fefd:786c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:34 errors:0 dropped:0 overruns:0 frame:0
TX packets:8526 errors:0 dropped:192 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:2202 (2.1 KiB) TX bytes:706430 (689.8 KiB)

veth102.0 Link encap:Ethernet HWaddr 00:18:51:1f:62:5c
inet6 addr: fe80::218:51ff:fe1f:625c/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:276205 errors:0 dropped:0 overruns:0 frame:0
TX packets:908706 errors:0 dropped:52179 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:74788560 (71.3 MiB) TX bytes:164489840 (156.8 MiB)

vmbr0 Link encap:Ethernet HWaddr 00:23:54:c1:53:fa
inet addr:10.1.5.7 Bcast:10.1.5.255 Mask:255.255.255.0
inet6 addr: fe80::223:54ff:fec1:53fa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:808176 errors:0 dropped:0 overruns:0 frame:0
TX packets:365181 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:112531632 (107.3 MiB) TX bytes:45096262 (43.0 MiB)

vmbr1 Link encap:Ethernet HWaddr 00:90:27:5a:d1:8e
inet addr:65.182.165.39 Bcast:65.182.165.255 Mask:255.255.255.0
inet6 addr: fe80::290:27ff:fe5a:d18e/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:678883 errors:0 dropped:0 overruns:0 frame:0
TX packets:935 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:58248816 (55.5 MiB) TX bytes:40511 (39.5 KiB)