Re: VLAN not working in VE? [message #33428 is a reply to message #33420] |
Tue, 14 October 2008 13:03 |
januszzz
Messages: 50 Registered: January 2007 Location: Opole, Poland
|
Member |
|
|
- enable eth0 inside container
- create vlan interface inside container and issue some settings
well, I have setup eth0.980 5 minutes since installation of the kernel, but it doesn't work. Kernel IP routing table (HE):
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 veth110.0
126.66.64.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0.20
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 126.66.65.249 0.0.0.0 UG 0 0 0 eth0.20
I do all the stuff:
echo 1 > /proc/sys/net/ipv4/conf/veth110.0/forwarding
echo 1 > /proc/sys/net/ipv4/conf/veth110.0/proxy_arp
echo 1 > /proc/sys/net/ipv4/conf/eth0/forwarding
echo 1 > /proc/sys/net/ipv4/conf/eth0/proxy_arp
And I setup vlan the Gentoo way in VE (so its standard Linux way):
vlans_eth0="980"
config_eth0=( "null" )
vconfig_eth0=( "set_name_type DEV_PLUS_VID_NO_PAD" )
config_eth0_980=( "10.0.0.2 netmask 255.255.255.0" )
i get these routes:
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.980
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo
this doesn't work, (Destination Host Unreachable) so packets do not reach HE.
If I do in VE:
ifconfig eth0 0
ip r a default dev eth0
it doesn't work either (sorry! this doesn't work, but ping goes to HE, I forgot to remove previous route!).
I do in VE:
cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.980 | 980 | eth0
I do in HE:
cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.20 | 20 | eth0
Its ok, because I'm using vlan 20 for accessing the HE.
I'm loosing the second day on this....
[Updated on: Tue, 14 October 2008 13:14] Report message to a moderator
|
|
|