I will try to explain as best I can my doubt.
1) I don't use NetworkManager nor have it installed.
2) Know before I don't configure networking on my slackware when I install it! I always skip this part in the installation.
I created a script that sets and sets the values I use. My script connects to the Internet, IP exchange, simple things.
Today in an initial installation, I realized that the Internet didn't work.
So I accessed my script and run it. But the way I want to use it was insisting on not working
In order not to mix Shell Script with my doubt, I will show the commands that I execute only
I run the command below to set up and connect my Internet.
Code:
wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0 -D nl80211
ifconfig wlan0 192.168.1.10
route add default gw 192.168.1.1
But it did not work. So figuring it could be any mistake, I made it clean!
Code:
dhclient -r
killall wpa_supplicant
wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0 -D nl80211
ifconfig wlan0 192.168.1.10
route add default gw 192.168.1.1
But it still didn't work.
What confuses me, is that if I do the way below, he assigning the IP automatically. It works!
Code:
wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0 -D nl80211
dhclient wlan0
I want to understand what
dhclient did differently, what it modified to make it work?
And because, just because I executed the command above, the previous commands that didn't work now work normally without problems.
I would like to know if
dhclient has modified any files on my pc and which file to do this magic.