View previous topic :: View next topic |
Author |
Message |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Sun May 10, 2020 1:23 am Post subject: |
|
|
NeddySeagoon,
It worked!
I turned off net.eth0 so that it wouldn't boot on startup.
Rebooted the Pi.
Typed "dhcped wlan0" on the command line, without the quotes.
Now, the wlan0 interface is up and I can ping to a public ip address.
Next question:
How do I get wlan0 to start up on boot?
Thanks,
Don James
NeddySeagoon wrote: | donjames,
That looks OKish.
Having two interfaces in the same subnet is a bad thing.
The output of route will be interesting.
Save it before you follow the rest of this post.
For testing, edit /etc/rc.conf and set Code: | rc_depend_strict="NO" |
Read the comment and understand what it does.
You will need to uncomment it.
Stop eth0 and I would expect WiFi to work.
Any one at a time should work. |
|
|
Back to top |
|
 |
NeddySeagoon Administrator


Joined: 05 Jul 2003 Posts: 46999 Location: 56N 3W
|
Posted: Sun May 10, 2020 10:07 am Post subject: |
|
|
donjames,
You missed a lot of your Gentoo introductory education as you skipped the handbook install on the Pi.
There is a example net file at Code: | /usr/share/doc/netifrc-<ver>/net.example.bz2 |
That's a good read.
However, you want to set up your Pi2 as a router, so knowing that all the bits work now, you may want to consult the Home Router guide.
The Pi2 has all the I/O you will be using for a router on a single USB2 port. That gives you 440Mbit/sec for all of your network traffic. Will that be adequate for your traffic?
If you must use a Pi, the Pi3 has SDIO Wifi built in and a single USB2 port for everything else.
The Pi4 is better yet. It has SDIO Wifi built in, a real 1Gbit ethernet port and separate USB3 on a single lane PCIe bus, so its limited to 4Gbit/sec.
Depending on what you want to route and how fast. the Pi2 may be good enough. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
 |
donjames Apprentice


Joined: 19 Dec 2004 Posts: 251 Location: 32°9'50" N 94°50'54" W
|
Posted: Fri May 15, 2020 3:12 pm Post subject: |
|
|
NeddySeagoon,
I finally got the wireless to work reliably.
File: /etc/wpa_supplicant/wpa_supplicant.conf:
Code: | network={
ssid="livingroom"
psk="abcdeabcde"
# The higher the priority the sooner we are matched
priority=5
}
network={
ssid="etscom"
psk="abcdeabcde"
priority=4
}
network={
ssid="RB411AR"
psk="abcdeabcde"
priority=3
} |
######## end of file ###########
In the file: /etc/conf.d/wpa_supplicant:
conf.d file for wpa_supplicant
Code: | # uncomment this if wpa_supplicant starts up before your network interface
# is ready and it causes problems
rc_want="dev-settle"
# Please check man 8 wpa_supplicant for more information about the options
# wpa_supplicant accepts.
#
wpa_supplicant_args="-B -M -c /etc/wpa_supplicant/wpa_supplicant.conf"
|
######### end ##########
In the file: /etc/conf.d/net:
Code: | config_eth0="192.168.1.94/24"
routes_eth0="default via 192.168.1.1"
dns_servers_eth0="192.168.1.1 8.8.8.8"
config_eth1="192.168.1.95/24"
routes_eth1="default via 192.168.1.1"
dns_servers_eth1="192.168.1.1 8.8.8.8"
config_wlan0="192.168.1.97/24"
routes_wlan0="default via 192.168.1.1"
dns_servers="192.168.1.1 8.8.8.8"
modules="wpa_supplicant"
|
############# end ############
Runlevels:
ls -al /etc/runlevels/default:
Code: | ls -al /etc/runlevels/default
total 8
drwxr-xr-x 2 root root 4096 Dec 31 1969 .
drwxr-xr-x 7 root root 4096 Apr 6 23:15 ..
lrwxrwxrwx 1 root root 15 May 3 19:34 gpm -> /etc/init.d/gpm
lrwxrwxrwx 1 root root 17 Apr 6 23:14 local -> /etc/init.d/local
lrwxrwxrwx 1 root root 20 Apr 6 23:14 netmount -> /etc/init.d/netmount
lrwxrwxrwx 1 root root 22 May 4 23:24 ntp-client -> /etc/init.d/ntp-client
lrwxrwxrwx 1 root root 16 May 3 20:37 sshd -> /etc/init.d/sshd
lrwxrwxrwx 1 root root 20 May 3 20:26 sysklogd -> /etc/init.d/sysklogd
lrwxrwxrwx 1 root root 26 Dec 31 1969 wpa_supplicant -> /etc/init.d/wpa_supplicant
|
##### end ###
Thank you very much for all of the help.
Next thing to do is get the router to working. I have made a home router with a pc running Linux, so I am somewhat familiar with the procedure.
I think the Pi2 will be fast enough for me. My internet connection is 100mbits, and I am not running any kind of public server.
Regards,
donjames
NeddySeagoon wrote: | donjames,
You missed a lot of your Gentoo introductory education as you skipped the handbook install on the Pi.
There is a example net file at Code: | /usr/share/doc/netifrc-<ver>/net.example.bz2 |
That's a good read.
However, you want to set up your Pi2 as a router, so knowing that all the bits work now, you may want to consult the Home Router guide.
The Pi2 has all the I/O you will be using for a router on a single USB2 port. That gives you 440Mbit/sec for all of your network traffic. Will that be adequate for your traffic?
If you must use a Pi, the Pi3 has SDIO Wifi built in and a single USB2 port for everything else.
The Pi4 is better yet. It has SDIO Wifi built in, a real 1Gbit ethernet port and separate USB3 on a single lane PCIe bus, so its limited to 4Gbit/sec.
Depending on what you want to route and how fast. the Pi2 may be good enough. |
[Moderator edit: added [code] tags to preserve output layout. -Hu] |
|
Back to top |
|
 |
|
|
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
|
|