OpenVZ Forum


Home » General » Support » *SOLVED* VLAN on VETH device?
Re: VLAN on VETH device? [message #8137 is a reply to message #8107] Thu, 09 November 2006 10:19 Go to previous messageGo to previous message
szocske is currently offline  szocske
Messages: 35
Registered: September 2006
Member
Andrey Mirkin wrote on Tue, 07 November 2006 11:19

The patch for 2.6.18 kernel is ready.
You can try it right now.
vlan virtualization will be available in next kernel release.


We have it working, and see no regression in regular functionality.
/proc/net/vlan directory exists and can be populated via vconfig.

But any vlan subinterface created in one VE is visible in all (the veth device is called eth0 in all VEs)

ifconfig -a does not list "foreign" vlans.

It is not possible to create vlans with the same vlan ID in multiple VEs:

eserver25-vz6:~# vconfig add eth0 106
Added VLAN with VID == 106 to IF -:eth0:-

eserver25-vz7:~# vconfig add eth0 107
Added VLAN with VID == 107 to IF -:eth0:-

eserver25-vz6:~# vconfig add eth0 107
ERROR: trying to add VLAN #107 to IF -:eth0:- error: Invalid argument

eserver25-vz6:~# cat /proc/net/vlan/
config eth0.106 eth0.107
eserver25-vz6:~# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.106 | 106 | eth0
eserver25-vz6:~# ls /proc/net/vlan/
config eth0.106 eth0.107
eserver25-vz6:~# cat /proc/net/vlan/eth0.107
eth0.107 VID: 107 REORDER_HDR: 1 dev->priv_flags: 1
total frames received 0
total bytes received 0
Broadcast/Multicast Rcvd 0

total frames transmitted 0
total bytes transmitted 0
total headroom inc 0
total encap on xmit 0
Device: eth0
INGRESS priority mappings: 0:0 1:0 2:0 3:0 4:0 5:0 6:0 7:0
EGRESSS priority Mappings:


Can we have this revised please?

Editing:
Just noticed, same goes for host machine:
eserver25:~# ls /proc/net/vlan/
config eth0.106 eth0.107
eserver25:~# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD


Editing again:

And I can't shut down the VE which has a VLAN configured:

eserver25:~# vzctl stop 109
Stopping VPS ...

Message from syslogd@localhost at Thu Nov 9 11:34:37 2006 ...
localhost kernel: unregister_netdevice: waiting for eth0 to become free. Usage count = -1

Message from syslogd@localhost at Thu Nov 9 11:35:17 2006 ...
localhost last message repeated 4 times

Meanwhile, the vlans disappear from the remaining machines:

eserver25-vz6:~# ls /proc/net/vlan/
config
eserver25-vz6:~# cat /proc/net/vlan/config
VLAN Dev name | VLAN ID
Name-Type: VLAN_NAME_TYPE_RAW_PLUS_VID_NO_PAD
eth0.106 | 106 | eth0

[Updated on: Thu, 09 November 2006 10:41]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Recompile kernel, howto
Next Topic: Networking issue with FC4
Goto Forum:
  


Current Time: Tue Sep 10 16:52:02 GMT 2024

Total time taken to generate the page: 0.04955 seconds