this post was submitted on 26 Nov 2023
3 points (100.0% liked)

Home Networking

198 readers
1 users here now

A community to help people learn, install, set up or troubleshoot their home network equipment and solutions.

Rules

founded 1 year ago
MODERATORS
 

Hi all, I have a new switch on home and I was wondering how to configure the connection between them.

https://preview.redd.it/9xjuiaie1o2c1.png?width=634&format=png&auto=webp&s=1c670c4144fae8f135c0b21600fcd841bc2d5e96

My actual switch (SW-A) has all vlans (1,10,30,50,60) and I want to pass all vlans to SW-B.

PFSense LAN (+vlans) port 1 to SW-A port 1

SW-A port 8 to SW-B port 1

So my first approach is:

- SW-A port 8: Assign all vlans as tagged

- SW-B create all vlans ID

- SW-B port 1: Assign all vlans as tagged.

Is this the correct way?

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 11 months ago (1 children)

The connection from SW-A to SW-B should be a VLAN trunk -- ie tagged (all vlans assigned assigned would normally be the default). VLANs have to be defined on both switches.

The connection from SW-A to the router would also be configured as a VLAN trunk - ie tagged.

The only difference is how the router would be configured. From a Juniper/Cisco perspective, you would create subinterfaces for each tagged VLAN and assigned them the VLAN Id's of the tagged ports. Each subinterface would have an IP address corresponding to the network's default gateway. I'm not sure if the PFSense is different -- I never use this software for a router.

VLAN 1 is normally considered special because it would be the native VLAN on most switches so would be an untagged VLAN. If this is unintended, the easiest thing would be to change the VLAN number and tag it. Alternatively if the switch and router allow it, simply change the native VLAN to something besides 1. It it's intentional then do nothing.

[–] [email protected] 1 points 11 months ago

My router is a computer (2 NIC) with PFSense.

Nic 0 -> WAN

Nic 1 -> LAN + VLANs

https://i.imgur.com/73F3yTn.png