Thread: NICs do not get an IP address even though they are defined in /etc/network/interfaces
hi all!
it's pretty hard google issue because gives lot of noise results, i'm posting here.
using ubuntu 10.04.
not of nics don't ips assigned @ boot though defined in /etc/network/interfaces:
note network-manager apt-get purged system , not in way.code:auto lo iface lo inet loopback auto eth0 iface eth0 inet manual address 172.16.1.3 netmask 255.0.0.0 gateway 172.16.1.255 auto tap0 iface tap0 inet static address 172.16.1.1 netmask 255.0.0.0 gateway 172.16.1.255 pre-up vde_tunctl -t $iface post-up vde_switch -t $iface -s /tmp/vde-$iface \ -d -g rhuser -m 664 post-down vde_tunctl -d $iface auto br0 iface br0 inet static address 172.16.1.2 netmask 255.0.0.0 gateway 172.16.1.255 bridge_ports eth0 tap0
here's output ifconfig:
note: br0 assigned ip reason.code:$ ifconfig br0 link encap:ethernet hwaddr 78:e3:b5:90:88:df inet addr:172.16.1.2 bcast:172.255.255.255 mask:255.0.0.0 inet6 addr: fe80::7ae3:b5ff:fe90:88df/64 scope:link broadcast running multicast mtu:1500 metric:1 rx packets:156 errors:0 dropped:0 overruns:0 frame:0 tx packets:17 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 rx bytes:36414 (36.4 kb) tx bytes:3317 (3.3 kb) eth0 link encap:ethernet hwaddr 78:e3:b5:90:88:df inet6 addr: fe80::7ae3:b5ff:fe90:88df/64 scope:link broadcast running multicast mtu:1500 metric:1 rx packets:156 errors:0 dropped:0 overruns:0 frame:0 tx packets:17 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 rx bytes:38598 (38.5 kb) tx bytes:3317 (3.3 kb) interrupt:32 base address:0xe000 lo link encap:local loopback inet addr:127.0.0.1 mask:255.0.0.0 inet6 addr: ::1/128 scope:host loopback running mtu:16436 metric:1 rx packets:1408 errors:0 dropped:0 overruns:0 frame:0 tx packets:1408 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:0 rx bytes:113404 (113.4 kb) tx bytes:113404 (113.4 kb) tap0 link encap:ethernet hwaddr c2:e3:c8:17:69:0f inet6 addr: fe80::c0e3:c8ff:fe17:690f/64 scope:link broadcast running multicast mtu:1500 metric:1 rx packets:0 errors:0 dropped:0 overruns:0 frame:0 tx packets:0 errors:0 dropped:173 overruns:0 carrier:0 collisions:0 txqueuelen:500 rx bytes:0 (0.0 b) tx bytes:0 (0.0 b)
also, if use ifconfig command assign ips temporarily, works fine. assignment @ boot issue.
there must simple i'm missing here. suggestions appreciated!
(in case you're wondering i'm going - i'm trying have configuration several virtual machines talking each other, host, , outside network. host not connected internet - it's on local network.)
your formatting of /etc/network/interfaces looks kind of quirky
wild guess.
stuff this
try changingcode:address 172.16.1.3 netmask 255.0.0.0 gateway 172.16.1.255
again, guess copy paste (if thats did)code:address 172.16.1.3 netmask 255.0.0.0 gateway 172.16.1.255
has inserted hidden control characters , non blank spaces
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Networking & Wireless [all variants] NICs do not get an IP address even though they are defined in /etc/network/interfaces
Ubuntu
Comments
Post a Comment