OpenVZ Forum


Home » General » Support » VLAN Setup
Re: VLAN Setup [message #15664 is a reply to message #15663] Thu, 09 August 2007 09:51 Go to previous messageGo to previous message
vaverin is currently offline  vaverin
Messages: 708
Registered: September 2005
Senior Member
As far as I understand you want to use several VE with vlan's IP without any vlan configurations inside VEs. Am I correct?

jonasb wrote on Thu, 09 August 2007 12:57

I can't get it to work. Sad I can start the VE. And I can ping it from HN but not outside HN. The strange thing is that my vlan disappear when I start the VE. And is availiable again when I stop it.


[root@vz-test ~]# uname -a
Linux vz-test 2.6.18-8.1.8.el5.028stab039.1PAE #1 SMP Mon Jul 23 20:45:26 MSD 2007 i686 i686 i386 GNU/Linux

[root@vz-test ~]# vconfig add eth1 105
Added VLAN with VID == 105 to IF -:eth1:-

[root@vz-test ~]# ifconfig eth1.105 192.168.20.137 netmask 255.255.255.240 broadcast 192.168.20.143


here you have configured vlan vid 105 on HW node. OK
jonasb wrote on Thu, 09 August 2007 12:57


[root@vz-test ~]# vzctl set 10666 --netdev_add eth1.105 --save
Saved parameters for VE 10666


This is wrong, you should not move this device into VE, it's extra task for your purposes.
jonasb wrote on Thu, 09 August 2007 12:57



[root@vz-test ~]# vzctl set 10666 --ipadd 192.168.20.138 --save
Saved parameters for VE 10666



This is wrong again: 192.168.20.138 is already used. You should use any non-used IP for your VEs.

Thank you,
Vasily Averin
 
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: ACLs on VPS!
Next Topic: *SOLVED* Make Kernel Module ztdummy available in VE
Goto Forum:
  


Current Time: Sat Aug 03 11:25:26 GMT 2024

Total time taken to generate the page: 0.03036 seconds