The premise must be a layer 3 switch. Port-based routing cannot identify VLANs and will reject VLAN routing packets marked with T.
Configuration Points
1. Create a VAN in VLAN configuration mode and enable routing function;
2. Enter the VLAN routing interface or interface mode to configure the interface IP address and subnet mask, and enable the port routing function;
3. Assign the ports to the corresponding VLANs.
IP address allocation based on VLAN
I. Configuring VLAN Addresses
1. Click Configuration Wizard

2. Enter the VLAN value, or double-click the VLAN list, then click Next.

3. Click next directly, if prompted, select NO

4. Enter the IP address and subnet mask of the router interface. Enter the IP address and subnet mask of the router sub-interface, and click Add to add it to the list on the left. The sub-interface address can be ignored if it is not used. Click Finish to save.

5. Port9.x appears in the list. The IP address of this port is the routing interface address of the VLAN.

II. Configure port routing IP address

Double-click the "IP Address" cell corresponding to the port and enter the IP address; in the "NetMask" cell, enter the subnet mask and check the "Routing" option. Take port 2.1 as an example:
Double click port 2.1
In the corresponding "IP Address" unit, enter the IP address 10.0.1.1;
In the "NetMask" unit, enter the subnet mask 255.255.255.0;
Check the "Routing" option to enable the routing function of this port;
Note: "Proxy ARP" function option: Proxy ARP is a variant of the ARP protocol. For a computer that does not have a default gateway configured to communicate with other computers in the network, the gateway receives the ARP request from the source computer and responds to the source computer using its own MAC address and the target computer's TP address.
Note: "Netdirected Broadcasts" function option: select whether to enable the broadcast function of the direct network of the specified routing port
Static routing table configuration
III. Enable the switch global routing function
1. Select On, the default setting is Off, click Set to save

2. Click the Create Entry button, a window will pop up, enter the target network address, subnet mask, next hop IP address, confirm to generate a route, and then click Set to save.

IV. Example of configuring static routing
1. Static routing is used between Router A and Router B. The next hop of Router A is Router B, which enables communication from 10.0.1.0/24 to subnet 10.0.3.0/24.

2. Adding a new route entry

In the pop-up dialog window, enter Router A: Destination network: 10.0.3.0; Mask: 255.255.255.0; Next hop address: 10.0.2.2; Priority: 1 (default value)
Router B on the other side inputs:
Target network: 10.0.1.0; Mask: 255.255.255.0; Next hop address: 10.0.2.2; Priority: 1 (default value)
3.Select device and save to NV-RAM


