eth0:1 did not come up automatically
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? -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam |
eth0:1 did not come up automatically
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 -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam |
eth0:1 did not come up automatically
Not sure if this will help, but here's how I did it on my server (don't pay attention to the wrong addresses or masks...):
auto eth0 iface eth0 inet static *** address 192.168.1.31 *** netmask 255.255.240.0 *** gateway 192.168.1.1 *** up route add -host 192.168.1.31 dev eth0 *** pre-up iptables-restore < /etc/iptables.rules auto eth0:1 iface eth0:1 inet static *** address 192.168.1.32 *** netmask 255.255.240.0 *** gateway 192.168.1.1 *** up route add -host 192.168.1.32 dev eth0:1 auto eth0:2 iface eth0:2 inet static *** address 192.168.1.33 *** netmask 255.255.240.0 *** gateway 192.168.1.1 *** up route add -host 192.168.1.33 dev eth0:2 And somehow,* auto eth0:1 ... wouldn't work properly, so i just added the following to /etc/rc.local, to make sure they are brought up: ifup eth0 ifup eth0:1 ifup eth0:2 -- ubuntu-server mailing list ubuntu-server@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-server More info: https://wiki.ubuntu.com/ServerTeam |
| All times are GMT. The time now is 04:32 PM. |
VBulletin, Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.