View previous topic :: View next topic |
Author |
Message |
George528 Tux's lil' helper
Joined: 27 May 2021 Posts: 97
|
Posted: Fri Jun 11, 2021 8:51 am Post subject: How to assign an ip adress to wlan0 |
|
|
When i boot up, only wired interface is loading properly and an ip is only to it assigned.
For wlan0 to work i have to:
1. run sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0
2. delete /var/run/wpa_supplicant/wlan0
3. run sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0 again
4. run dhcpcd wlan0 for it to assign an ip adress
how can i do this more easily or automatically?
also why do i get this "warning":
Code: | $ sudo wpa_supplicant -B -c /etc/wpa_supplicant.conf -i wlan0
Successfully initialized wpa_supplicant
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
nl80211: kernel reports: Match already configured
|
Thanks |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Fri Jun 11, 2021 9:04 am Post subject: |
|
|
In
/etc/conf.d/net
Code: |
#####WIRELESS
#modules="wpa_supplicant"
#config_wlan0="192.168.2.4/24"
#routes_wlan0="default via 192.168.2.1"
#dns_servers_wlan0="192.168.2.1"
####OR
#config_wlan0="dhcp"
|
In wpa_suppicant.conf you need of cource to set your esssid and password etc. _________________
|
|
Back to top |
|
|
George528 Tux's lil' helper
Joined: 27 May 2021 Posts: 97
|
Posted: Fri Jun 11, 2021 11:07 am Post subject: |
|
|
alamahant wrote: | In
/etc/conf.d/net
Code: |
#####WIRELESS
#modules="wpa_supplicant"
#config_wlan0="192.168.2.4/24"
#routes_wlan0="default via 192.168.2.1"
#dns_servers_wlan0="192.168.2.1"
####OR
#config_wlan0="dhcp"
|
In wpa_suppicant.conf you need of cource to set your esssid and password etc. |
i went with the dhcp option but it still doesn't work |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Fri Jun 11, 2021 12:58 pm Post subject: |
|
|
Did you
Code: |
cd /etc/init.d
ln -s net.lo net.wlan0
rc-update add net.wlan0 boot
rc-update add wpa_supplicant boot
|
? _________________
|
|
Back to top |
|
|
dmpogo Advocate
Joined: 02 Sep 2004 Posts: 3267 Location: Canada
|
Posted: Sat Jun 12, 2021 5:07 am Post subject: |
|
|
alamahant wrote: | Did you
Code: |
cd /etc/init.d
ln -s net.lo net.wlan0
rc-update add net.wlan0 boot
rc-update add wpa_supplicant boot
|
? |
If he uses dhcpcd, there is no need for any of that |
|
Back to top |
|
|
George528 Tux's lil' helper
Joined: 27 May 2021 Posts: 97
|
Posted: Sat Jun 12, 2021 7:53 am Post subject: |
|
|
dmpogo wrote: | alamahant wrote: | Did you
Code: |
cd /etc/init.d
ln -s net.lo net.wlan0
rc-update add net.wlan0 boot
rc-update add wpa_supplicant boot
|
? |
If he uses dhcpcd, there is no need for any of that |
i use NetworkManager now
how do i make it so it automatically assigns an ip value |
|
Back to top |
|
|
figueroa Advocate
Joined: 14 Aug 2005 Posts: 2964 Location: Edge of marsh USA
|
Posted: Sun Jun 13, 2021 2:52 am Post subject: |
|
|
Right click on the NM icon in panel, edit the connection, set an IP address and other network parameters (probably on the IPV4 tab). _________________ Andy Figueroa
hp pavilion hpe h8-1260t/2AB5; spinning rust x3
i7-2600 @ 3.40GHz; 16 gb; Radeon HD 7570
amd64/23.0/split-usr/desktop (stable), OpenRC, -systemd -pulseaudio -uefi |
|
Back to top |
|
|
George528 Tux's lil' helper
Joined: 27 May 2021 Posts: 97
|
Posted: Sun Jun 13, 2021 7:51 am Post subject: |
|
|
figueroa wrote: | Right click on the NM icon in panel, edit the connection, set an IP address and other network parameters (probably on the IPV4 tab). |
i dont have a nm gui installed, what package to install for xfce? |
|
Back to top |
|
|
alamahant Advocate
Joined: 23 Mar 2019 Posts: 3879
|
Posted: Sun Jun 13, 2021 9:12 am Post subject: |
|
|
gnome-extra/nm-applet _________________
|
|
Back to top |
|
|
|