OpenVZ Forum


Home » General » Support » Dedicating physical NIC ports to each VE without bridging, etc.
Re: Dedicating physical NIC ports to each VE without bridging, etc. [message #15993 is a reply to message #15962] Fri, 17 August 2007 21:12 Go to previous message
dranch is currently offline  dranch
Messages: 33
Registered: August 2007
Member
Ok, so after rebooting the machine, I did the following:

VE#0:
/sbin/ifconfig eth1 0 #UPs the int and removes any IPv4 addr
/sbin/ifconfig eth2 0
/sbin/ifconfig eth3 0
/usr/sbin/vzctl set 100 --netdev_add eth1 --save
/usr/sbin/vzctl set 101 --netdev_add eth2 --save
/usr/sbin/vzctl set 102 --netdev_add eth3 --save

/usr/sbin/vzctl start 100

When I start VE#100, I now see VE#0's eth1 disappear and I can now "ifconfig eth1 up" in VE#100 as hoped! Woohoo... excellent news and it seems to work from initiate testing. This helps remove any MTU / VLAN tagging / etc. issues I might have seen if I had to deal with bridging virtual to physical interfaces.


Now, the issue of not supporting "eth0" in the VEs is unfortunate. Linux always enumerates from 0 so not having eth0 but say eth2 in a VE is both a change in behavior as well as just confusing to me and I'm sure to my developers as well. I'd love to see the ability to rename VE interfaces if possible.

--David
 
Read Message
Read Message
Read Message
Previous Topic: cman
Next Topic: Pass environment variable via execve
Goto Forum:
  


Current Time: Tue Aug 13 00:12:21 GMT 2024

Total time taken to generate the page: 0.02826 seconds