Net work setting become lost on reboot

Soldato
Joined
1 Aug 2006
Posts
4,071
How do is tell ubuntu to save my manual network setting because when i reboot they are lost and have to enter them again.

many thx jay.
 
Last edited:
Put something like
Code:
auto eth0
iface eth0 inet static
        address 192.168.1.2
        netmask 255.255.255.0
        network 192.168.0.0
        broadcast 192.168.0.255
        gateway 192.168.0.1
in your /etc/network/interfaces
You may have different IPs, and a different interface (where I have eth0).

For the DNS servers, put
Code:
supersede domain-name-servers 134.232.433.24 45.326.47.28;
in your /etc/dhclient.conf
Obviously use valid IP address/es for your DNS server/s. If you want other interfaces to work on DHCP still, use preappend instead of supersede, but be aware that by default it will only use the 1st 3 DNS servers.
 
Last edited:
Back
Top Bottom