network-admin setup a wrong /etc/network/interfaces file for static network address
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gnome-system-tools (Ubuntu) |
Invalid
|
Critical
|
Sebastien Bacher |
Bug Description
On hoary.
I setup my network this way :
- IP adress 192.168.1.105
- Mask 255.255.255.0
- Gateway : 192.168.1.1
- DNS : 192.168.1.1
When I quit the command 'route' give me this ...
root@
Table de routage IP du noyau
Destination Passerelle Genmask Indic Metric Ref Use Iface
localnet * 255.255.255.0 U 0 0 0 eth0
The gateway has not been setup ...
If I try the command 'ifdown' on the interface ... I got that :
root@
/etc/
ifdown: couldn't read interfaces file "/etc/network/
On the "/etc/network/
# The primary network interface
iface eth0 inet
address 192.168.1.105
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
# dns-* options are implemented by the resolvconf package, if installed
name Carte Ethernet
gateway 192.168.1.1
If I change 'iface eth0 inet' to 'iface eth0 inet static' :
# The primary network interface
iface eth0 inet static
address 192.168.1.105
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
# dns-* options are implemented by the resolvconf package, if installed
name Carte Ethernet
gateway 192.168.1.1
and then 'ifdown eth0; ifup eth0' ... everything is now working ....
So network-admin seems to break the "/etc/network/
a static network setup.
This bug has been marked as a duplicate of bug 11976.