dev wrote on Sun, 09 July 2006 13:34 |
Check output of the following command in the host:
# ifconfig
# ip a l
# ip r l
|
I have experimented with IP-adress 192.168.13.1 on eth0:1 but that didn't resolve my networking problems inside the VE. As said above, this MAC address can only come from OpenVZ itself. But may be you see something different in this output:
strato:~# /etc/init.d/vz stop
Shutting down VPS 1313
Stopping OpenVZ: ..done
strato:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:58:09:F0
inet addr:85.214.61.55 Bcast:85.214.61.55 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:96934 errors:0 dropped:0 overruns:0 frame:0
TX packets:11622 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30646960 (29.2 MiB) TX bytes:3059910 (2.9 MiB)
Interrupt:24
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)
strato:~# ip a l
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:30:48:58:09:f0 brd ff:ff:ff:ff:ff:ff
inet 85.214.61.55/32 brd 85.214.61.55 scope global eth0
6: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:30:48:58:09:f1 brd ff:ff:ff:ff:ff:ff
strato:~# ip r l
85.214.48.1 dev eth0 scope link
default via 85.214.48.1 dev eth0
strato:~# /etc/init.d/vz start
Starting OpenVZ: ..done
Bringing up interface venet0: ..done
Configuring interface venet0: ..done
strato:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:58:09:F0
inet addr:85.214.61.55 Bcast:85.214.61.55 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:97042 errors:0 dropped:0 overruns:0 frame:0
TX packets:11676 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30660432 (29.2 MiB) TX bytes:3068042 (2.9 MiB)
Interrupt:24
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)
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: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)
strato:~# ip a l
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:30:48:58:09:f0 brd ff:ff:ff:ff:ff:ff
inet 85.214.61.55/32 brd 85.214.61.55 scope global eth0
6: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:30:48:58:09:f1 brd ff:ff:ff:ff:ff:ff
5: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
strato:~# ip r l
85.214.48.1 dev eth0 scope link
default via 85.214.48.1 dev eth0
strato:~# vzctl start 1313
Starting VPS ...
VPS is mounted
Adding IP address(es): 192.168.13.2
arpsend: 192.168.13.2 is detected on another computer : 00:00:5e:00:01:02
vps-net_add WARNING: arpsend -c 1 -w 1 -D -e 192.168.13.2 eth0 FAILED
Setting CPU units: 1000
VPS start in progress...
strato:~# ifconfig
eth0 Link encap:Ethernet HWaddr 00:30:48:58:09:F0
inet addr:85.214.61.55 Bcast:85.214.61.55 Mask:255.255.255.255
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:97115 errors:0 dropped:0 overruns:0 frame:0
TX packets:11716 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:30671056 (29.2 MiB) TX bytes:3075326 (2.9 MiB)
Interrupt:24
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)
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: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)
strato:~# ip a l
2: lo: <LOOPBACK,UP> mtu 16436 qdisc noqueue
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
4: eth0: <BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:30:48:58:09:f0 brd ff:ff:ff:ff:ff:ff
inet 85.214.61.55/32 brd 85.214.61.55 scope global eth0
6: eth1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop qlen 1000
link/ether 00:30:48:58:09:f1 brd ff:ff:ff:ff:ff:ff
5: venet0: <BROADCAST,POINTOPOINT,NOARP,UP> mtu 1500 qdisc noqueue
link/void
strato:~# ip r l
192.168.13.2 dev venet0 scope link src 85.214.61.55
85.214.48.1 dev eth0 scope link
default via 85.214.48.1 dev eth0
See also my ping answers in the previous post. An Google on the MAC address gives more hits than you would believe. And almost always in combonation with OpenVZ. So I think it is somewhere in there
. As said, the FAILED arpsend is probably bogus. I now have networking, after rebooting the computer. Setting the following in Debian /etc/modules.conf doesn't work:
options ip_conntrack ip_conntrack_enable_ve0=1
I now have the following first line in my firewall/iptables script:
modprobe ip_conntrack ip_conntrack_enable_ve0=1
That only works if the module wasn't loaded before without this option! rmmod doesn't help, you NEED to reboot.