Ethernet Switching
VLAN Configuration
VLAN(Virtual Local Area Network)The commands for creating, deleting and adding members are shown in the table. \[Command] show vlan summary \[Purpose] Display VLAN summary information \[View] System view \[ Use Cases ] Description of the show vlan summary command output \[Command] show vlan vid vlan id show vlan all \[Purpose] Display VLAN specific information \[View] System view \[ Use Cases ] \[Command] vlan vlan id no vlan vlan id \[Purpose] Create VLAN \[Parameter] \[View] System configuration view \[ Use Cases ] \[Command] switchport {trunk|access} vlan vlan id \[Purpose] Add interface to VLAN \[Parameter] \[View] Interface view \[Usage Scenario] Frames sent by user hosts are untagged, and frames received by the interface from the peer device may be tagged.
MAC Configuration
\[Command] show mac-flapping config \[Purpose] View the configuration information of MAC address flapping detection function \[View] System view \[Use Cases] \[Command] show mac-flapping status \[Purpose] View records of MAC address flapping \[View] System view \[Use Cases] \<font color="#1d05a2">Description of the \</font> \[Command] show mac-address \[ interface-type interface name] \[Purpose] Display MAC table \[Parameter] \[View] System view \[Use Cases] \[Command] show mac-limit \[{port interface name | vlan vlan id }] \[Purpose] View the configured limit on the number of MAC address learning entries \[View] System view \[Use Cases] \[Command] clear mac-address \[{ethernet|link-aggregation interface name } ] \[vlan vlan id ] \[{static|dynamic}] \[Purpose] Empty the MAC table \[Parameter] \[View] System view \[Usage Scenario] The MAC address table space on a device is limited. When the MAC address table becomes full, it cannot learn new MAC address entries until the aging time expires.
Interface Isolation Group Configuration
\[Command] show port-isolate-group \[group-id group id ] \[Purpose] View the configured interface isolation group information \[Parameter] \[View] System view \[ Use Cases ] \[Command] port-isolate-group group id no port-isolate-group group id \[Purpose] Create interface isolation groups \[Parameter] \[View] System configuration view \[Usage Scenario] The isolation feature refers to isolating and forwarding broadcast, multicast, and unicast packets among interfaces within the same isolation group. When combined with other business functions, it can implement a more secure network architecture and greatly reduce the occurrence of broadcast storms.
LLDP Configuration
\[Command] show lldp neighbors \[ interface name ] show lldp table \[Purpose] Show LLDP neighbors \[Parameter] \[View] System view \[ Use Cases ] \[Command] show lldp ports med-policy \[Purpose] Display interface LLDP MED configuration policy \[View] System view \[ Use Cases ] \[Command] lldp enable no lldp enable \[Purpose] Enable LLDP \[View] System configuration view \[ Use Cases ] \[Command] lldp mgmt-ip A. B.
Link Aggregation Configuration
\[Command] show link-aggregation summary \[Purpose] Display LAG configuration information \[View] System view \[Use Cases] \<font color="#1d05a2">Description of the \</font> \[Command] show hash capabilities \[ Purpose ] Display the hash methods currently supported by the device \[View] System view \[ Use Cases ] \[Command] show hash brief \[Purpose] Display the hash method currently configured for the device \[View] System view \[Use Cases] \[Command] interface link-aggregation lag id no interface link-aggregation lag id \[Purpose] Add aggregation groups \[Parameter] \[View] System configuration view \[Use Cases] \[Command] link-aggregation-group lag-id \[ port-priority ] no link-aggregation-group \[Purpose] Add member ports to an aggregation group \[Parameter] \[View] Interface view \[Usage Scenario] Configuring interface priority is done to differentiate between different interfaces on the same device. Interfaces with higher priority will be selected as active interfaces.
MC-LAG Configuration
\[Command] show mclag state \[Purpose] View information about MC-LAG \[View] System view \[Use Cases] \[Command] show mclag consistency check result \[Purpose] View the results of the membership consistency check \[View] System view \[Usage Scenario] MCLAG (Multi-Chassis Link Aggregation Group) consists of two devices that together form a dual-active system. These two MCLAG devices are logically virtualized as a single device, creating a unified Layer 2 logical node.
QinQ Configuration
\[Command] show interface vlan-stack \[Purpose] View the VLAN stack function configuration of the interface \[View] System view \[ Use Cases ] \[Command] show interface qinq protocol \[ interface name ] \[Purpose] View the qinq protocol configuration of the interface \[View] System view \[ Use Cases ] \[Command] qinq protocol value no qinq protocol \[Purpose] Configure the TPID \[Parameter] \[View] Interface view \[Usage Scenario] Inbound Direction In the inbound direction, the "qinq protocol" command is used for identifying VLAN information in received packets. If an interface receives QinQ-tagged packets and you don't want to modify the VLAN information in the packet, the configuration should match the TPID (Tag Protocol Identifier) of the incoming packet.
L2PT Configuration
\[Command] l2protocol-packet {stp|lacp} disable \[Purpose] Disable punting of STP or LACP packets \[View] Interface view \[ Use Cases ] \[Command] l2protocol-tunnelt {stp|lacp|pvstp|cdp} enable \[Purpose] Enable layer-2-protocol tunneling on the interface \[View] Interface view \[Usage Scenario] L2PT (Layer 2 Protocol Transparent Transmission) is a technology used to extend Local Area Network (LAN) connections across Wide Area Networks (WAN).
URPF Configuration
\[Command] show interface urpf \[Purpose] Check the URFP enable mode for the interface \[View] System view \[Use Cases] \[Command] ip urpf {strict|loose} \[Purpose] Enable URPF mode on the interface \[Parameter] \[View] Interface Configuration View \[Usage Scenario] Enable the URPF feature at the traffic ingress interface to detect whether traffic has a return path, ensuring that the server is not overwhelmed by unknown traffic. \[Notes] After enabling the URPF feature in strict mode on an interface, direct connections to the router cannot be pinged, and OSPF and BGP neighbors cannot establish connections normally.
Loopback Detection Configuration
\[Command] show loopback-detection config \[Purpose] View interface loopback detection status configuration information \[View] System view \[ Use Cases ] \[Command] show loopback-detection config \[Purpose] View interface loopback detection interface status information \[View] System view \[ Use Cases ] \[Command] loopback-detection interval-time interval \[Purpose] Configure interface loopback detection packet transmission interval \[Parameter] \[View] System configuration view \[Usage Scenario] This command configures the interval for periodically sending loopback detection packets. Users can adjust the loopback detection packet transmission interval based on network conditions.