#
interface ten-gigabitethernet1/0/49
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
#interface ten-gigabitethernet1/0/50
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
#interface ten-gigabitethernet1/0/51
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
#interface ten-gigabitethernet1/0/52
port link-type trunk
undo port trunk permit vlan 1
port trunk permit vlan 2 to 4094
#scheduler logfile size 16
#line class aux
user-role network-admin
#line class vty
user-role network-operator
#line aux 0
user-role network-admin
#line vty 0 63
authentication-mode scheme
user-role network-operator
#ip route-static 0.0.0.0 0 172.26.20.254
This is a command line for configuring Huawei switches. I'll try to explain to you what each line means:
First lineinterface ten-gigabitethernet1/0/49
is the configuration mode that goes into the 1 0 0 49 1 0 49 10 Gigabit Ethernet interface, which is a physical interface that is used to connect to other devices or networks.
Second lineport link-type trunk
is to set the working mode of the interface to trunk mode, which is used to transmit data frames of multiple VLANs on the interface.
Third lineundo port trunk permit vlan 1
is to remove VLAN 1 from being allowed on the interface and is used to avoid broadcast storms for VLAN 1.
Fourth lineport trunk permit vlan 2 to 4094
is to set the allowed VLAN range on the interface from 2 to 4094, which is used to specify the collection of VLANs to which the interface belongs.
Sixth lineinterface ten-gigabitethernet1/0/50
is the configuration mode that enters the 1 0 0 50 10 Gigabit Ethernet interface, which is a physical interface that is used to connect to other devices or networks.
Seventh lineport link-type trunk
is to set the working mode of the interface to trunk mode, which is used to transmit data frames of multiple VLANs on the interface.
Eighth lineundo port trunk permit vlan 1
is to remove VLAN 1 from being allowed on the interface and is used to avoid broadcast storms for VLAN 1.
Ninth lineport trunk permit vlan 2 to 4094
is to set the allowed VLAN range on the interface from 2 to 4094, which is used to specify the collection of VLANs to which the interface belongs.
Line 11interface ten-gigabitethernet1/0/51
is the configuration mode that goes into the 1 0 0 51 1 Gigabit Ethernet interface, which is a physical interface that is used to connect to other devices or networks.
Twelfth lineport link-type trunk
is to set the working mode of the interface to trunk mode, which is used to transmit data frames of multiple VLANs on the interface.
Thirteenth lineundo port trunk permit vlan 1
is to remove VLAN 1 from being allowed on the interface and is used to avoid broadcast storms for VLAN 1.
Line 14port trunk permit vlan 2 to 4094
is to set the allowed VLAN range on the interface from 2 to 4094, which is used to specify the collection of VLANs to which the interface belongs.
Line 16interface ten-gigabitethernet1/0/52
is the configuration mode that goes into the 1 0 0 52 10 Gigabit Ethernet interface, which is a physical interface that is used to connect to other devices or networks.
Line XVIIport link-type trunk
is to set the working mode of the interface to trunk mode, which is used to transmit data frames of multiple VLANs on the interface.
Line 18undo port trunk permit vlan 1
is to remove VLAN 1 from being allowed on the interface and is used to avoid broadcast storms for VLAN 1.
Line 19port trunk permit vlan 2 to 4094
is to set the allowed VLAN range on the interface from 2 to 4094, which is used to specify the collection of VLANs to which the interface belongs.
Twenty-one linescheduler logfile size 16
Yes, set the log file size of the switch to 16 MB and record the operational status and events of the switch.
Line XXIIIline class aux
is the configuration mode that enters the auxiliary line class and is used to define the properties of the auxiliary line.
Line XXIVuser-role network-admin
This is to set the user role of the secondary line class as Network Administrator, which is used to specify access rights for the secondary line.
Line XXVIline class vty
It is the configuration mode that enters the virtual terminal line class and is used to define the properties of the virtual terminal line.
Line XXVIIuser-role network-operator
This is to set the user role of the virtual terminal line class as Network Operator, which is used to specify the access permissions of the virtual terminal line.
Line 29line aux 0
is the configuration mode that enters auxiliary line 0 and is used to configure the parameters of the auxiliary line.
Line 30user-role network-admin
is to set the user role of Secondary Line 0 as Network Administrator, which is used to specify access rights for the Secondary Line.
Line XXXIIline vty 0 63
is to enter the configuration mode of the virtual terminal line 0 to 63, which is used to configure the parameters of the virtual terminal line.
Line XXXIIIauthentication-mode scheme
This is to set the authentication mode of the virtual terminal line to scheme authentication, which is used to verify the identity and password of the user.
Line XXXIVuser-role network-operator
This is to set the user role of the virtual terminal line as Network Operator, which is used to specify the access rights of the virtual terminal line.
Line thirty-sixip route-static 0.0.0.0 0 172.26.20.254
Yes, set a static route and set the destination network to 00.0.0 0 packets ** to the next hop address 17226.20.254 devices to implement the default route.
That's my simple explanation of this paragraph.