Asif,

On Wed, Apr 18, 2012 at 04:17:18PM -0400, Asif Iqbal wrote:
> iface eth0:1 inet static

eth0:1 isn't an interface. As far as I'm aware, ifupdown doesn't support
aliases directly, so you can't just add a stanza for it in
/etc/network/interfaces. But I may need to be corrected on this.

I've always done something like:

auto eth0
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
        up ip addr add 192.168.0.80/24 dev eth0 label eth0:1
        up ip addr add 192.168.0.249/24 dev eth0 label eth0:2

(label eth0:{1,2} are only needed for backwards compatibility with
ifconfig)

But perhaps there's a better way?

Robie

Attachment: signature.asc
Description: Digital signature

-- 
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