View previous topic :: View next topic |
Author |
Message |
RodMyers n00b


Joined: 06 Mar 2021 Posts: 8
|
Posted: Fri Apr 30, 2021 11:35 pm Post subject: (SOLVED) fresh install, using wpa_supplicant works, but no |
|
|
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 |
|
 |
cboldt Veteran


Joined: 24 Aug 2005 Posts: 1046
|
Posted: Sat May 01, 2021 12:53 am Post subject: |
|
|
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 |
|
 |
RodMyers n00b


Joined: 06 Mar 2021 Posts: 8
|
Posted: Sat May 01, 2021 12:14 pm Post subject: |
|
|
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 |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 55449 Location: 56N 3W
|
Posted: Sat May 01, 2021 1:11 pm Post subject: |
|
|
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 |
|
 |
RodMyers n00b


Joined: 06 Mar 2021 Posts: 8
|
Posted: Sat May 01, 2021 8:53 pm Post subject: |
|
|
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 |
|
 |
RodMyers n00b


Joined: 06 Mar 2021 Posts: 8
|
Posted: Sun May 02, 2021 10:45 pm Post subject: |
|
|
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 |
|
 |
figueroa Advocate


Joined: 14 Aug 2005 Posts: 3026 Location: Edge of marsh USA
|
Posted: Mon May 03, 2021 2:13 am Post subject: |
|
|
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 |
|
 |
RodMyers n00b


Joined: 06 Mar 2021 Posts: 8
|
Posted: Tue May 04, 2021 9:41 pm Post subject: |
|
|
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 |
|
 |
|