eth0:1 did not come up automatically
Robie Basak
robie.basak at canonical.com
Fri Apr 20 09:43:08 UTC 2012
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-server/attachments/20120420/37d298de/attachment.pgp>
More information about the ubuntu-server
mailing list