OpenVZ Forum


Home » General » Support » VLAN not working in VE? <SOLVED>
VLAN not working in VE? <SOLVED> [message #33405] Mon, 13 October 2008 12:23 Go to previous message
januszzz is currently offline  januszzz
Messages: 50
Registered: January 2007
Location: Opole, Poland
Member
Hi,

I got 2 interfaces on HE and wanted one for management and the second for VE's (I need several VLANs there).

So I setup HE interfaces like this (fat trimmed)

eth0 Link encap:Ethernet HWaddr 00:21:5e:26:b3:cc
inet addr:126.66.64.151 Bcast:126.66.65.255 Mask:255.255.254.0

eth1 Link encap:Ethernet HWaddr 00:21:5e:26:b3:ce
inet6 addr: fe80::221:5eff:fe26:b3ce/64 Scope:Link
eth1.20 Link encap:Ethernet HWaddr 00:21:5e:26:b3:ce
inet6 addr: fe80::221:5eff:fe26:b3ce/64 Scope:Link

eth1.980 Link encap:Ethernet HWaddr 00:21:5e:26:b3:ce
inet6 addr: fe80::221:5eff:fe26:b3ce/64 Scope:Link

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)

(lo, sit0, other VLANs ommitted).

Then I added the vlan to VE like this:

vzctl set 110 --netif_add vlan980 --save

Then I setup the VE settings like this:

(snippet from 110.conf)
IP_ADDRESS="10.0.0.2"
NETIF=" ifname=vlan980,mac=00:18:51:F6:CD:87,host_ifname=veth110.980 ,host_mac=00:18:51:70:E9:7F "

And the problem is I still cannot access the other ip on the network (PING 10.0.0.1 (10.0.0.1) 56(84) bytes of data.
From 10.0.0.2 icmp_seq=1 Destination Host Unreachable)! How to debug this??

BTW. when I assign an address from the VLAN to eth1.980 on HN it works, but VE - its not.

Thanks!

[Updated on: Sun, 26 October 2008 18:43]

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: Wed Aug 07 06:59:08 GMT 2024

Total time taken to generate the page: 0.02902 seconds