Hi,
Port 1 (eth1):
-----------------
VLAN Mode: Access
Acceptable Frame: Untagged Only
Ingress Checking: Enabled
VID(1-1094): 1Port 2 (eth2) (Comment 1):
----------------------------------
VLAN Mode: Trunk
Acceptable Frame: Tagged Only
Ingress Checking: Enabled
Action: Tagged
Allowed VLAN Range: 100,1000Port 3 (eth3) (Comment 2):
----------------------------------
VLAN Mode: Access
Acceptable Frame: Untagged Only
Ingress Checking: Enabled
VID(1-1094): 10Port 5 (eth5):
------------------
VLAN Mode: Hybrid
Acceptable Frame: Admit All
Ingress Checking: Enabled
VID(1-4094): 1
Action: Tagged
Allowed VLAN Range: 1,100,1000Comment 1:
Make sure that you configure the connected VyOS port to use two sub-interfaces which send and receive ethernet frames tagged with VID 100 and 1000 respectively.
Comment 2:
Make sure that you configure the connected VyOS port to send and receive untagged ethernet frames only - that is use the "main"-interface without any sub-interfaces.
For Port 3 (eth 3) you could configure alternatively:
-----------------------------------------------------------------
VLAN Mode: Trunk
Acceptable Frame: Tagged Only
Ingress Checking: Enabled
Action: Tagged
Allowed VLAN Range: 10In this case you have to make sure that the connected VyOS port sends and receives ethernet frames tagged with VID 10 - that is form a sub-interface for VLAN 10.
How to change Switch-Management address and VLAN?
----------------------------------------------------------------------
I hope this recipe will work:
- For fallback purposes: Configure at least one switch port (e.g. eth16) as an access port for VLAN 10 (analogous to my first proposal for port 3 as shown above).
- Start switch administration from a PC residing at VLAN 1 (network 192.168.1.0/24)
- Change the management IP address of the switch to an address belonging to 192.168.0.0/29 (or was it /28?) = VLAN 10. Set the gateway to the VyOS IP address it has within VLAN 10.
- After having done so you will probably lose the connection to the switch. Hence, renumber the IP address of the PC to another address belonging to 192.168.0.0/29 and reconnect to the switch (note: Switch and PC now use addresses defined for VLAN 10, but they still belong to VLAN 1!)
- Change the management VLAN of the switch from VLAN 1 (default) to VLAN 10. Now the switch management address belongs to the correct VLAN you planned to be used for Management.
- After having done so you will probably lose the connection to the switch again. But configuration is over now and you can renumber the PC to its former address belonging to VLAN 1.
The switch is now reachable/manageable only via IP routing (VyOS) or via devices directly connected to VLAN 10 (e.g. physical devices connected to switch ports configured as access ports for VID 10 - for example port 16 from step 1).
PT