LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Static LAN (wired and WiFi) IP in Debian setup problems. (https://www.linuxquestions.org/questions/debian-26/static-lan-wired-and-wifi-ip-in-debian-setup-problems-662957/)

CloudyWizzard 08-15-2008 06:41 AM

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).

radiodee1 08-15-2008 07:36 AM

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.

CloudyWizzard 08-15-2008 07:49 AM

Quote:

Originally Posted by radiodee1 (Post 3248433)
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.

I tried this, somewhere I found instructions to add the DNS to /etc/network/interfaces but that didn't seem to work.

utanja 08-15-2008 09:21 AM

Quote:

Originally Posted by CloudyWizzard (Post 3248384)
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).

I have a Sony Vaio running XP and a network of Linux workstations....all are configured for static and work fine.....You have to configure the wireless separately from the wired network......When I get in from a flight later this evening I can post my configuration....I use a DLINK Wifi router with addional switches to be able to have a total of 9 workstations....all can access the internet and each other as well as file and printer sharing....works super....:)

CloudyWizzard 08-15-2008 11:30 AM

If you can post your configurations that would be great !

I hope that fixes the problems with the disappearing DNS settings

hardly 03-25-2009 01:47 PM

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.

farslayer 03-25-2009 03:47 PM

Quote:

Originally Posted by hardly (Post 3487547)
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.

If searching doesn't produce the answer you seek, you could always start a new thread and ask a specific question..

CloudyWizzard 03-26-2009 09:50 AM

Quote:

Originally Posted by hardly (Post 3487547)
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.

I never saw the configurations that utanja was gonna post here so I guess he forgot

I finally gave up onto this problem.

hardly 03-27-2009 06:00 PM

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.

CloudyWizzard 03-28-2009 04:26 AM

Well maybe utanja sees this thread again and realizes "oh, yeah I had to post that" :D

utanja 03-28-2009 06:04 AM

Quote:

Originally Posted by CloudyWizzard (Post 3490405)
Well maybe utanja sees this thread again and realizes "oh, yeah I had to post that" :D

I have been away out from the US.....got in last nite and leaving again this AM.....will try to get this while in europe

:)
btw...what kind of router

CloudyWizzard 03-28-2009 07:32 AM

Quote:

Originally Posted by utanja (Post 3490459)
I have been away out from the US.....got in last nite and leaving again this AM.....will try to get this while in europe

:)
btw...what kind of router

I have a Linksys one (older one with 4 ports) BEFSR41

utanja 03-28-2009 11:50 AM

Quote:

Originally Posted by CloudyWizzard (Post 3490511)
I have a Linksys one (older one with 4 ports) BEFSR41

my setup is with a dlink 615 which is both wired and wireless...

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.

CloudyWizzard 03-28-2009 01:54 PM

Quote:

Originally Posted by utanja (Post 3490708)
my setup is with a dlink 615 which is both wired and wireless...

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.

So IF I understand correctly, the WiFi must be off when you use the wired network (you can't use both ?)

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)

utanja 03-28-2009 10:15 PM

Quote:

Originally Posted by CloudyWizzard (Post 3490827)
So IF I understand correctly, the WiFi must be off when you use the wired network (you can't use both ?)

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)

correct....you cannot use both at the same time unless you set it as a bridge...but I am not aware of how to do this...

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.