Static LAN (wired and WiFi) IP in Debian setup problems.
Hi,
I'm trying to setup static IP's on my Debian laptop (sony vaio). With the Default DHCP setup everything works fine, but for some server applications I'd like to setup static IP's to make it easier to access. When I setup my NIC as static it only works for the LAN not the internet. After some tinkering I found that the DNS settings kept beeing deleted in resolv.conf. I can manually add the DNS to make it work but that only works until a reboot or when the WiFi in enabled. I tried to disable the WiFi (switch at the front of the laptop) to prevent this from deleting the DNS information but that doesn't seem to work. I found some settings for static IP's with WiFi but from what I understand that only works with WEP encryption and not WPA (what my Wireless Access Point uses). so is there anybody here who can help me with this, the ideal situation would be that the WiFi connection uses a static IP and when a wired connection is established (when faster speed is needed or when there is no Wlan available) that one also get's a static IP. this is my network layout interface : eth1 (wired LAN) address : 192.168.123.56 gateway : 192.168.123.1 interface : eth2 (WiFi) address : 192.168.123.57 gateway : 192.168.123.1 encryption : WPA Personal ssid : wireless key : network dns : 195.XXX.X.XX (this is the DNS that my ISP provided, I guess it's also possible to use someting like OpenDNS or something). (bot the ssid and key are just examples offcourse). |
instead of resolv.conf you might really want to use '/etc/network/interfaces'. You can find out more about it with 'man interfaces'. Maybe that will help you.
|
Quote:
|
Quote:
|
If you can post your configurations that would be great !
I hope that fixes the problems with the disappearing DNS settings |
This is why I have so many unsolved problems.
Where's the resolution? Was this problem solved? How? There are so many threads like this. It seems like about half of the search results I get have no resolution and the other half do not pertain to what I'm looking for.
I guess I need to keep looking and continue reading. |
Quote:
|
Quote:
I finally gave up onto this problem. |
Bummer.
I went a head and plugged my Debian box into a wire and gave up on trying to get a static IP on wlan0. So I'm set. THanks all. |
Well maybe utanja sees this thread again and realizes "oh, yeah I had to post that" :D
|
Quote:
:) btw...what kind of router |
Quote:
|
Quote:
on my HP laptop static address wifi =192.168.0.4 netmask=255.255.255.0 gateway=192.168.0.1 (this is the address of the router) dns 1 = the one from my ISP dns2 = the other from my ISP wired is DHCP using defaults if I use static for the wired, it must be different from the wifi and the wifi I usually turn off... workgroups are the same for both. hope this helps. |
Quote:
and this information is added to /etc/network/interfaces ? Thanks for the information (oh and is it dns1 or dns 1 ?? since you have dns 1 and dns2 I guess one of them is wrong :D) |
Quote:
dns 1 and dns2 are the dns server for my isp....they are entered automically... |
All times are GMT -5. The time now is 01:38 AM. |