ARP issue when using veth [message #40856] |
Thu, 14 October 2010 17:23 |
dboucard
Messages: 3 Registered: July 2008 Location: Evry
|
Junior Member |
|
|
I am trying to configure a veth device on a CT according to http://wiki.openvz.org/Veth
Its VEID is 226 with IP 192.168.40.26 and my HN has IP 192.168.40.2
When I try to ping the CT from the HN, it works.
But when I try to ping the HN from the CT, I get "Destination Host Unreachable".
After investigation, I found that the CT never receive any ARP reply for the IP 192.168.40.2 :
[HN]# tcpdump -n -i veth226.0
19:15:51.863068 arp who-has 192.168.40.2 tell 192.168.40.26
19:15:52.863069 arp who-has 192.168.40.2 tell 192.168.40.26
Here are more details about my conf:
[HN]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:1a:4d:4f:45:92
inet addr:192.168.40.2 Bcast:192.168.40.255 Mask:255.255.255.0
inet6 addr: fe80::21a:4dff:fe4f:4592/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30753072 errors:0 dropped:0 overruns:0 frame:0
TX packets:17683330 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:378830874 (361.2 MB) TX bytes:2315411153 (2.1 GB)
Interrupt:220 Base address:0x8000
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:48 errors:0 dropped:0 overruns:0 frame:0
TX packets:48 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:4468 (4.3 KB) TX bytes:4468 (4.3 KB)
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:25876147 errors:0 dropped:0 overruns:0 frame:0
TX packets:37743638 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1374516294 (1.2 GB) TX bytes:2713338571 (2.5 GB)
veth226.0 Link encap:Ethernet HWaddr 00:18:51:52:a9:7f
inet6 addr: fe80::218:51ff:fe52:a97f/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:883 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:24940 (24.3 KB) TX bytes:0 (0.0 B)
[HN]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.40.224 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.209 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.208 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.226 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.210 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.221 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.205 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.26 0.0.0.0 255.255.255.255 UH 0 0 0 veth226.0
192.168.40.220 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.204 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.223 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.207 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.222 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.206 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.201 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.203 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.218 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.202 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
192.168.40.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
0.0.0.0 192.168.40.1 0.0.0.0 UG 100 0 0 eth0
[HN]# cat /proc/sys/net/ipv4/conf/veth226.0/proxy_arp
1
[CT226]# ifconfig -a
eth0 Link encap:Ethernet HWaddr 00:18:51:1e:b0:fd
inet addr:192.168.40.26 Bcast:0.0.0.0 Mask:255.255.255.255
inet6 addr: fe80::218:51ff:fe1e:b0fd/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:939 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:0 (0.0 B) TX bytes:26508 (26.5 KB)
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:933 errors:0 dropped:0 overruns:0 frame:0
TX packets:933 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:104384 (104.3 KB) TX bytes:104384 (104.3 KB)
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.40.226 P-t-P:192.168.40.226 Bcast:0.0.0.0 Mask:255.255.255.255
UP BROADCAST POINTOPOINT RUNNING NOARP MTU:1500 Metric:1
[CT226]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.0.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 venet0
0.0.0.0 0.0.0.0 0.0.0.0 U 0 0 0 eth0
|
|
|