Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
How to assign an ip adress to wlan0
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Fri Jun 11, 2021 8:51 am    Post subject: How to assign an ip adress to wlan0 Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Jun 11, 2021 9:04 am    Post subject: Reply with quote

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
View user's profile Send private message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Fri Jun 11, 2021 11:07 am    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Fri Jun 11, 2021 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
dmpogo
Advocate
Advocate


Joined: 02 Sep 2004
Posts: 3267
Location: Canada

PostPosted: Sat Jun 12, 2021 5:07 am    Post subject: Reply with quote

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
View user's profile Send private message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Sat Jun 12, 2021 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message
figueroa
Advocate
Advocate


Joined: 14 Aug 2005
Posts: 2964
Location: Edge of marsh USA

PostPosted: Sun Jun 13, 2021 2:52 am    Post subject: Reply with quote

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
View user's profile Send private message
George528
Tux's lil' helper
Tux's lil' helper


Joined: 27 May 2021
Posts: 97

PostPosted: Sun Jun 13, 2021 7:51 am    Post subject: Reply with quote

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
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3879

PostPosted: Sun Jun 13, 2021 9:12 am    Post subject: Reply with quote

gnome-extra/nm-applet
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum