Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
(SOLVED) fresh install, using wpa_supplicant works, but no
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
RodMyers
n00b
n00b


Joined: 06 Mar 2021
Posts: 8

PostPosted: Fri Apr 30, 2021 11:35 pm    Post subject: (SOLVED) fresh install, using wpa_supplicant works, but no Reply with quote

Using a fresh install of gentoo

Code:
uname -a
Linux mind_your_own_business 4.19.184-gentoo #1 SMP PREEMPT Sat Apr 24 18:58:19 EDT 2021 x86_64 Intel(R) Core(TM) i5-6300U CPU @ 2.40GHz GenuineIntel GNU/Linux



using this to get networking functioning. It does, with one exception.

I have /etc/conf.d/net setup to use a static IP

Code:
# static ip with netmask notation
#  to try and get wireless up and running

modules="wpa_supplicant"

# below works but no static
config_wlp1s0="192.168.1.69/24"
routes_wlp1s0="default via 192.168.1.254"
dns_servers_wlp1s0="192.168.1.254 8,8,8,8"



Not sure what I am missing at this point.

Any pointers would be greatly appreciated.

[Moderator edit: changed [i] tags to [code] tags to preserve output layout. -Hu]


Last edited by RodMyers on Thu May 13, 2021 11:10 am; edited 1 time in total
Back to top
View user's profile Send private message
cboldt
Veteran
Veteran


Joined: 24 Aug 2005
Posts: 1046

PostPosted: Sat May 01, 2021 12:53 am    Post subject: Reply with quote

Code:
config_eth0="192.168.0.1 netmask 255.255.255.0 brd 192.168.0.255"
routes_eth0="default via 192.168.0.10"

I think your /24 IP addy is the problem. Above lines in /etc/conf.d/net do the trick for me, no systemd
Back to top
View user's profile Send private message
RodMyers
n00b
n00b


Joined: 06 Mar 2021
Posts: 8

PostPosted: Sat May 01, 2021 12:14 pm    Post subject: Reply with quote

cboldt wrote:
Code:
config_eth0="192.168.0.1 netmask 255.255.255.0 brd 192.168.0.255"
routes_eth0="default via 192.168.0.10"

I think your /24 IP addy is the problem. Above lines in /etc/conf.d/net do the trick for me, no systemd


Thanks. Will change mine over later today
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 55449
Location: 56N 3W

PostPosted: Sat May 01, 2021 1:11 pm    Post subject: Reply with quote

RodMyers,

Code:
dns_servers_wlp1s0="192.168.1.254 8,8,8,8"

You have commas between the 8's. It needs to be dots.

Code:
config_eth0="192.168.100.20/24 brd 192.168.100.255"


As long as your interface is called wlp1s0, I would expect it to work except for the nameservers.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
RodMyers
n00b
n00b


Joined: 06 Mar 2021
Posts: 8

PostPosted: Sat May 01, 2021 8:53 pm    Post subject: Reply with quote

NeddySeagoon wrote:
RodMyers,

Code:
dns_servers_wlp1s0="192.168.1.254 8,8,8,8"

You have commas between the 8's. It needs to be dots.

Code:
config_eth0="192.168.100.20/24 brd 192.168.100.255"


As long as your interface is called wlp1s0, I would expect it to work except for the nameservers.


I triple checked that. Thanks will try again
Back to top
View user's profile Send private message
RodMyers
n00b
n00b


Joined: 06 Mar 2021
Posts: 8

PostPosted: Sun May 02, 2021 10:45 pm    Post subject: Reply with quote

For some reason, still NOT working, but if I run this in the terminal is works as it should


Code:

ip addr add 192.168.1.30/24 dev wlp1s0
ip link set wlp1s0 up
route add default gw 192.168.1.254 wlp1s0
Back to top
View user's profile Send private message
figueroa
Advocate
Advocate


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

PostPosted: Mon May 03, 2021 2:13 am    Post subject: Reply with quote

This works for me in /etc/conf.d/net -- my interface is set to lan2 manually, you can use your interface name in its place.
Code:
config_lan2="192.168.0.102 netmask 255.255.255.0"
routes_lan2="default via 192.168.0.1"
dns_domain_lan2="whatever.net"
dns_servers_lan2="94.140.14.14 94.140.15.15 208.67.222.222"

Be sure you interface name is set to the default rc level. In my case,
Code:
$ rc-update show | grep lan2
             net.lan2 |      default 

and that /etc/init.d/net.lan2 is a symlink to /etc/init.d/net.lo.
_________________
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 -wayland
Back to top
View user's profile Send private message
RodMyers
n00b
n00b


Joined: 06 Mar 2021
Posts: 8

PostPosted: Tue May 04, 2021 9:41 pm    Post subject: Reply with quote

dang "operator error"

I had everything correct, except I also has wpa_supplicant running at boot as well.

removed wpa_supplicant from "default" and everything suddenly started working as it should.

Thank you
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