OpenVZ Forum


Home » General » Support » Multiple VLANS in VE doesn't work? <SOLVED>
Multiple VLANS in VE doesn't work? <SOLVED> [message #33476] Thu, 16 October 2008 07:02 Go to next message
januszzz is currently offline  januszzz
Messages: 50
Registered: January 2007
Location: Opole, Poland
Member
Hi,
I've created single VLANs in VE, the problem is I cannot setup the second.

My config:

HN:
eth0.980 10.0.0.254
eth0.990 10.0.1.254

VE:

eth0.980 10.0.0.2
eth0.990 10.0.1.2*

*when I configure the second vlan on eth1 (the next veth interface) tcpdump output is the same.

The problem: VLAN 980 works perfectly, while 990 - is not. When I switch them, 990 works 100%, 980 not. So it appears that only first vlan works ok.

What works in first vlan: everything, 100% works as expected.
What works in second vlan: I can ping HN vlan devices (so its 10.0.0.254 10.0.1.254), I can ping all hosts in 10.0.0.0/24.

What doesn't work: I cannot ping anything from vlan 990 (so its 10.0.1.0/24) except HN interface 10.0.0.254.

while pinging, tcpdump on HN gives:

09:50:19.105190 IP 10.0.1.2 > 10.0.0.1: ICMP echo request, id 53822, seq 46, length 64

How I resolve that?

And one more question: if I've got two vlans with the same class of addresses I'm not able to setup proper routes on HN (ie. the same ip can exists in 2 different places), am I right?

[Updated on: Thu, 18 December 2008 07:21]

Report message to a moderator

Re: Multiple VLANS in VE doesn't work? [message #33490 is a reply to message #33476] Fri, 17 October 2008 06:38 Go to previous messageGo to next message
januszzz is currently offline  januszzz
Messages: 50
Registered: January 2007
Location: Opole, Poland
Member
Anyone setting up vlans?...
Re: Multiple VLANS in VE doesn't work? [message #34211 is a reply to message #33476] Sun, 14 December 2008 22:10 Go to previous messageGo to next message
jsosic is currently offline  jsosic
Messages: 6
Registered: December 2008
Location: Split, Croatia
Junior Member

I have problem with VLAN's too.. I have to set up an IP adress for every VLAN in HE, and that wastes 1 IP address per VLAN...and I'm quite limited with avaliable IP addresses. So, I'm wondering, is there a way to set up VE in one VLAN, in the way that HE does not have IP in that VLAN?

bond0     Link encap:Ethernet  HWaddr 00:14:4F:8D:7C:CE  
          inet6 addr: fe80::214:4fff:fe8d:7cce/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:104585 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6031 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:7161726 (6.8 MiB)  TX bytes:855520 (835.4 KiB)

bond0.46  Link encap:Ethernet  HWaddr 00:14:4F:8D:7C:CE  
          inet6 addr: fe80::214:4fff:fe8d:7cce/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:69831 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:3396478 (3.2 MiB)  TX bytes:468 (468.0 b)

bond0.95  Link encap:Ethernet  HWaddr 00:14:4F:8D:7C:CE  
          inet6 addr: fe80::214:4fff:fe8d:7cce/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:8675 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:651432 (636.1 KiB)  TX bytes:468 (468.0 b)

bond0.203 Link encap:Ethernet  HWaddr 00:14:4F:8D:7C:CE  
          inet addr:192.168.0.157  Bcast:192.168.0.159  Mask:255.255.255.248
          inet6 addr: fe80::214:4fff:fe8d:7cce/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:6201 errors:0 dropped:0 overruns:0 frame:0
          TX packets:5997 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:477470 (466.2 KiB)  TX bytes:797520 (778.8 KiB)

bond0.617 Link encap:Ethernet  HWaddr 00:14:4F:8D:7C:CE  
          inet6 addr: fe80::214:4fff:fe8d:7cce/64 Scope:Link
          UP BROADCAST RUNNING MASTER MULTICAST  MTU:1500  Metric:1
          RX packets:5128 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:238486 (232.8 KiB)  TX bytes:468 (468.0 b)

