How to build a Router with a Raspberry Pi and managed Switch VLANs with OpenWrt

  Рет қаралды 65,828

OneMarcFifty

OneMarcFifty

Күн бұрын

We will use a Raspberry Pi and a managed Switch in order to extend the Pi's Ethernet Port to a LAN and WAN Port using VLANs with OpenWrt. This will effectively turn the Pi into a Router with a WAN port and multiple LAN ports. I will be using a Netgear GS308E Switch (ASIN: B07PDHVZNS), but you could use the following switches as well:
Zyxel GS1200 (recommended): ASIN B0798PKGFQ (8 Port) or B08K2KKK86 (5 Port)
Netgear GS305E: ASIN B07PHNTV45
TP-Link TL-SG108E: ASIN B00JKB63D8, 5 Ports (TL-SG105E): ASIN B00A128S24
0:00 How to add Ethernet to the Pi
1:20 Installing OpenWrt
3:31 Log into OpenWrt/LuCI
4:04 Choosing the Switch
5:05 Configuring the Switch
8:46 Configuring the Pi
10:27 Connection Test
11:02 Configuration Recap
12:07 About Security
13:40 About Performance
15:01 Adding a USB Ethernet Adapter
16:21 Some Finetuning
19:31 About Wi-Fi on the Pi
20:22 Final remarks
KZfaq: / onemarcfifty
Twitter: / onemarcfifty
Discord: / discord
Github: github.com/onemarcfifty
Patreon: / onemarcfifty
Blog: www.onemarcfifty.com

