1. If your three-layer switch is connected to the gateway access switch, the three-layer switch and the access switch can transparently transmit VLAN through trunk, with two three-layer vlanif as the core, which are respectively bound to a network segment, and the access switch is connected to the terminal to configure acess and the corresponding VLAN.
2. If your Layer 3 switch is connected to a fool or hub switch, it can only be realized by writing a subaddress on the interface of the Layer 3 switch.
There is only one idle Ethernet interface GE0/0/ 1 on the switch, but the computers in this LAN belong to two different network segments, namely172.16.10/24 and172./kloc-0.
Enter the system view and create a new VLAN 100.
& lt Huawei & gt system view//Enter system mode.
[Huawei] sysname Switch? //Switch Rename
[Switch] vlan 100 // Create vlan
[Switch-vlan 100] exit? //Exit vlan mode
Configure port properties and the VLAN to which they belong.
[Switch] Interface Gigabit Ethernet 0/0/1/Access Interface [Switch-Gigabit Ethernet 0/0/ 1] Port Link Access
[Switch-Gigabit Ethernet 0/0/ 1] Port default vlan 100.
[switch-gigabit Ethernet 0/0/1] exit.
Configure the IP address of VLANif 100.
[Switch] interface VLANIF 100// Enter the third layer vlanif interface [Switch-vlanif100] IP address172.16.1.124? //Configure the primary IP address
[switch-vlanif 100] IP address172.16.2.124 sub//configure the slave IP address [switch-vlanif 100] to exit.
[Switch] Exit
& lt switch & gt rescue
Verify that the ip address of PC172.16.11is set, and the ip address of PC2 is172.16.2./kloc-. Ping.
Matters needing attention
Configure the backhaul route in the superior route, otherwise it will not work.