- 1 year ago
- #raspberrypi
- #wifirepeater
- #networking
In this video, we finish transforming a Raspberry Pi into a powerful Wi-Fi repeater to extend your network's range! Follow along as we set up the access point, test connectivity with a nested Ubuntu VM, configure static routes, and troubleshoot terminal issues. Perfect for tech enthusiasts looking to boost their home network or set up servers further away. From ping tests to SSH connections, we cover it all. Subscribe for more DIY tech tutorials, and check out our website for more guides! #RaspberryPi #WiFiRepeater #Networking
Introduction and Setup Recap 00:00:00
Testing Access Point 00:00:14
Inner Ubuntu VM Boot 00:00:28
Virtual Machine Inception 00:01:12
Network Connectivity Test 00:01:49
Ping and Routing Success 00:02:12
IPv4 and Domain Testing 00:02:38
Font Size and Terminal Issues 00:03:02
Installing Terminator 00:03:24
Adding Static Route 00:04:47
Persistent Route Configuration 00:08:48
Network Settings Adjustment 00:11:02
Router Static Route Discussion 00:13:32
SSH Connection Test 00:14:46
Final Thoughts and Subscribe 00:16:20
Thanks for watching!
Find us on other social media here:
- https://www.NeuralLantern.com/social
Please help support us!
- Subscribing + Sharing on Social Media
- Leaving a comment or suggestion
- Subscribing to our Blog
- Watching the main "pinned" video of this channel for offers and extras
Introduction and Setup Recap 00:00:00
Testing Access Point 00:00:14
Inner Ubuntu VM Boot 00:00:28
Virtual Machine Inception 00:01:12
Network Connectivity Test 00:01:49
Ping and Routing Success 00:02:12
IPv4 and Domain Testing 00:02:38
Font Size and Terminal Issues 00:03:02
Installing Terminator 00:03:24
Adding Static Route 00:04:47
Persistent Route Configuration 00:08:48
Network Settings Adjustment 00:11:02
Router Static Route Discussion 00:13:32
SSH Connection Test 00:14:46
Final Thoughts and Subscribe 00:16:20
Thanks for watching!
Find us on other social media here:
- https://www.NeuralLantern.com/social
Please help support us!
- Subscribing + Sharing on Social Media
- Leaving a comment or suggestion
- Subscribing to our Blog
- Watching the main "pinned" video of this channel for offers and extras
Category
🤖
TechTranscript
00:00all right we're back so uh my goodness this video is enormous we have just finished up setting up
00:10the uh the forwarding and the wireless access point and dns mask and all that stuff now we need
00:15to find out if the access point actually works so the pi is sitting on my desk it's got the dongle
00:20plugged in and um i want to log into a machine that can connect uh to the new access point so
00:27what i'm going to do i have a nested virtual machine here that i made just for this video
00:32i'm calling it inner ubuntu so you should release your inner ubuntu
00:39i guess hopefully this even boots i only used it one time um let me get rid of like the
00:55the toolbar is it going to work my cpu is now burning out of control
01:01okay this is going to be super slow i'm just telling you right now
01:06this computer is already pretty crappy and i have a hypervisor that i'm recording on
01:11and then inside that sorry i have a virtual machine that i'm recording on and then inside
01:17that virtual machine there's another virtual machine that we're launching it's like
01:19it's the virtual machine inception so let me see if i can log in here
01:25okay
01:28um seems to have booted let me look at the details real fast
01:34oh my god i don't even know where i am anymore there's like three toolbars that i'm looking at
01:39three start menus so network manager now i'm back from another cut
01:45for some reason i didn't type the ssid incorrectly well la de freaking da
01:50so i'm just gonna i guess i typed it in wrong copy pasting it seems to work this time
01:58anyway successfully activated so if we do um so remember this is this this inner vm it doesn't
02:08even have a network card it only has the wi-fi dongle i can do ping a.8.8.8 to see if we're
02:15online we are actually online the access point works it's routing
02:20um this should be able to ping my main router 1.1 yep and then 1.101 nice so basically at this point
02:32let me try like a domain name here google.com yeah okay google.com works let's try ipv4 works
02:40ipv6 unreachable well we're not on ipv6 i guess i forgot yeah we didn't add ipv6 yet so but ipv4 the
02:48regular you know the old school ipv works so at this point the clients connected to the pi access
02:57point can access the rest of the network and they can access the internet the next thing that we
03:02should probably think about doing is increasing the font size of the dang terminal but besides that
03:07i want to have uh the rest of the network be able to access clients behind the access point because
03:13you know for me i want to be able to set up servers that are a little bit further away and you
03:18know boost their signal with an access point what's going on here i hate this terminal you
03:23know what i don't care i'm going to do it i'm going to install terminator
03:26because i know how to set up the font size on that one anyway so the next thing pseudo apt
03:33update update is what we have to do first the next thing i'm going to do is set up a route
03:39so that we can connect from land clients to clients behind the access point so
03:44if you look here uh at the recording that we're doing we uh at the main bm uh that we're that
03:51we're that we're in this entire time uh we can't actually ping uh stuff that's on the dot 5.1 subnet
04:00in fact we don't actually even know what the address is so if you if you notice i can ping 192.168.1.123
04:07and that works because the pi.123 is on the same subnet as the rest of the network i can also ping
04:14192.168.1.147 because that is also part of the same subnet as the rest of the network
04:20um i can't ping 192.168.5.1 because
04:25i guess i can but for sure we're not going to be able to ping the client that's inside of the inner vm
04:35um let's see update and then install terminator
04:40so i can just get out of this freaking term and and so you can because i know this is kind of hard
04:46to read right i don't like that i'm showing you like a super small front screen um
04:53if you can't read um maybe i should just tell you what we did real fast i mean you saw the commands
05:04to connect before on the outer vm but i'll just remind you sudo network manager cli
05:10um we wouldn't do connection add we would actually say device wi-fi connect and then we would name the
05:18ssid you know the ssid's name and then we would say the password and we would do like you know some
05:24kind of password here um and then we don't have to specify the interface name on the nested vm because
05:30there was only one network device at all but that's the basic idea so now i can get out of
05:38this awful terminal emulator and just go into terminator pin to the dash unpin to the dash
05:47and then i can send the bigger font size preferences profiles
05:53i'll just make like a really big font size for the rest of this video
06:00oh
06:04where's it going to mono
06:08reminder later open to sans mono
06:13regular
06:15that's an okay terminal font not the best but okay so now you can see it's like a little bit better
06:21so what are we doing uh we just proved that this inner vm can see the internet and it can see the
06:30lan but this uh machine can't really see uh items on the inside let me show you what i what i'm
06:35worried about right now if we say uh ip address and show uh one of our wireless lands oh it's got
06:45this huge name it's not wlan zero like on raspberry so this is the wireless adapter that we plugged into
06:51the inner vm it's got this ip address that has been given to it automatically from dns mask again that's
06:58why you need a dns server uh so that uh or sorry a dhcp server so it's a something dot 74 that means
07:05now we know what address it is using so we'll know what address should probably fail let me just
07:11double check this real fast 5.74 not 1.74 yeah so it's on the other subnet so we'll ping 5.74
07:19why is it working i i pushed a bunch of routes the other day
07:28okay i guess they're just still in there okay this was the whole surprise let me just get rid of this
07:37sorry uh sudo ip
07:40route delete and then just delete that whole entire thing
07:45i put a route into my actual router i thought it wasn't working though maybe it's actually working
07:53now
07:54anyway we'll talk about that so now if we just kind of look at ip routes
08:00now these are like normal routes this 123 that's like for the vm stuff so it's fine
08:05anyway if you go back to the ping area if i enter a bunch of times
08:10to diagnose the network notice how the pings are still showing up for the normal subnet one dot
08:16something but they're now no longer showing up for five dot something so that's what was going on
08:20before i already had the good routes in there so now the question is i mean if you don't want to be
08:26able to have your normal land machines reach clients behind the access point then you can just
08:30be done with this whole video but if you want to be able to reach them maybe they're going to be
08:35servers maybe you just want to like ssh into them or like access something you know access them in
08:41some way then you need to be able to reach your uh your machines right so how can we do that
08:47well uh the first thing that you can do is uh add a static route so you know what is a route this is
08:54not a video about routes it's basically just a way to say how do you get to that subnet you get there
08:59by making your next hop to this particular ip address so if i go sudo uh ip route add this is
09:07linux um you can do the same thing uh basically in uh like your router and um windows and stuff like
09:13that leave a comment if you would like me to make a video for you know any other topic explaining
09:19further if i get enough votes i'll probably just do it um so we're saying we're going to add a route
09:23that will go to this new subnet and the way that we get to this new subnet is via this ip address
09:30which is on the current subnet notice how this is dot 1.47 147 was the uh the wireless adapter of the
09:38pi uh the primary wireless adapter the the internal radio so it's basically saying if you want to get
09:44to subnet 5.something then you got to first bounce onto the wireless radio of the pi and we know how to
09:50get to that because that's on our normal subnet you don't have to do a proto static metric and all
09:56that stuff that'll be filled in later but uh you can specify a device to hop onto so for this
10:04particular machine it's just basically got ethernet so we can specify you need to hop out on the ethernet
10:11adapter versus like some other adapters that you might have but for me i don't usually even specify
10:15this i just say to get to that other subnet we'll just hop on to the pi so now that i added that
10:21notice how right away the other pings start coming back so that's all we really need to do is just add
10:27that route how do you make that permanent though because this is not going to last after we reboot
10:32these uh this virtual machine so let me delete the route real fast whoa what happened no such process
10:39i've done something wrong hey gang let me just double check here
10:46maybe i can like oh because that extra stuff at the end is not in the route that i just added
10:53so i'm deleting the route notice how these pings suddenly stop how can i make this persistent
10:58well you can go into the settings of your uh connection and just specify some routes in there
11:05so notice how um i'm in a program called i'm in a desktop manager environment called xfce
11:13i'm basically going into the network settings and i'm saying edit connections
11:16if you're on a different version of linux or a different network manager or like windows or
11:21whatever you can just go into the network settings the wireless settings the ethernet settings
11:25and edit the settings and if you poke around long enough and look at all the different tabs and
11:31things that are offered you'll eventually find a place that lets you specify routes notice how on
11:36the ipv4 tab i left it on automatic but it's got a button called routes so if i click on the routes
11:44button oh that's why it was in there i left it in the actual dialogue so um yeah this is all you need
11:51to do you click the add button and it says what address do you want to uh be able to get to
11:56and uh you just type an address yeah i could have typed dot five dot zero but i chose to type dot five
12:01dot one just to remind myself uh and then the net mask uh usually we've been seeing a slash 24 block
12:08but that's the same thing as this 255.255.255.0 it's kind of the same uh meaning they're just in
12:16different formats i think the format on top is called cidr and i can't even remember what the one
12:22on the bottom is called i think it's like just a regular subnet mask or something um so you say
12:29in order to get to that machine the gateway um with this uh mask meaning let's just get to any
12:36any machine on that particular subnet then this is your next top the gateway is the pi's wi-fi adapter
12:43that we assigned earlier so when i hit okay um i should be able to just like disconnect and reconnect
12:50and it should just work so again it's already working right now but
12:55the reason it's always working is because i had that in there so let me just disconnect one more
13:00time notice how all the pi's sorry all the pings stop what's going on here terminal is frozen all right
13:11that's weird why isn't it letting me get enter i don't like it so then if we just go back to the
13:18wired connection suddenly everything works all over again that terminal is just frozen dude
13:24okay let me just check my notes real fast is there anything else that i needed to talk to you about
13:31yeah um well i guess one thing i should mention this is not a video about
13:37administering your actual router like your your primary router it's kind of a pain in the butt to
13:45add a static route to every machine that you want to be able to access a client uh you know on your
13:50access point on your new pi repeater for me that's only like three or four machines so i just i just
13:55entered it it's fine but um if you want every single machine on your on your lan to always know how to get
14:03to clients behind the access point you have to have your router push a static route
14:08there's a way to do that actually with your dhcp server um some routers have like a nifty interface
14:16that is just called static routes and you can just start entering them in there uh some of the routers
14:21you know they want you to edit the dhcp server and type like a number and then like do all these weird
14:25conversions to get like a hexadecimal string i'm not going to go over that in this video just know
14:31that you can manually add static routes here or perhaps in the future add static routes at the router
14:36level which will help all clients but that's how you uh connect that's how you do it just to prove
14:44the point here um what was the ip address of the client right so like this yeah that inner vm i think
14:55it's on 5.74 at the very end so i'm on regular lan right now even though this is a vm it's actually
15:02hooked up to my regular lan at least like for the moment i should be able to access it
15:06via ssh it'll say connection refused if i wasn't able to access that subnet um it would just
15:15time out or say unreachable or something but it should say connection refused if the ssh server is
15:22off otherwise it might actually try to connect let's see what happens connection refused that means
15:28i did make it to the inner vm um but the ssh server is not on so let me just prove this to you a little
15:35bit more sudo apt install open ssh server okay so when this finishes we should be able to connect
15:51over ssh and we have basically finished our wireless repeater only got like three minutes left until the
15:56camera cuts me off again hope you uh learn some stuff let me just try to connect real fast yep see
16:05how it's asking me now do you recognize this machine so it actually worked so after all of these hours of
16:11watching me just ramble on nonsensically i hope you've learned a little bit of stuff and i've hope
16:17i hope you have had a lot of fun and i hope you now enjoy your new uh raspberry pi wi-fi repeater
16:24um i know i'm enjoying mine already i'll see you in the next video don't forget to tell your friends
16:29and subscribe and do all that fun stuff um have a great day you deserve a long hard rest for rest for
16:36watching all this video footage okay i know for me i'm so tired and sweaty right now people at the gym
16:43when i go later are probably going to be like what's going on with this dude unless i take a
16:46shower before the gym which doesn't even make sense but i might do it so anyway i'll see you in the next
16:53video thank you so much for watching
16:55hey everybody thanks for watching this video again from the bottom of my heart i really appreciate it
17:04i do hope you did learn something and have some fun uh if you could do me a please a small little
17:09favor could you please subscribe and follow this channel or these videos or whatever it is you do
17:15on the current social media website that you're looking at right now um it would really mean the
17:19world to me and it'll help make more videos and grow this community so we'll be able to do more videos
17:24longer videos better videos or just i'll be able to keep making videos in general so please do do me a
17:31kindness and uh and subscribe you know sometimes i'm sleeping in the middle of the night and i just wake up
17:36because i know somebody subscribed or followed it just wakes me up and i get filled with joy
17:40that's exactly what happens every single time so you could do it as a nice favor to me or you could
17:45you could troll me if you want to just wake me up in the middle of the night just subscribe
17:48and then i'll i'll just wake up i promise that's what will happen
17:51also uh if you look at the middle of the screen right now you should see a qr code which you can scan
17:57in order to go to the website which i think is also named somewhere at the bottom of this video
18:01and it'll take you to my main website where you can just kind of like see
18:05all the videos i published and the services and tutorials and things that i offer and all that good
18:10stuff and uh if you have a suggestion for uh uh clarifications or errata or just future videos
18:19that you want to see please leave a comment or if you just want to say hey what's up what's going on
18:24you know just send me a comment whatever i also wake up for those in the middle of the night i get
18:28i wake up in a cold sweat and i'm like it would really it really mean the world to me i would
18:33really appreciate it so again thank you so much for watching this video and um enjoy the cool music
18:40as as i fade into the darkness which is coming for us all
18:58the cool music
19:00is
19:01the cool music
19:03is
19:05is
19:09is
19:11is
19:13is
19:15is
19:17is
19:19is