Using RPi4 and a managed switch + vlans

Hi All,
Very sorry about the confusion. As per your feed back, I have gone back to the drawing board and started again:

So, first thing first, Network and VLANs:

Port 01: Service Port, PVID: 1
Port 02 – 05: VLAN 111 (LAN), PVID: 111
Port 06: RPi, PVID: 511
Port 07: VLAN 111 (LAN), PVID: 111
Port 08: VLAN 911 (WAN), PVID: 911

Second, LuCI
Two Interfaces: br-lan & wan.911

cat /etc/config/network

config interface 'loopback'
        option device 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config globals 'globals'
        option ula_prefix 'xxxx:xxxx:xxxx::/48'

config device
        option name 'br-lan'
        option type 'bridge'
        list ports 'eth0.111'

config interface 'wan'
        option proto 'pppoe'
        option device 'eth0.911'
        option username 'dsl001234567@broadband.vodafone.co.uk'
        option password 'xxxxXxXX'
        option ipv6 '0'

config interface 'lan'
        option device 'br-lan'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

In addition to these, Vodafone UK (City Fibre) requires VLAN tagging of 911.

Initial test did not work. I am not able to test any further at the moment as internet in use until 17:30 (GMT)

I have tried to include as much as I can. If I have forgotten anything, please let me know and I will add it here.

Thank you.

If the isp requires tagged Ethernet frames, this needs to be tagged here

Hi Peter
That is where I am stuck. How do I do that? I tried everything but I am not having any joy :disappointed:

Please help. Thank you.

Does my network and VLANs ok? I am not blocking anything? I tried with DHCP, that works like a charm but as soon as I change it to PPPOE, stops

Yes, at least the /etc/config/network file looks right, assuming that your ISP uses VLAN 911 and PPPoE.

This is confusing to me... it's not clear to me what your ISP really requires, and this is information that you need to get from your ISP directly.

What happens if you plug your computer directly into the DSL modem (so direct connection, no switch between them)? Does your computer get an IP address and can it reach the internet? What are the first two octets of your comptuer's IP address (in bold aaa.bbb.ccc.ddd)?

This is al I get from Vodafon’s website:

CityFibre, the VLAN will be 911 or possibly not used.

Mtu 1492

PPPoE

*Username - ********

*Password - *********

That's wonderfully uncertain.... grr (aimed at Vodafon).

Did you try connecting your computer directly to the modem?

Looks like switch misconfiguration.
image

Hi Peter

Sorry for the late reply. I only have a 30 min window to do my dev work! There is work, so I am not able to bring Internet down, then Uni stuff, then TV till midnight! So my work is not a priority!

Anyway, I just tried, I am not getting the IP address. I get 169.254

I think I am getting closer to give up now. I have another router I can plug in to secure the traffic and get rid off the VF router.

So that suggests that you don’t use untagged + dhcp.

Fix your managed switch so that vlan911 it tagged on port 8

Hi Trendy

Any suggestion to fix this? Does it need to be Tagged? Thank you

Yes, most likely it needs to be tagged as has been discussed a few times here. On your switch, change the VLAN 911 port-membership such that it is tagged on port 8.

1 Like

Thank you all for your help, Peter, treaty, you’re stars. Thanks again

Is it working now?

If your problem is solved, please consider marking this topic as [Solved]. See How to mark a topic as [Solved] for a short how-to.
Thanks! :slight_smile:

Yey, working now. First thing first, any tips and tricks?

Great!

And no... no tips and tricks per-se because we don't know your specific use case/needs/requirements.

If you have certain things in mind (like guest networks, traffic shaping, VPNs, etc.), we can help you with those, but be sure to form a clear understanding of your goals so that you can communicate them as you ask how to do certain things.

That said, those would all be worthy of a new thread, so please open a new one if/when you need that assistance, and in the meantime you can mark this one as solved.

Thank you. I see that it is already been marked as resolved.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.