aliases numeration should start from 0

in /etc/network/interfaces you have to tune interfaces like:

iface eth0 ....
iface eth0:0 ...
iface eth0:1 ...

and so on

19.04.2012 00:17, Asif Iqbal написал:
I have the following config for interfaces

# cat /etc/network/interfaces
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
#auto eth0 eth0:1 eth0:2 eth0:3 eth0:4
auto eth0 eth0:1 eth0:2
iface eth0 inet static
        address 192.168.0.84
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
        # dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 192.168.3.65 192.168.2.65
        dns-search example.net
iface eth0:1 inet static
         address 192.168.0.80
         netmask 255.255.255.0
         network 192.168.0.0
         broadcast 192.168.0.255
iface eth0:2 inet static
         address 192.168.0.249
         netmask 255.255.255.0
         network 192.168.0.0
         broadcast 192.168.0.255

However eth0:1 did not come up by itself. I had to up it manually, but
it also output some odd error messages

# ifup eth0:1
Interface 'eth0:1' not existent.
run-parts: /etc/network/if-up.d/ifmetric exited with return code 1
ssh stop/waiting
ssh start/running, process 3182

Obviously it is not true about eth0:1. Now I have the eth0:1 interface up.

I am running Ubuntu 10.04.4 LTS 64bit

what gives?





--
ubuntu-server mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-server
More info: https://wiki.ubuntu.com/ServerTeam

Reply via email to