OpenVZ Forum


Home » General » Support » Network Interfaces Configuration
Network Interfaces Configuration [message #34463] Wed, 07 January 2009 19:01 Go to previous message
laotse is currently offline  laotse
Messages: 35
Registered: December 2008
Member
Hi there,

I have a VE using veth and bridging, which works fine. However, after reboot, the veth interface is down and the old venet interface is there instead. Since I have already done --ipdel, this venet has some internal address, but wins the default route.

I edited /etc/network/interfaces.template as shown below:

auto eth0
iface eth0 inet static
        address 172.16.8.7
        netmask 255.255.255.0
        up route add default gw 172.16.8.1

auto eth3
iface eth3 inet static
        address 172.16.2.1
        netmask 255.255.255.0


However, after reboot the following /etc/network/interfaces is found in the container, which has eth3 but lacks eth0.

# This configuration file is auto-generated.
# WARNING: Do not edit this file, otherwise your changes will be lost.
# Please edit template /etc/network/interfaces.template instead.
auto eth3
iface eth3 inet static
        address 172.16.2.1
        netmask 255.255.255.0
# Auto generated interfaces
auto lo
iface lo inet loopback
auto venet0
iface venet0 inet static
        address 127.0.0.1
        netmask 255.255.255.255
        broadcast 0.0.0.0
        up route add -net 192.0.2.1 netmask 255.255.255.255 dev venet0
        up route add default gw 192.0.2.1


How do I get rid of venet0 and have eth0 instead?

Regards,
- lars.
 
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: df: `/': No such device
Next Topic: VEs sharing an IP address?
Goto Forum:
  


Current Time: Sun Sep 08 07:14:52 GMT 2024

Total time taken to generate the page: 0.05336 seconds