OpenVZ Forum


Home » General » Support » VLAN not working in VE? <SOLVED>
Re: VLAN not working in VE? [message #33461 is a reply to message #33423] Wed, 15 October 2008 13:18 Go to previous messageGo to previous message
januszzz is currently offline  januszzz
Messages: 50
Registered: January 2007
Location: Opole, Poland
Member
OK, partly works (first vlan i VE works ok).

Now I'm trying to add second VLAN to veth device and it goes ok, but packets are not going back to VE. Why?

In VE 130 I've got two vlans added:

eth0.20 Link encap:Ethernet HWaddr 00:18:51:DB:4E:F2
inet addr:126.66.64.158
eth1.980 Link encap:Ethernet HWaddr 00:18:51:05:AF:37
inet addr:10.0.0.5 Bcast:10.0.0.255 Mask:255.255.255.0

Routes are set OK iv VE:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
126.66.64.0 0.0.0.0 255.255.254.0 U 0 0 0 eth0
127.0.0.0 127.0.0.1 255.0.0.0 UG 0 0 0 lo

And routes in HN aore set OK:

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.5 0.0.0.0 255.255.255.255 UH 0 0 0 veth130.0
126.66.64.158 0.0.0.0 255.255.255.255 UH 0 0 0 veth130.0
10.0.0.2 0.0.0.0 255.255.255.255 UH 0 0 0 veth110.0
10.0.1.2 0.0.0.0 255.255.255.255 UH 0 0 0 veth130.0
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.980
10.0.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0.990
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

Packets goes fine to HN, but not going back (tcpdump outpup from HN):

15:08:32.501126 IP 126.66.64.158 > 10.0.0.1: ICMP echo request, id 45655, seq 14, length 64

Any ideas how to define source ip on VE?

BTW: I can ping interface in vlan on HN (ping 10.0.0.254 issued in VE is ok, but to 10.0.0.1 - which is gateway - its not working). Ping to 10.0.0.1 from HN - it works.

[Updated on: Wed, 15 October 2008 14:08]

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
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: iptables classifies ESTABLISHED packets as INVALID randomly
Next Topic: *WORKED AROUND* Add /proc/bus/usb inside VE ?
Goto Forum:
  


Current Time: Mon Nov 18 18:28:05 GMT 2024

Total time taken to generate the page: 0.04846 seconds