Debian This forum is for the discussion of Debian Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
08-15-2008, 06:41 AM
|
#1
|
Member
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194
Rep:
|
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).
|
|
|
08-15-2008, 07:36 AM
|
#2
|
Member
Registered: Oct 2006
Location: New York
Distribution: Debian
Posts: 675
Rep:
|
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.
|
|
|
08-15-2008, 07:49 AM
|
#3
|
Member
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194
Original Poster
Rep:
|
Quote:
Originally Posted by radiodee1
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.
|
|
|
08-15-2008, 09:21 AM
|
#4
|
Member
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
|
Quote:
Originally Posted by CloudyWizzard
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.... 
|
|
|
08-15-2008, 11:30 AM
|
#5
|
Member
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194
Original Poster
Rep:
|
If you can post your configurations that would be great !
I hope that fixes the problems with the disappearing DNS settings
|
|
|
03-25-2009, 01:47 PM
|
#6
|
LQ Newbie
Registered: Jan 2009
Location: Tulsa, OK
Distribution: Fedora, Ubuntu
Posts: 18
Rep:
|
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.
|
|
|
03-25-2009, 03:47 PM
|
#7
|
LQ Guru
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Rep: 
|
Quote:
Originally Posted by hardly
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..
|
|
|
03-26-2009, 09:50 AM
|
#8
|
Member
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194
Original Poster
Rep:
|
Quote:
Originally Posted by hardly
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.
|
|
|
03-27-2009, 06:00 PM
|
#9
|
LQ Newbie
Registered: Jan 2009
Location: Tulsa, OK
Distribution: Fedora, Ubuntu
Posts: 18
Rep:
|
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.
|
|
|
03-28-2009, 04:26 AM
|
#10
|
Member
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194
Original Poster
Rep:
|
Well maybe utanja sees this thread again and realizes "oh, yeah I had to post that" 
|
|
|
03-28-2009, 06:04 AM
|
#11
|
Member
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
|
Quote:
Originally Posted by CloudyWizzard
Well maybe utanja sees this thread again and realizes "oh, yeah I had to post that" 
|
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
|
|
|
03-28-2009, 07:32 AM
|
#12
|
Member
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194
Original Poster
Rep:
|
Quote:
Originally Posted by utanja
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
|
|
|
03-28-2009, 11:50 AM
|
#13
|
Member
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
|
Quote:
Originally Posted by CloudyWizzard
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.
|
|
|
03-28-2009, 01:54 PM
|
#14
|
Member
Registered: Jul 2004
Location: Belgium
Distribution: Debian Squeeze
Posts: 194
Original Poster
Rep:
|
Quote:
Originally Posted by utanja
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  )
|
|
|
03-28-2009, 10:15 PM
|
#15
|
Member
Registered: Apr 2004
Location: Europe:Salzburg Austria USA:Orlando,Florida;
Distribution: Debian
Posts: 643
Rep:
|
Quote:
Originally Posted by CloudyWizzard
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  )
|
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 02:01 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|