Пікірлер: 176
@Roger_Hardwick
@Roger_Hardwick 2 ай бұрын
Missing your tutorials and explanations - by far the best on KZfaq. I really hope you start making them again!
@ksenyxths
@ksenyxths 2 ай бұрын
I hope this message finds you well! I stumbled upon your channel recently and I have to say, your videos are truly informative and insightful. Your dedication to sharing knowledge and creating such valuable content is evident in every video. I noticed it's been a while since your last upload, and I just wanted to drop by and express how much I've enjoyed your content. Your videos have made a real difference for me, and I'm sure for many others as well. Life can get busy, and I completely understand if you've had other priorities recently. But I just wanted to send some positive energy your way and let you know that your work is appreciated and missed. Your unique perspective and expertise have been incredibly helpful, and I genuinely hope to see more of your wonderful videos in the future. Take care, and looking forward to whatever you have in store next!
@FedorTroitsky
@FedorTroitsky 2 ай бұрын
Hi, just here to express my gratitude for your work and tell that it's the most useful channel on KZfaq for home network setup ever. All your videos are pure gold. The way you explain the material is just perfect. Please do continue, we need more of this. Hope you are well! Take care.
@SensSword
@SensSword Жыл бұрын
With cost of Raspberry Pis now, it might just be cheaper to buy Cisco hardware and pay for professional installation and maintenance 😂
@OneMarcFifty
@OneMarcFifty Жыл бұрын
We‘re not there yet, are we ? 😂
@SensSword
@SensSword Жыл бұрын
@@OneMarcFifty feels like it' Can't find an RPi for less than $200 these days. It should be 1/3 that cost.
@believerd
@believerd Жыл бұрын
Check the edited comment below my friend.
@stbhg680p9
@stbhg680p9 5 ай бұрын
Just use tv box amlogic board
@goppinaththurairajah760
@goppinaththurairajah760 Жыл бұрын
Thank you Marc for another useful and nice video regarding the OpenWrt with Rasberry Pi. I am using Pi4 based OpnWrt router for at least the last one and a half years and I am fully satisfied with the outcome. With my setup the Pi4 is not only acting as a router rather it acts as a security gateway too by including AdGuard Home, BanIP, and many more. Earlier I used the router on stick setup with a layer 2 switch as you are presenting in the video and later I am convinced with the idea of not exposing the switch to the WAN and now using a USB3 ethernet adaptor to give a clear separation to the WAN and LAN. I recommended this to one of my friends in England in 2021 and now most of my friends and families in Europe using this setup. This makes me learn a lot about the OpenWrt on Pi4 because I am getting some questions from them from time to time. By the way, I am using the Pi router behind the Fritz!Box at the moment with the combination of the U6 mesh access points. Some of my friends use the Pi4 as a gateway for the fibre modems for DG Germany, KPN Holland, and Deutsche Telekom. Pi itself is not a good access point as you mentioned but it can act as a router with true ethernet, enough power, and capacity in conjunction with other wifi mesh systems like Unifi, tp-Link Asus, or any other wifi systems. One of my colleagues is not convinced with the USB3 ethernet adaptor idea and he bought a Pi4 computer module and the DFRobort router board with two ethernets on-board. We ran several tests and we are getting the same throughput with the SQM and packet steering. But the only notable difference is that the Pi4 with USB3 ethernet is getting 5°C warmer and uses 7-10% more processing power than the DFRobort router board. I am looking forward to your PBX server setup with OpenWrt. Keep it up Marc, I learned a lot from your videos. Thank you again.
@michaeldina1103
@michaeldina1103 Жыл бұрын
I thoroughly enjoyed your video! For me as an untrained enthusiast you are advanced enough for me to learn something new about networking but not so advanced that I get lost.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Michael, great feedback - thank you. Glad you liked it !
@pichonPoP
@pichonPoP Жыл бұрын
Marc, I have one of those, and in December 2021, I struggled a lot trying to set it up to use with pfSense. I almost gave up and bought its bigger brother, which has support from OpenWrt. I'm glad to see here that switch and another video about OpenWrt.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, Thank you so much ;-) There will be some OpenWrt videos in the near future.
@qcsupport2594
@qcsupport2594 Жыл бұрын
Good tip on the zyxel managed switch - saving that to my amazon list
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Awesome - let me know if you like it.
@grahammccann8554
@grahammccann8554 4 ай бұрын
Thank Marc for making this video. Very easy to follow.
@foobarturkey
@foobarturkey 14 күн бұрын
Hope all is well with you Marc. You've taught me a lot.
@goldshado
@goldshado Жыл бұрын
Very nice tutorial Marc looking forward for the next one thanks again.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Paulo, many thanks - glad you liked it ;-)
@michaelcooper5490
@michaelcooper5490 11 ай бұрын
Another great video Marc, Thank you awesome job for real, I needed this one.
@markandrow4010
@markandrow4010 9 ай бұрын
Thank you, great animated tutorials .
@IsmaelLa
@IsmaelLa 5 ай бұрын
Hi @onemarcfifty hope you're doing ok. Haven't seen you for a while. Take care. ;) Hi from Puerto Rico!
@k0nstant1n0s
@k0nstant1n0s 9 ай бұрын
Thank you for your great tutorials!
@struggle375
@struggle375 Жыл бұрын
this is exactly what I was looking for, thanks!
@paulmacgiollacaoine8619
@paulmacgiollacaoine8619 Жыл бұрын
Very cool ❤ Could you do a playlist for all your proxmox videos? Would help a lot. Keep up the great work by the way 👍
@herik63
@herik63 2 ай бұрын
wow, pure gold this video, thank you so much!
@alexs5588
@alexs5588 10 ай бұрын
Where have you been Marc???
@stephendetomasi1701
@stephendetomasi1701 4 ай бұрын
According to his Discord he got pretty bad COVID about mid-last year, and he had to take a break. I'm guessing it must have taken a toll :( such fantastic tutorials, shame there hasn't been any new ones for a while!
@julian.morgan
@julian.morgan Жыл бұрын
Just found your channel - really appreciate the clarity of how you present information. Please consider doing a video on installing OpenWRT on to older x86 hardware. For example, I'm sure lots of people like myself have an old PC which - with the addition of a cheap four port gigabit NIC in the PCIe slot - becomes a very capable router while keeping old hardware out of landfill. The one I have is now about 10 years old (Haswell era ITX H87N-wifi which has one Intel and one Atheros gigabit port) and I plan on playing around with OpenWRT, OPNsense and pfSense over the next few weeks. I like the idea of OpenWRT because. . . Linux :) The router I actually use, an Asus RT-AC86U has asuswrt-merlin installed and it's very solid, but I can't play around with settings without risking seriously annoying my family when they lose internet access !
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Julian, I'll have a thought on this. Many thanks for the suggestion
@tareeck4822
@tareeck4822 Жыл бұрын
I used Rpie 4b as router more than 3 years. Here is my experience: first of all forgot about wifi it is unusable at all, only if your house has not walls at all. Second point you will anyway will need second USB type 3 to Ethernet adapter. The third thing you will need nice gigabit manage switch. If you have all of this Rpie may the best router you can by for its price! I have 2 Gbit links for wan and 7 vlans for lab and it perform all of this very well! So my suggestion is to use it if you really want to have nice performance but have no a lot of budget. Also do not forget to enable HW flow offloading in Network->Firewall settings tab admin also you will need to enable Packet steering in the Network->Interfaces->Global network options. It will increase network performance dramatically!
@tatomans1982
@tatomans1982 Жыл бұрын
great video, as always
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Thank you very much
@sundinmikael
@sundinmikael 8 ай бұрын
Great Channel. One thing to watch out for managment switches and security is that the management interface could be exposed on port that are not specificed in the managment gui/cli. TP.-Link had some security issues for example. Access to managment interface via WAN port for example could be very bad.
@shubertbaloran1819
@shubertbaloran1819 Жыл бұрын
I've been trying to get a setup like this to work at my home lab and I still couldn't figure it out 😭 Thanks Marc for this updated guide! I have the exact equipment on this tutorial so I'll try this out over the next few days
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Shubert, many thanks - let us know how it goes ;-)
@shubertbaloran1819
@shubertbaloran1819 Жыл бұрын
@@OneMarcFifty Hi Marc! I got it working, VLANs and all. I don't know if you already posted something like it, but do you think you can post about docker on openwrt? That bums me because I couldn't get it to work, and I wanted to host a VPN server on the router as well.
@Bianchi77
@Bianchi77 Жыл бұрын
Nice info, thank you for sharing :)
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, many thanks for the feedback - glad you liked it ;-)
@ukaszs5021
@ukaszs5021 Жыл бұрын
Great video 👍 Thank You
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Łukasz, many thanks !
@BobCollins42
@BobCollins42 8 ай бұрын
Hello Marc, I hope you are well. It is December 2023, and I can find no evidence of your presence here or on any of your other public media sites since May 2023. In this video you announced that you were planning on follow up videos. I am one of many who have learned much from your work and I hope you will return. Bob
@rkoe77
@rkoe77 5 ай бұрын
Ich schau ständig hier vorbei...Auch ich vermisse Mark...Ich hoffe es geht ihm gut...
@johnscamera
@johnscamera Жыл бұрын
Perfect timing. I was just pondering my next step in my migration to vlans on my network. I had a spare RPi but no managed switch. I was about to click BUY on a managed switch when I realised I could probably reuse my old WNDR3700 openWRT router. I assume I could just use the GB switch ports for this - without the wifi.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, yes - actually you can. Just switch off Wifi and the like and you can use an old Router with OpenWrt as a switch.
@dan-nutu
@dan-nutu Жыл бұрын
As someone who already clicked buy... twice! (first on a TP-Link SG108E, then on a Netgear GS308T) I wonder: allegedly OpenWrt runs on the Netgear GS308 (not sure yet if the E or T or another model), wouldn't it allow you to restrict access to the management interface on the VLAN(s) you want? With the "local" tick box thing in Luci.
@lrlemos0
@lrlemos0 Жыл бұрын
Thanks again Marc
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Leonardo, you are welcome - and thanks for watching!
@AVKizub
@AVKizub Жыл бұрын
Excellent, thanks a lot!
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, many thanks.
@user-rz3zh2iu4r
@user-rz3zh2iu4r 6 ай бұрын
Thanks Marc, very nice. Regarding disabling WAN access to the web i/f for the switch you can disable DHCP mode (on a Netgear managed switch) and set a static IP address which is on the LAN i/f. Haven't tried it yet but I think that should secure the device, what do you think?
@wilk36
@wilk36 11 ай бұрын
hi @OneMarcFifty, great video. For this particular setup, possible to have the rpi4 running in pi os, running docker container openwrt and pihole image, and set it up to a switch like in this video with the help of docker bridge network ? not sure if it make sense..
@aseantravels8772
@aseantravels8772 Жыл бұрын
excellent tutorial on openwrt. there are a lot of cheap home routers with multiple ports that are compatible with openwrt firmware. much easier to come by than raspberry pi at the moment.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Totally agree. I do however want to show a use case in a future video where it could make sense to use the Pi (if you have no other use for it) by using it as a phone tethering gateway for WAN failover on a dedicated VLAN
@GeorgeValkov
@GeorgeValkov Жыл бұрын
@@OneMarcFifty It's actually a great way for learning VLANs given limited available resources. As for the phone tethering, I've been using it for years. A dedicated router is a better choice performance wise. Where the PI shines is when you power it on battery. Mark, did you know that ipheth (the iPhone driver) has an issue? If you connect the iPhone to a Mac it changes modes. Then connect to OpenWRT and it won't work until you reboot the phone. I have a patch that adds CDC NCM support and resolves that.
@dan-nutu
@dan-nutu Жыл бұрын
@@OneMarcFifty I'd be very interested to see the tethered phone as a WAN failover video if it involves only vanilla OpenWrt and not ROOter!
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi George, thanks for pointing this out.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Dan, no Rooter or 4G modem or the like will be needed for this as we would use the Phone pretty much like over Ethernet as the modem ;-)
@brendendiczhazy6668
@brendendiczhazy6668 Жыл бұрын
Hi marc your channl is awsome you always have the best content just when it seems like you might be running out of topics you manage to come up with another grate viedo. Could you make a viedo on installing openwrt on an android os if thats possible. I have an older android tv box i would like to install openwrt on. It stopped updating at android 4.4 and has 2g and 5g wifi so i figured that it might be a good thing to repurpose as a openwrt router. Thanks keep up the grate content.
@dutchdisney
@dutchdisney Жыл бұрын
This tutorial, with wireguard on the wan would be great
@StaRipper
@StaRipper 7 ай бұрын
Hello Marc, Can you please do a video on how to do VLANs from OpenWRT to ProxMox VMs & LXCs with Zyxel GS1200.
@dannymurray4571
@dannymurray4571 Жыл бұрын
The 5 port managed switch / rpi4 combo lasted a month before seizing up. I may return to this setup later. It is replaced by a FriendlyElec R5S for now, because it also handles sqm at 500Mbps with 20msec latency at 420Mbps. The cheap entry level managed switch I used here might be why it only lasted a month. The R5S also crashed after a few months, though.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Tony, is the R6S supported by OpenWrt ? I know the R4S is.
@timrobertson8242
@timrobertson8242 Жыл бұрын
One caution using an inexpensive managed switch (including the Netgear) is their firmware does not allow you to limit the Admin web control to a specific vLan, so I have found it leaking over my WAN vLan. I did find modern D-Link managed switches had this option.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Tim, please see Time Marker 12:07 in the video where I do actually point this out ;-) Glas to hear that the D-Link switches do have that option - so has the Zyxel GS1200 ;-)
@ioannis69k
@ioannis69k Жыл бұрын
Great idea and very thoroughly presented, thanks. What about the Rpi3b+ ? That one can have the eth interface up to 200Mbps no ?
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Ioannis, yes - that should be feasible.
@IMBlakeley
@IMBlakeley Жыл бұрын
I use a Pi4b as a router and have done for a couple of years nearly. I don't use the VLAN option, no need really albeit my 8x switch is a managed TPLink device the WAN is a USB3 Ethernet adaptor. If ound partition resizing to be simpler done off line, just use gparted on my PC.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, many thanks for sharing.
@jokerdecimal
@jokerdecimal 6 ай бұрын
Thank you very much for your really impressive work, I have a piece of advice to ask you, I own a xiaomi 4A router version 100mbits which already runs on openwrt however it is quite limited on the ram and cpu side, I own a raspberry pi 3B+ that I bought second-hand for less than 10 euros, the question: I can gain in wifi power quality by combining the two openwrt on pi 3 and use the router which itself runs on openwrt as a wifi repeater vu que j ai les composants ? Y a t il des risques de pertes de performances ?
@shshshshhshshshsshhshshs6733
@shshshshhshshshsshhshshs6733 4 ай бұрын
thank you!!!
@JuanCarlosHerediaMayer
@JuanCarlosHerediaMayer 10 ай бұрын
So cool!!!
@antoniolcrd
@antoniolcrd Ай бұрын
Hello sir! Wht abt a NFtables guideline vid?? Thank u for sharing such good content. 🎉
@jensschroder8214
@jensschroder8214 Жыл бұрын
There are mini x86 systems with 4 to 5 LAN ports from China. They are much better suited as routers than a Raspberry PI with only one 1GB port. The LAN ports support 2.5 GB each and the x86 CPU is faster.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Jens, you are absolutely right. Like I say in the video at 0:40 and 19:40 and 20:25 , the Pi has many limitations and I am not advocating this as a viable good solution.
@Christian_Ky
@Christian_Ky 5 ай бұрын
Hi Marc! I appreciate your videos - they've been really helpful! I'm facing an issue reaching my PI and its associated services via IPv4 due to my DSLite connection. At home, my setup is TAE > Fritzbox (used solely as a modem) > OpenWRT > Pi (hosting services like NextCloud/Vaultwarden, etc.). The challenge arises when my mobile phone only has an IPv4 connection without IPv6. This prevents me from accessing my home network. I'm wondering if it's possible to use a VPS (I have one running Linux, specifically Ubuntu) to facilitate access to my home network through the OpenWRT router.
@jurgendewijs3635
@jurgendewijs3635 11 ай бұрын
Hi Marc for this great video. You are my go-to source for anything OpenWRT. On your comment on security I was thinking. Why not have the LAN traffic as untagged to the Raspberrypi and have only the WAN traffic tagged? In that way, the switch DHCP and management interface would be on an untagged port and thus not exposed to the internet. I am trying to get a similar setup with a FriendlyARM NanoPi R2S. I plan to use vlans for my guest and IOT networks but leave my lan untagged. As I understood the documentation from Openwrt you can actually do that. update: just configured my switch and R2S as i described and this works!!! Would appreciate your thoughts on this approach....
@mobiletechbangla
@mobiletechbangla 9 ай бұрын
Sir, i have a question.Please Answer. i am using openwrt 22.03.5 on tp link archer c60. it has only 8mb flash memory. after Installing openwrt only 840kb space left. now i have noticed, if i reboot the router from luci storage space reduces. if this continues i may run out of space near future. is it normal?
@welliopedrodelima4782
@welliopedrodelima4782 Жыл бұрын
Hello everything is fine? very good your video. I already did this procedure on a Rassary-pi 4 8gb of ram. it turned out really good. I also did this procedure on a babana-pi mt7622 router. it was fine, but with openwrt I couldn't make the integrated wi-fi or the video HDMI interface work.
@vs4073
@vs4073 Жыл бұрын
In luci network-->interfaces-->devices-->configure inside the "Bridge VLAN filtering" tab the tags now say just "Untagged" and "Tagged" (instead Egress...) And is not a t or u, is a T and U. Is that a general change? Does it do the same?
@budbuddy1515
@budbuddy1515 3 ай бұрын
Absoluter Ehrenmarc
@zaidanraufabidin7652
@zaidanraufabidin7652 7 ай бұрын
Make video about how to do vlan from OpenWRT with managed switch please, I've been struggling to configure it 😥
@MelroyvandenBerg
@MelroyvandenBerg Жыл бұрын
Zyxel is awesome
@soorenapars
@soorenapars 10 ай бұрын
hi and thank you, can you help us about increasing the disk size of openwrt which has installed on a vmware workstaion
@LampJustin
@LampJustin Жыл бұрын
That's odd, normally you can just run resize2fs without doing any loopback stuff. You don't even have to reboot. But I guess maybe they didn't compile support for that to save space
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Oh - I will have to test that. I had tested it once a long time ago and got an error, then made a mental note to myself that I had to use loopback. But maybe that has changed or my test at the time was wrong. I‘ll give it another try- thanks for the feedback
@chmoduk
@chmoduk Жыл бұрын
Most cheap home wifi routers only have one ethernet interface anyway, so this method is replicating that. A Lot of tp link wifi routers will have the wan port as eth0.2 and of course the native vlan as 0.1. Like Marc said, you need the switch gui/console on it's own network / vlan.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Absolutely right - many routers do the same thing internally ;-)
@stbhg680p9
@stbhg680p9 5 ай бұрын
There is tv box board, amlogic chip or the other Can subtitues rasp pi
@believerd
@believerd Жыл бұрын
Question✋. What’s the difference between a traditional 802.1q set up and the new DSA setup?
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, in the "traditional" mode, i.e. VLAN on the interface, you would tag/untag packets on the interface and then potentially bridge the interfaces. But you can still do that with DSA. The real change is not so much DSA but rather Bridge VLAN filtering, where you bridge all interfaces and then tag the packets on the bridge.
@guocity
@guocity 11 ай бұрын
What is the best firewall and flow monitoring software?
@sobaannaseer7155
@sobaannaseer7155 Жыл бұрын
i have an old acer aod257 lying around, it pc is rated as 6 watts, i think it would be perfect for this sort of thing.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, let us know how it worked out ;-)
@sobaannaseer7155
@sobaannaseer7155 Жыл бұрын
@@OneMarcFifty it was going great, but i use jellyfin as a media server. and everyone in my house uses it. i couldnt able to access it with local ip. but i was being able to access it with public ip while being inside the lan. there was something going in l2 switching. i really dont have time right to learn about it right now, so i discarded the whole system, because not being able to access media server is a deal breaker for me.
@kekkek358
@kekkek358 Жыл бұрын
Is there a good reason, beside the ability to reset, to choose squash vs ext4 on the rpi?
@OneMarcFifty
@OneMarcFifty Жыл бұрын
The advantages of Squashfs include compression, read-only access, and data integrity, while the advantages of ext4 include read-write access, performance, and compatibility.
@SB-qm5wg
@SB-qm5wg Жыл бұрын
I've seen some 4port USB switch peripherals. I wonder if that would work here.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Sounds interesting. Is that USB ethernet with integrated switch ?
@andrewhigginbotham6860
@andrewhigginbotham6860 Жыл бұрын
Nice tutorial. I set this up as a Proxmox container using the single NIC based on your video. It works great except it won't issue a DHCP address to my laptop. If I hard code the IP on the laptop it works perfectly to connect to the OpenWRt web server on the LAN interface. I just can't get DHCP to work on subinterface. Anyone else have this problem?
@andrewhigginbotham6860
@andrewhigginbotham6860 Жыл бұрын
I figured this out. You need to restart the DHCP/DNS service everytime you touch a sub interface.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Andrew, many thanks for sharing.
@dan-nutu
@dan-nutu Жыл бұрын
Just 2 quick questions, please: 1. At 9:42 - why create the VLAN(s) on br-lan when eth0 is also available? I feel I'm missing something here, I just can't figure out what 2. Where do you find Netgear GS308E at US$27 and Belkin RT 3200 at US$80?
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Dan, there are multiple ways to do VLANs under Linux (and hence OpenWrt.) Either with Bridge VLAN filtering (like I show) or on the NEtwork adapter directly (like you suggest) and potentially add the already tagged interface to a bridge. Which mechanism you chose depends basically on the use case or on your personal preference. W/r to your second question - in the video I just browsed to Amazon. But prices and availability most probably depend on your country of residence.
@dan-nutu
@dan-nutu Жыл бұрын
@@OneMarcFifty Thanks for your answer Marc! I found your channel when looking for info on how to configure VLANs on OpenWrt and I have to say the first video was very clear... that was until I watched the second one! (i.e. the one for OpenWrt 21, with DSA) The second one confused me so much that I had to rewatch it a few times, just to make sure I get it right, in contrast with the first one. And to be honest, I still don't really understand why in previous OpenWrt versions VLANs were set up using the "real" Ethernet device/adapter, while in version 21 and later it's done using VLAN filtering on bridges. I accept that this is how it's done :), however I would really love to also understand why, i.e. what actually drove this change and what advantages and disadvantages it brought. I wonder if VLAN filtering would be more "efficient" somehow? In the sense of more tightly controlling (at the bridge level) where each tagged packet is sent? I'm purely guessing here. Also, I really wonder if there could be any kind of "cross talk" between the different VLANs before OpenWrt completes the boot process - e.g. if the built-in switch has 4 ports and each of them would be configured as untagged, with a different PVID - would the 4 devices (e.g. computers) attached to those ports be able to "see" each other, even for a (very) brief period while OpenWrt is booting? (assuming that the network addresses and netmasks would allow it). I said I should/would test this, I just didn't find the time to set it up yet. If packets can "leak" between VLANs before the router completes the boot process it would be quite bad. I hoped to get to ask you about the above points (and a few other OpenWrt things) on one of your Discord sessions but I've always missed those Sunday slots :( To complicate things a bit more, after I watched your videos a few times I bought a new router and I installed OpenWrt 22.03.5 on it, fully expecting it to use DSA and VLAN filtering, only to find out that it still uses the old switch configuration method and VLAN setup (!) So all that effort of trying to understand the differences was not actually needed for my router of choice :) On the switch configuration page I can see both CPU0 and CPU1 and I'm not sure how to setup tagging to get it right - should I work with the assumption that CPU0 corresponds to eth0 and CPU1 to eth1, or is it something completely different? Thanks against for the videos and your answer! (BTW, my second initial question was just a silly joke - I buy from UK and I've never seen those low prices! Only last month I paid the equivalent of some €50 for the Netgear GS308T)
@javida8085
@javida8085 6 ай бұрын
Hello, I appreciate your kind words. I really need your help due to the place I live in. I have a Mini PC N5095 with OpenWrt installed on it. It has three WAN ports, each connected to a separate internet link, and one LAN port and one Wi-Fi. My request to you is to create a tutorial video for the scenario I'm about to describe, so that both I and others facing the same issue can benefit from it. I would like to set up OpenVPN on each of the WAN ports and configure load balancing and failover between these three OpenVPN connections, so that I can utilize the combined bandwidth of these three connections on the LAN and Wi-Fi. Additionally, I want the scenario to include a kill switch, DNS leak protection, and an ad blocker. Thank you in advance for your assistance.
@user-yu5mg6po3b
@user-yu5mg6po3b Жыл бұрын
Question✋Can you do a video on installing Openwrt on Asus BRT-AC828 (IPQ 8065 platform) ?
@OneMarcFifty
@OneMarcFifty Жыл бұрын
I can't find that device in the table of supported hardware. Is it supported at all ?
@Lowendhost
@Lowendhost 3 күн бұрын
Is this the same way, connecting a Pi to a managed switch, which should be used for OpenMTPCRouter? On their homepage there is no detailed information about how the wiring is..
@guocity
@guocity 11 ай бұрын
Can you teach how to install openwrt in UEFI virtual machine in m1 Mac without compile entire openwrt?
@GeorgeValkov
@GeorgeValkov Жыл бұрын
It would be interesting to see what speeds you can achieve with phone tethering, given the phone and router are powerful enough and the signal is good. My record was 66 GB in one hour using iPhone 7 Plus and LTE, WRT3200ACM. 700 GB in one month. Are the mobile plans in Germany suitable for my use case? 📲
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Haha - you know the answer to that, don't you ;-) I think that would cost a fortune ;-)
@GeorgeValkov
@GeorgeValkov Жыл бұрын
@@OneMarcFifty I'm afraid I do, I was hoping I wrong. I first saw unlimited data in Switzerland. Then it came to Bulgaria. 25€/month is a good deal.
@RifatErdemSahin
@RifatErdemSahin Жыл бұрын
so the main goal is to use one port for 2 purposes?
@RandomNullpointer
@RandomNullpointer 5 ай бұрын
Hi Marc, Is there no way this can be done without the switch? If the Pi gets an additional NIC via USB, then.... oh, we still need the Switch to distribute to the LAN....
@remyzandwijk
@remyzandwijk Жыл бұрын
It would be nice if the managed switch would/could also run OpenWRT (one type of software to learn configuring, frequent updates, etc.). @OneMarcFifty, do you have experience running switches with OpenWRT and can you recommend brands/types of switches which are available in Europe?
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Remy, basically you could use any old OpenWrt capable Router that has multiple Ethernet ports. If you browse through my older videos, I did this with an old Router already. I have been using an old Archer C7 for this for a long time.
@remyzandwijk
@remyzandwijk Жыл бұрын
@@OneMarcFifty understood. I am looking for a more ‘pro-ish’ kind of switch setup. 8+ ports, PoE, multiple ports running at line speed, that sort of stuff. Proper switch hardware that is able to run open source software. I know the OpenWRT hcl contains some switches, but they are either hard to get, running OpenWRT snapshot (which I consider unstable) or they have some quirks.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Ok, I see. I have never tried. Also-checking the OpenWrt forums, it looks like there is some support for the RTL838x chipset (like the zyxel gs1900) forum.openwrt.org/t/support-for-rtl838x-based-managed-switches/57875 but the chipset does not seem to be well documented. Also, the flashing process is not really well documented. You would need to find a switch with a very well supported hardware platform, but I am not aware of any…
@ZhafirHisham
@ZhafirHisham Жыл бұрын
is it possible to use openwrt router as the managed switch for this purpose?
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Zhafir - absolutely! You could use an old Wifi router, install OpenWrt on it, disable the Wifi and use it as a managed switch.
@chrisbourne3543
@chrisbourne3543 2 ай бұрын
I use Google a lot on my cell phone. Should I have a antivirus software?
@francocastilloAR
@francocastilloAR Жыл бұрын
Yo usaría esa RPi con OpenWrt para usar AdBlock o AdGuardHome. Tal vez, usar samba y otros servicios útiles.
@diacritic8508
@diacritic8508 Жыл бұрын
I feel VLAN configuration in OpenWRT version 21+ à la DSA (ie. without the Switch tab on LuCI) got a bit unintuitive. For example if you used OpenWRT on the managed switch too instead of this Netgear device and it's own software, you'd probably define a br-lan device with VLAN 99 and 1000 both tagged on port 6 similar how you did at 8:20. That would mean OpenWRT would implicitly create two VLAN (802.1q) devices for those 2 VLANs ie. br-lan.99 and br-lan.1000. Now when you'd create a lan interface in OpenWRT for those 2 VLANs, you would need to select one of the existing devices br-lan.99 or br-lan.1000. Whichever you choose there will be 2 tagged VLANs on this lan interface, but when you look at the lan interface config it will say it's based on either br-lan.99 or br-lan.1000.
@Masoch1st
@Masoch1st 7 ай бұрын
This did not work for me at all. As soon as I define the vlan in the switch, it breaks and I can no longer access the NUC to configure vlan in the nuc, or the internet for that matter. using an SG108E
@ChandrashekarCN
@ChandrashekarCN Жыл бұрын
💖💖💖💖
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Thank you!
@pappuplumber6313
@pappuplumber6313 6 ай бұрын
Hi is there any openwrt package for website session ? I want to use netflix session on my home network . Session copy
@penne_best_noodles
@penne_best_noodles Жыл бұрын
can you please tell me where I can find the belkin RT3200? I search for a year now but nothing to be found in Europe / DACH
@d00dEEE
@d00dEEE Жыл бұрын
They've gone end-of-life and I think all the remaining stock is being sold in the US. You may be able to find the black one - Linksys E8450 - in EU, but the Belkin only appears to be available here (US$49 at Walmart for the past month or two).
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Difficult to get at the moment. Maybe look for the Linksys e8450 (identical) or for the xiaomi ax3200 which is approximately the same hardware but difficult to flash openwrt.org/toh/xiaomi/ax3200
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Btw - I will do a big router test video very shortly, testing roughly 10 devices with OpenWrt;-)
@paulwoodward8265
@paulwoodward8265 Ай бұрын
I have tried several times, and I absolutely cannot get this to work. When I apply the changes in LUCI, I lose comms to the web interface and cannot get it back. Happens every time. There is nothing in the guide about where to plug stuff in or how the VLANs relate to subnets. Assuming we start with VLAN1 on all the managed switch ports, and the Pi listening on 192.168.1.1/24, does that mean that both VLAN1 and VLAN 99 are used with that same subnet? Am I expecting the Pi or managed switch to provide an IP address to the mgmt laptop via DHCP, or should I have a static IP allocated? Can you please clarify??
@memadmax69
@memadmax69 Жыл бұрын
As mentioned in the vid: There are so many better options than RP for doing a SBC router. RP is just... Not there for starters with the single ethernet port. And now its so expensive.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Yes, I agree. It used to be great when it was cheap ;-) I just assume that people still have them in drawers ;-)
@memadmax69
@memadmax69 Жыл бұрын
@@OneMarcFifty I've got one running a couple of game servers(Rust and Valheim), RP4 impresses in this department.
@mashiniwami
@mashiniwami Жыл бұрын
Nice, but I am looking forward to Asterisk.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Eugene, I am afraid that there will not be any video on Asterisk in the near future ;-( - I will rather have a look at phone tethering, i.e. use a mobile phone to provide fail over whenever your internet connection goes down. On an OpenWrt router, YATE is a great alternative (much more lightweight, but badly documented though...)
@AnthonyDigi1205
@AnthonyDigi1205 Жыл бұрын
Vlans vs ethernet hub switch with many ports ???
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Anthony, yes that's the concept. If you had an unmanaged switch then you could not tell the switch which interface goes to which port.
@sawailkhansherwani
@sawailkhansherwani Жыл бұрын
My man what's up? Marc, I want you to make video on proxmox having containers like portainer or docker pi-hole true-nas jellyfin like building one machine that can do anything like sky is a limit. Pls respond I want you to make this video, it will be a guide for us beginners to make a home server which can do a lot of things.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Sawail Khan, I'll think it over ;-)
@sawailkhansherwani
@sawailkhansherwani Жыл бұрын
@@OneMarcFifty thanks Marc 🙌
@melonmusk3976
@melonmusk3976 8 ай бұрын
a RB260 tutorial?
@cesar0avelar
@cesar0avelar 9 ай бұрын
The installation was demonstrated with the squashfs image, how could the card be resized with ext4 fs? How do I size my installation's squashfs partition? Grateful.
@dataandroid2036
@dataandroid2036 3 ай бұрын
Hallo, gibt es eine Lösung um eine "Intel Wi-Fi 6 AX200" Wlan Karte auf einem x86 System zu aktivieren? (atueller Snapshot und im Ordner Firmware liegt der ......77.ucode) Kernel-Treiber sind geladen und der "iwlwifi-AX200" auch. Es tut sich trotzdem nichts. Der "Empfang" geht, es werden Wlan angezeigt, aber es kommt keine Verbindung zustande. Ich folgere das die Karte nicht sendet. Danke und Grüße
@paldo771
@paldo771 20 күн бұрын
At this time. Raspberry Pi 4 or 5 is still expensive. Best to get a thin client like Dell Wyse, HP T series, or even a 2010 MAC Mini..
@TheChadXperience909
@TheChadXperience909 Жыл бұрын
If you're building a router, then you'll need something with, at least, dual NICs... One for the WAN interface. I wouldn't trust my network to VLAN. It's possible to circumvent that.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Totally agree. As I said in the beginning, I am not advocating this to ne a viable solution for an Internet router.
@dev4live313
@dev4live313 Жыл бұрын
in my country, managed swich much much more expensive than openwrt router so, many users set openwrt router as vlans switch
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, many thanks for the feedback. Yes, using an old OpenWrt Router is a viable alternative. Most routers only have 5 ports though. But I have used an old Archer C7 like this for a long time.
@Radwan.Bohiba
@Radwan.Bohiba Жыл бұрын
How to fix bufferbloat on mobile android
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, there will be a video on QoS/SQM soon.
@odhiambo0
@odhiambo0 Жыл бұрын
This video is very confusing and almost got me very scared about using fdisk. You installed a squashfs image and then ended up using a procedure meant for ext4 fs to growfs, it failed, but you did not point out the fact that you made a mistake. This would make someone to doubt the documentation. I have never used the squashfs image so this was my first time using it on RPi. Turns out the process is very easy: After writing the changes, you just need to reboot, then run 'resize2fs /dev/loop0' and voila. I suggest and edit 🙂
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi Odhiambo, many thanks for your feedback. Actually I did not install squashfs on this system but rather ext4. Should have pointed this out maybe in the beginning. So I did use the right procedure (check time marker 17:37 - it shows an ext4 signature!). Now - with regards to the documentation - there is absolutely no reason to doubt in it, it works very well if you apply it in the right way. I had no intention to mislead anybody in thinking this could be erroneous. Where I did make a mistake was that I copy pasted all the commands even though the blog entry says explicitly to not do so. Many thanks for pointing this out - I did not pay attention to that. However - I find it a bit harsh (not to say unfair) to say that the whole video is confusing just because one screen cam/comment in the fine tuning section at the end of the video might be ambiguous. I mean, the video is mainly about dispatching VLANs to multiple Ethernet ports on a switch, not on increasing the file system using fdisk and resize2fs. Even though I watch my videos 3-4 times before I publish them in order to eliminate errors, they may still happen as I am only human after all ;-) Anyhow - thanks for your feedback, much appreciated!
@odhiambo0
@odhiambo0 Жыл бұрын
Your dd command showed you using the squashfs image, which makes it even more complicated. However, I did pick one nice lesson - about the ability to have the 'reset' in the squashfs image as opposed to the ext4 image. And I'll still have more to learn about vlans.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Oooh - got it! I haven’t double checked on the dd command - totally missed that one! Because -of course - I used the pi imager. Good catch ;-)
@melonmusk3976
@melonmusk3976 8 ай бұрын
I came to see vlans and saw an openwrt instalacion tutorial
@AdrianuX1985
@AdrianuX1985 Жыл бұрын
+1
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Thank you
@DemocracyManifest-vc5jn
@DemocracyManifest-vc5jn 4 ай бұрын
The Pi in Europe is like astronomically more than it is in the US.
@AbcAbc-hn7nj
@AbcAbc-hn7nj Жыл бұрын
Router on stick
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Yes ;-)
@m7eung
@m7eung 9 ай бұрын
That's right, understand the limitation of a Raspberry pi and don't push every feature on top of a it. It cannot do everything. Buy proper hardware instead.
@eamonhannon1103
@eamonhannon1103 3 ай бұрын
Too complicated !
@skyblaster7
@skyblaster7 Жыл бұрын
Please give FreeSWITCH a try before making any Asterisk videos. I've been running it for 14 years, but would love to see what you can do with it.
@OneMarcFifty
@OneMarcFifty Жыл бұрын
Hi, I have no plans to make an asterisk video really, but I'll have a look at FreeSwitch. I am using Yate at the moment.
How to run the example.com domain on Proxmox
16:59
OneMarcFifty
Рет қаралды 11 М.
My Proxmox Home Server Walk-Through: Part 1 (TrueNAS, Portainer, Wireguard)
54:28
Ouch.. 🤕
00:30
Celine & Michiel
Рет қаралды 26 МЛН
Useful gadget for styling hair 🤩💖 #gadgets #hairstyle
00:20
FLIP FLOP Hacks
Рет қаралды 10 МЛН
Mama vs Son vs Daddy 😭🤣
00:13
DADDYSON SHOW
Рет қаралды 50 МЛН
You call THAT a router?! 2 Tiny Raspberry Pi Routers
14:56
Jeff Geerling
Рет қаралды 653 М.
I ditched my Raspberry Pi for this
18:45
NetworkChuck
Рет қаралды 486 М.
I plug this into EVERYTHING! - Netool.io
14:46
ShortCircuit
Рет қаралды 1,1 МЛН
The Petabyte Pi Project
22:27
Jeff Geerling
Рет қаралды 2,2 МЛН
Raspberry Pi Travel Router - RaspAP (2024)
15:06
Everyday Tech
Рет қаралды 100 М.
DO NOT design your network like this!! // FREE CCNA // EP 6
19:36
NetworkChuck
Рет қаралды 3,2 МЛН
Мой новый мега монитор!🤯
1:00
Корнеич
Рет қаралды 761 М.
Опасность фирменной зарядки Apple
0:57
SuperCrastan
Рет қаралды 12 МЛН
Сколько реально стоит ПК Величайшего?
0:37
low battery 🪫
0:10
dednahype
Рет қаралды 1,7 МЛН