I am attempting to configure my Raspberry Pi 4 to act as a router on a stick. I have a five port Netgear managed switch and I have configured the following:
GS305E – 5-Port Gigabit Ethernet Smart Managed Plus Switch
I assume you plug the RPi into port 2 and the ISP incoming into port 1.
Then you need to make sure you reboot the ISP equipment as it sometimes locks to a MAC address other than the one you want. Sometimes even requires leaving the device off for some time like 30 mins
My RPI3B manages pppoe using dumb fast ethernet switches on the default eth0 for lan and eth0.35 for pppoe wan. I removed the smart switches when I found they were not needed. I no longer have to load in kmod-usb-net-rtl8152 for the wan interface. On the SR505n modem, I left the packets tagged: VPI=-1, VCI=-1 instead of VPI=0, VCI=35.
Everything is working at the moment, so I'll probably leave it alone. I'm not sure if the switch is buggy, but I'm sure I tried these setting before without any success.
I am using an Honor Router 3 as a Wi-Fi access point. It has 4 ethernet ports, so I tried using that instead of the Netgear managed switch, but it wouldn't connect the PPPoE.
I'd like to tidy up my config a bit and have both VLAN1 and VLAN10 (WAN) tagged on the RP4 link.
I'm not sure how to configure it in OpenWRT.
These are the current interfaces.
I know that I need to add eth0.1, but I'm not sure what other options to choose. The VLAN1 network address is already assigned to the br-lan interface. Do I need to assign another static IP on the same interface or the same IP as the br-lan? Should it be a DHCP client?
It's a little tricky... You probably want to start with eth0 and eth0.1 bridged together, then change the switch to tag vlan 1 on the port and then go back in and change LAN to be a bridge with just eth0.1
That will keep you from locking yourself out when you switch to tagged packets.
Thanks. I think I've finally got that working with VLAN1 tagged on the switch. I didn't appreciate the difference between 'devices' and 'interfaces' in the config menu.
I've removed eth0 from the br-lan interface and I still have network connectivity.
What does the VLAN filtering setting do? I enabled it, but it looks as though it automatically disabled it when I removed eth0.