Displaying and Maintaining Ethernet Ports
To do...
Display port configuration
information
Display information for a
specified port group
Display port loopback detection
state
Display brief configuration
information about one or all
ports
Display current type-specific
ports
Display port information about
a specified unit
Clear the statistics of the port
Ethernet Port Configuration Example
Network requirements
As shown in
Figure
Switch A is connected to Switch B through trunk port GigabitEthernet 1/0/1.
Configure the default VLAN ID for the trunk port as 100.
Allow the packets of VLAN 2, VLAN 6 through VLAN 50 and VLAN 100 to pass the port.
Figure 1-1 Network diagram for default VLAN ID configuration
Configuration procedure
The following configuration is used for Switch A. Configure Switch B in a similar way.
# Enter port view of GigabitEthernet 1/0/1.
[device] interface GigabitEthernet1/0/1
# Set GigabitEthernet 1/0/1 as a trunk port and allow the packets of VLAN 2, VLAN 6 through VLAN 50
and VLAN 100 to pass the port.
[device-GigabitEthernet1/0/1] port link-type trunk
[device-GigabitEthernet1/0/1] port trunk permit vlan 2 6 to 50 100
# Create VLAN 100.
Use the command...
display interface [ interface-type |
interface-type interface-number ]
display port-group group-id
display loopback-detection
display brief interface
[ interface-type [ interface-number ] ]
[ | { begin | include | exclude }
regular-expression ]
display port { hybrid | trunk |
combo }
display unit unit-id interface
reset counters interface
[ interface-type | interface-type
interface-number ]
1-1:
1-12
Remarks
Available in any view
After 802.1X is enabled,
the port information cannot
be reset.
Need help?
Do you have a question about the WX3000 Series and is the answer not in the manual?