#
vlan 1
#vlan 420 to 429
#vlan 500 to 600
#stp global enable
#interface null0
#interface vlan-interface1
ip address dhcp-alloc
dhcp client identifier ascii b4d7db450a08-vlan0001
#interface vlan-interface420
description gl
ip address 172.26.20.201 255.255.255.0
#interface vlan-interface507
ip address 172.26.107.200 255.255.255.0
ip address 172.26.106.203 255.255.255.0 sub
#interface gigabitethernet1/0/1
port access vlan 507
poe enable
This is a command line for configuring Huawei switches. I'll try to explain to you what each line means:
First linevlan 1
It is the creation of a virtual local area network (VLAN) numbered 1 that divides different broadcast domains and isolates traffic.
Third linevlan 420 to 429
This is to create 10 VLANs numbered 420 to 429 in batches.
Fifth linevlan 500 to 600
It is to create a batch of 101 VLANs numbered 500 to 600.
Seventh linestp global enable
is to enable the STP (Spanning Tree Protocol) feature of the switch to protect against network** live loops and broadcast storms.
Ninth lineinterface null0
It is a configuration mode that enters an empty interface, which does not correspond to any physical port, and is usually used to configure routing policies or filtering rules.
Line 11interface vlan-interface1
is the configuration mode that enters the number 1 VLAN interface, which is a logical interface that is used to configure the IP address and other parameters of the VLAN.
Twelfth lineip address dhcp-alloc
It is to set the IP address of the VLAN interface to be dynamically assigned, that is, to obtain the IP address from the DHCP server.
Thirteenth linedhcp client identifier ascii b4d7db450a08-vlan0001
is the ASCII-encoded string b4d7db450a08-vlan0001 for the DHCP client identifier of the VLAN interface, which is used to carry the identity information when sending requests to the DHCP server.
Element 15interface vlan-interface420
is the configuration mode that enters the VLAN interface number 420, which is a logical interface that is used to configure the IP address and other parameters of the VLAN.
Line 16description gl
It is to set the description of a VLAN interface to GL, which is used to identify or comment on the purpose or properties of the interface.
Line XVIIip address 172.26.20.201 255.255.255.0
Yes, set the IP address of the VLAN interface to 17226.20.201 with a subnet mask of 255255.255.0 to specify the network and host range to which the interface belongs.
Line 19interface vlan-interface507
is the configuration mode that enters the VLAN interface numbered 507, which is a logical interface that is used to configure the IP address and other parameters of the VLAN.
Line 20ip address 172.26.107.200 255.255.255.0
Yes, set the primary IP address of the VLAN interface to 17226.107.200, and the subnet mask is 255255.255.0 to specify the network and host range to which the interface belongs.
Twenty-one lineip address 172.26.106.203 255.255.255.0 sub
Yes, set the secondary IP address of the VLAN interface to 17226.106.203 with a subnet mask of 255255.255.0 to specify the other network and host range to which the interface belongs.
Line XXIIIinterface gigabitethernet1/0/1
is the configuration mode that goes into the Gigabit Ethernet interface numbered 1 0 1, which is a physical interface that is used to connect other devices or networks.
Line XXIVport access vlan 507
is to set the working mode of a Gigabit Ethernet interface to access mode and specify the VLAN to which it belongs to 507 to limit the traffic of the interface to that VLAN.
Line XXVpoe enable
is a PoE (Power over Ethernet) feature that enables the Gigabit Ethernet interface to provide power to connected devices via a network cable.
That's my simple explanation of this paragraph.