Switching from DHCP kills wifi
Happy New Year!
Debian 11 bullseye Attempting to configure /etc/network/interfaces with static ip address. Results in "No valid active connections found!" Code:
me@debian:~$ cat /etc/network/interfaces Code:
me@debian:~$ ip a |
You gave very little info.
Code:
address 192.168.5.2 Code:
nmap -sL 192.168.5.2/22 Code:
dns-nameservers 209.16.64.2 209.16.64.1 Code:
dig @209.16.64.2 google.com Can you ping by IP, and not URL? Need more info. Quote:
|
Thanks for your help!
I will be more than happy to provide more info (assuming I understand what is required). I have wifi connectivity now, because I erased this Code:
auto wlp2s0 Code:
me@debian:~$ sudo nmap -sL 192.168.5.2 |
Would you please provide the output of ' ip address show ' and ' ip route show '
I suspect a subnet issue with different netmasks between the router and your host. |
By default debian uses network manager which basically connects to the router/access point then runs dhclient to acquire an IP address
Network manager does have the capability to configure a static IP address. If you want to setup wireless manually you will need to disable network manager and also add the router's SSID and passphrase. https://wiki.debian.org/WiFi/HowToUse |
@computersavvy
Code:
me@debian:~$ ip address show Code:
me@debian:~$ ip route show |
Manually configuring network settings for wireless needs more configuration then wired. This link has a condensed write-up about it: https://linuxconfig.org/how-to-conne...bian-10-buster
|
The info provided from your host looks good. Was that when you had manually set the static address or dhcp?
What is the subnet mask on the router? If the router netmask and the host netmask differ then it causes problems. If they are the same, then the network address should be 192.168.4.0/22 which gives you the usable subnet addresses 192.168.4.1 - 192.168.7.254 with broadcast at 192.168.7.255. That is indicated on the host info you posted, but needs to be verified to match on the router. |
Quote:
Quote:
Code:
me@debian:~$ sudo route -n Quote:
|
I tried nm-connection-editor, and I'm cautiously optimistic, as it is working for now. I entered the same data for address, netmask, gateway, and nameservers as in post #3 above.
/etc/NetworkManager/system-connections has same. /etc/network/interfaces is unmodified. |
The only caveat is the static IP address should not be in the range of addresses assigned by the DHCP server otherwise there could be a conflict.
|
@michaelk,
The IP address I chose was from one of the many found when running "ip a"...you are saying that's not good? Q1: Is DHCP still active? Q2: How do I find the range of addresses assigned by the DHCP server? Q3: Can I assign the IP address any way I want, such as 192.168.anything.anything? |
Quote:
|
Quote:
Q1: The server is still active but your computer will not ask it for an address. Most DHCP servers now days will try to assign the same address to the same computer as long as the lease is still active. Q2: If you do not own or have access to the router or device that runs DHCP server then it is not possible. If you do own the router then you can login to its web configuration page to check the range. If the latter is true then you might want to configure an address reservation versus static IP address which is essentially the same thing. This would be better if your PC is a laptop. Q3: It depends. If the network/router is your own then basically yes but it must be within the same subnet as assigned by your router but again outside its DHCP server range. Otherwise no. |
@TB0ne
Quote:
Quote:
From Linux From Scratch Version 11.0, Chapter 9--General Network Configuration Quote:
|
All times are GMT -5. The time now is 08:08 PM. |