H3C layer-3 Switch configuration: analyzes VLAN code instances. Currently, there are a lot of people using layer-3 switches, and maintenance of switches has become a problem that cannot be ignored. Only the three-tier switch is configured, which not only saves your time and effort on accessing the Internet, but also brings more highlights to your network life.
Note: There are three VLANs, 192.168.10.0; 192.168.20.0; 192.168.30.0, And the subnet mask is 255.255.255.0. ethernet 1/0/1, Ethernet 1/0/2, and Ethernet 1/0/3 are allocated to three VLANs respectively. Therefore, the three VLANs can be interconnected through layer-3 switching routing.
Supplement: "After a VLAN is configured for a layer-3 Switch, no direct communication is allowed between VLANs. If you need to communicate, you can use the layer-3 interface configured for the layer-3 Switch to enable communication between two VLANs through layer-3 forwarding. "For the specification, I cannot find the layer-3 Switch configuration. I hope you can help us solve this problem. It is best to have complete code and explanations, or use the H3C3 layer switch code. You can find the layer-3 Switch configuration code on the Internet. If you can help me solve the problem, continue to deliver points.
& Lt; SwitchA & gt; system-view
# Creating VLAN100
[SwitchA] vlan 100: Ethernet 1/0/1 is allocated to vlan100.
[SwitchA-vlan100] description vlan_100
A [SwitchA-vlan100] port Ethernet 1/0/1
[SwitchA-vlan100] quit
# Create a VLAN200 instance
[SwitchA] vlan 200: Ethernet 1/0/2 is allocated to vlan200
[SwitchA-vlan200] description vlan_200
[SwitchA-vlan100] port Ethernet 1/0/2
[SwitchA-vlan200] quit
# Create VLAN300 and assign Ethernet 1/0/3 to vlan300
[SwitchA] vlan 300
[SwitchA-vlan300] description vlan_300
[SwitchA-vlan300] port Ethernet 1/0/3
[SwitchA-vlan300] quit
# Create a VLAN interface. The IP addresses of layer-3 switches are 192.168.10.1 and
192.168.20.1, 192.168.30.1
[SwitchA] interface Vlan-interface 100
[SwitchA-Vlan-interface100] ip address 192.168.10.1 24
[SwitchA-Vlan-interface100] quit
[SwitchA] interface Vlan-interface 200
[SwitchA-Vlan-interface200] ip address 192.168.20.1 24
[SwitchA-Vlan-interface200] quit
[SwitchA] interface Vlan-interface 300
[SwitchA-Vlan-interface300] ip address 192.168.30.1 24
[SwitchA-Vlan-interface300] quit
By default, the routing function is enabled for switches. layer-3 switches cannot directly communicate with each other through VLAN interface addresses for layer-3 forwarding. The computer gateway address in each VLAN can be set as the corresponding VLAN interface address. Delete the layer-3 Switch configuration file and try again.