中文
English

L3 Managed Switch Set up multiple VLAN

2024-08-27


1. Add VLAN


2. Change the port modeA port must be reserved for managementYou can refer to the file that you have sent to establish a VLAN before

Connect a port to Managed switch: The port mode is set to "Trunk"

Connect a port to Unmanaged switch or computer or camera: The port mode is set to "Access"




3. Ports are assigned to VLAN (In the figure, VLAN1 is used to connect to the router, and the port I set to connect to the router is TE4)


























4. add IPv4 Interface Table

--In the figure, VLAN 1 is connected to the router, so the IP address CIDR block must be the same as the router gateway CIDR block

-- In the figure, I chose VLAN2 to manage


5.add IPv4 Routing Table (You only need to add the one in the red box in the picture, and the other ones will be automatically generated in the previous step)


6. Set DHCP so that connected devices can automatically obtain IP addresses


6.1 DHCP Port Setting Table (Enabled or Disabled According to reality)

In the figure, except for the management port and VLAN1 (for connection routing), all are enabled







6.2 IP Pool Table

Please refer to the local DNS for the DNS address, this address is for reference only, and the DNS of each VLAN must be the same)












6.3 add DHCP Server Group Table

6.4 set up Vlan Interface Address Pool Table

The above has been set up on the switch, and if you need to communicate with the route, you must add a static route to the route


static route

Destination lP Prefix:10.10.7.0

Prefix Length:24

Next Hop Router IP Address:192.168.2.58


Destination lP Prefix:10.10.8.0

Prefix Length:24

Next Hop Router IP Address:192.168.2.58


Destination lP Prefix:10.10.9.0

Prefix Length:24

Next Hop Router IP Address:192.168.2.58


Destination lP Prefix:10.10.10.0

Prefix Length:24

Next Hop Router IP Address:192.168.2.58






Now each VLAN can communicate with the router


share