OpenVZ Forum


Home » General » Support » VLAN packets not going through
VLAN packets not going through [message #36500] Wed, 24 June 2009 23:22 Go to next message
cyu021 is currently offline  cyu021
Messages: 1
Registered: June 2009
Junior Member
Dear all,

I try to setup a VLAN in a VE and enable the VE to communicate with other PCs/servers in same VLAN but in outside world.
So the network configuration should look like this:
+--WORLD--+   +--MY_PC--+   +---VE---+
|VID=11's |---|eth0     |   |        |
|PCs      |   |veth101.0|---|eth0    |
|servers  |   +---------+   |eth0.11 |
+---------+                 +--------+

I have the following configurations:
VE's ip route:
10.0.0.0/24 dev eth0.11  proto kernel  scope link  src 10.0.0.101
default dev eth0  scope link

MY_PC's ip route:
192.168.0.101 dev veth101.0  scope link
192.168.19.0/24 dev eth0  proto kernel  scope link  src 192.168.19.136
default via 192.168.19.2 dev eth0

However, routing of the tagged packets stops at MY_PC's veth101.0.

Folllowing is the tcpdump log on MY_PC, I monitor both MY_PC's veth101.0 and eth0:

Tagged packets do arrive MY_PC's veth101.0
/usr/sbin/tcpdump -ne -i veth101.0 -xx not port 22
tcpdump: WARNING: veth101.0: no IPv4 address assigned
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on veth101.0, link-type EN10MB (Ethernet), capture size 96 bytes
03:20:24.366526 00:18:51:50:ec:b7 > Broadcast, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, arp who-has 10.0.0.10 tell 10.0.0.101
        0x0000:  ffff ffff ffff 0018 5150 ecb7 8100 000b
        0x0010:  0806 0001 0800 0604 0001 0018 5150 ecb7
        0x0020:  0a00 0065 0000 0000 0000 0a00 000a
03:20:25.367267 00:18:51:50:ec:b7 > Broadcast, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, arp who-has 10.0.0.10 tell 10.0.0.101
        0x0000:  ffff ffff ffff 0018 5150 ecb7 8100 000b
        0x0010:  0806 0001 0800 0604 0001 0018 5150 ecb7
        0x0020:  0a00 0065 0000 0000 0000 0a00 000a
03:20:26.368325 00:18:51:50:ec:b7 > Broadcast, ethertype 802.1Q (0x8100), length 46: vlan 11, p 0, ethertype ARP, arp who-has 10.0.0.10 tell 10.0.0.101
        0x0000:  ffff ffff ffff 0018 5150 ecb7 8100 000b
        0x0010:  0806 0001 0800 0604 0001 0018 5150 ecb7
        0x0020:  0a00 0065 0000 0000 0000 0a00 000a

Tagged packets never arrive MY_PC's eth0 and passed to WORLD.
/usr/sbin/tcpdump -ne -i eth0 -xx not port 22
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on eth0, link-type EN10MB (Ethernet), capture size 96 bytes

According to MY_PC's routing table, I don't set any rule for the packets to destination 10.0.0.0/24,
so they should be routed to the next stop by default gateway (MY_PC's eth0).

Please advise.
Re: VLAN packets not going through [message #36524 is a reply to message #36500] Mon, 29 June 2009 07:26 Go to previous message
maratrus is currently offline  maratrus
Messages: 1495
Registered: August 2007
Location: Moscow
Senior Member
Hello,

the main problem I suppose is that none of the MY_PC's interfaces know about VLAN existence. To make a route decision on MY_PC's side we have to pick out a VLAN tag of a network packet but it's impossible because MY_PC knows nothing about VLAN existence so the network packet is dropped.
I would recommend to read the following article which might be useful in your case.
http://en.gentoo-wiki.com/wiki/OpenVZ_VLANs
Previous Topic: Harddisk size
Next Topic: enable /dev/net/tun and iptable_nat
Goto Forum:
  


Current Time: Tue Oct 08 19:22:50 GMT 2024

Total time taken to generate the page: 0.05310 seconds