Aggregation switch configuration explained 2

Mondo Technology Updated on 2024-01-30

#

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 1It is the creation of a virtual local area network (VLAN) numbered 1 that divides different broadcast domains and isolates traffic.

Third linevlan 420 to 429This is to create 10 VLANs numbered 420 to 429 in batches.

Fifth linevlan 500 to 600It is to create a batch of 101 VLANs numbered 500 to 600.

Seventh linestp global enableis to enable the STP (Spanning Tree Protocol) feature of the switch to protect against network** live loops and broadcast storms.

Ninth lineinterface null0It 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-interface1is 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-allocIt 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-vlan0001is 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-interface420is 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 glIt 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.0Yes, 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-interface507is 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.0Yes, 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 subYes, 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/1is 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 507is 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 enableis 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.

Related Pages