vlan networking problem [message #2216] |
Fri, 24 March 2006 22:27 |
cleavoy
Messages: 3 Registered: March 2006
|
Junior Member |
|
|
Does openvz work with VLANS? Hardware node 'storm' can ping virtual node 192.168.77.25, but hosts on vlan id 0 are unable to ping it. tcpdump on the hw node shows the arp requests, but no response. tcpdump on virutal node 'rain' doesnt seem to be receiving the arp requests.
[root@storm ~]# ifconfig eth0.0
eth0.0 Link encap:Ethernet HWaddr 00:90:27:25:1D:FD
inet addr:192.168.77.2 Bcast:192.168.77.255 Mask:255.255.255.0
[root@storm ~]# vzlist
VPSID NPROC STATUS IP_ADDR HOSTNAME
101 20 running 192.168.77.25 rain
[root@storm ~]# ping 192.168.77.25
PING 192.168.77.25 (192.168.77.25) 56(84) bytes of data.
64 bytes from 192.168.77.25: icmp_seq=0 ttl=64 time=0.128 ms
[root@storm ~]# tcpdump -ni eth0.0
17:04:23.346793 arp who-has 192.168.77.25 tell 192.168.77.1
17:04:24.341127 arp who-has 192.168.77.25 tell 192.168.77.1
17:04:25.341112 arp who-has 192.168.77.25 tell 192.168.77.1
Where should I look to figure out whats wrong?
Could someone explain what this option in /etc/sysconfig/vz would be used for?
#VE_ROUTE_SRC_DEV="eth0"
--Chris
[Updated on: Fri, 24 March 2006 22:27] Report message to a moderator
|
|
|
|
|
Re: vlan networking problem [message #2278 is a reply to message #2273] |
Tue, 28 March 2006 07:31 |
cleavoy
Messages: 3 Registered: March 2006
|
Junior Member |
|
|
Well its working now and my source routing problem is fixed too. cat /proc/net/vlan/config no longer seg faults. I suspect it was fixed in either the updates to centos 4.3 (from 4.2) or to openvz kernel 2.6.8-022stab072.2 (from 70.1)
One other thing, if anyone has this problem:
Mar 28 01:47:33 storm ifup: e100 device eth0.0 does not seem to be present, delaying initialization.
Mar 28 01:47:33 storm network: Bringing up interface vlan0: failed
I had to hack /etc/sysconfig/network-scripts/ifup to fix support for vlan id 0. Maybe there is support for vid 0, but for whatever reason its not working with my config. If i do vconfig add eth0 0 then ifup eth0.0 it works fine. But i needed this dirty patch for it to work on startup. Maybe someone with better knowledge of the initscripts can check into this.
Search for,
if [ -n "$VID" ]; then
add this above it,
if [ "$DEVICE" == "eth0.0" ]; then
VID="0"
fi
----
For reference:
[root@storm etc]# grep eth0 modprobe.conf
alias eth0 e100
alias eth0.0 e100
alias eth0.1 e100
alias eth0.2 e100
[root@storm sysconfig]# cat network
NETWORKING=yes
HOSTNAME=storm.dawn.local
VLAN=yes
[root@storm network-scripts]# cat ifcfg-vlan0
DEVICE=eth0.0
IPADDR=192.168.77.2
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
BOOTPROTO=none
USERCTL=no
IPV6INIT=no
PEERDNS=yes
-- Chris
|
|
|