eth0      Link encap:Ethernet  HWaddr 00:14:4F:8D:7C:CE  
          inet6 addr: fe80::214:4fff:fe8d:7cce/64 Scope:Link
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:89835 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6027 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:6021556 (5.7 MiB)  TX bytes:855368 (835.3 KiB)
          Interrupt:106 Base address:0xa000 

eth1      Link encap:Ethernet  HWaddr 00:14:4F:8D:7C:CE  
          inet6 addr: fe80::214:4fff:fe8d:7cce/64 Scope:Link
          UP BROADCAST RUNNING SLAVE MULTICAST  MTU:1500  Metric:1
          RX packets:14750 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:1140170 (1.0 MiB)  TX bytes:492 (492.0 b)
          Interrupt:114 Base address:0xc000 

venet0    Link encap:UNSPEC  HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00  
          UP BROADCAST POINTOPOINT RUNNING NOARP  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:0 (0.0 b)  TX bytes:0 (0.0 b)


So, how to set up VE to have an address in for example VLAN95 (bond0.95 device)?
Re: Multiple VLANS in VE doesn't work? [message #34218 is a reply to message #34211] Mon, 15 December 2008 08:55 Go to previous messageGo to next message
januszzz is currently offline  januszzz
Messages: 50
Registered: January 2007
Location: Opole, Poland
Member
Hi, I'll help you in 24 hours (have done setup all properly, I got howto in Polish but I'll translate). This needs to be marek solved and once I'll put it here, I'll do it.
Re: Multiple VLANS in VE doesn't work? [message #34231 is a reply to message #33476] Mon, 15 December 2008 13:35 Go to previous messageGo to next message
jsosic is currently offline  jsosic
Messages: 6
Registered: December 2008
Location: Split, Croatia
Junior Member

Thank you very much! I'll be waiting for the solution...
Re: Multiple VLANS in VE doesn't work? [message #34252 is a reply to message #33476] Wed, 17 December 2008 08:35 Go to previous messageGo to next message
jsosic is currently offline  jsosic
Messages: 6
Registered: December 2008
Location: Split, Croatia
Junior Member

Bump bump! Please could you post it, even on polish, I have some polish guys that could help translate it Smile

Thank you!
Re: Multiple VLANS in VE doesn't work? [message #34263 is a reply to message #34252] Wed, 17 December 2008 20:13 Go to previous messageGo to next message
januszzz is currently offline  januszzz
Messages: 50
Registered: January 2007
Location: Opole, Poland
Member
I'm sorry Embarassed I'm going on....
Re: Multiple VLANS in VE doesn't work? [message #34266 is a reply to message #34252] Wed, 17 December 2008 21:52 Go to previous messageGo to next message
januszzz is currently offline  januszzz
Messages: 50
Registered: January 2007
Location: Opole, Poland
Member
Ok, here it goes! This is completely new post so please forgive my language, I was in hurry; it should work, but ya know how it is Wink feedback well seen.

http://en.gentoo-wiki.com/wiki/OpenVZ_VLANs

good luck Wink
Re: Multiple VLANS in VE doesn't work? <SOLVED> [message #34279 is a reply to message #33476] Sat, 20 December 2008 00:01 Go to previous message
jsosic is currently offline  jsosic
Messages: 6
Registered: December 2008
Location: Split, Croatia
Junior Member

Thank you, I've got it! I'm using Gentoo as a desktop OS, so I was able to understand the configurations, altough my servers are RHEL.
Previous Topic: Unable to share IPs from the same vlan
Next Topic: After install: "vzctl: command not found" [RESOLVED]
Goto Forum:
  


Current Time: Mon Nov 18 17:48:43 GMT 2024

Total time taken to generate the page: 0.02888 seconds