Static LAN (wired and WiFi) IP in Debian setup problems.
DebianThis 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.
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.
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.
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.
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.
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.
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....
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.
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..
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
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...
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 )
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.