I installed and configured two network device.
One is my onboard lan and the other a PCI wlan device.
I configured them both via interfaces file.
Code:
auto lo ath0 eth0
iface lo inet loopback
address 127.0.0.1
netmask 255.0.0.0
iface ath0 inet dhcp
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
iface eth0 inet static
address 192.168.0.164
netmask 255.255.255.0
If no lan cable is plugged in to eth0 everything works fine. My gateway and dns (resolv.conf) are configured correctly.
Once I plug in also the cable the dns entry is overwritten by 192.168.0.1. Before it was 192.168.178.1.
I have no idea why this happens. I also read the the ominous network-manager ubuntu uses doesn't configure devices listed in interfaces. So has anybody a idea what there happens and how i can prevent it?
I already set the dhclient.conf option to:
Code:
prepend domain-name-servers 192.168.178.1;
But it has no use, it got overwritten nevertheless.
Perhaps here somebody can help me. thanks a lot in advance.