Displaying and Maintaining Ethernet Ports

 

 

To do…

 

Use the command…

Remarks

 

 

Display port configuration

 

display interface [ interface-type

 

 

 

information

interface-type interface-number ]

 

 

 

 

 

 

 

 

 

Display information for a

 

display port-group group-id

 

 

 

specified port group

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Display port loopback detection

 

display loopback-detection

 

 

 

state

 

 

 

 

 

Display brief configuration

 

display brief interface

Available in any view

 

 

 

[ interface-type [ interface-number ] ]

 

 

 

information about one or all

 

 

 

 

 

[ { begin include exclude }

 

 

 

ports

 

 

 

 

regular-expression ]

 

 

 

 

 

 

 

 

 

 

 

 

 

Display current type-specific

 

display port { hybrid trunk

 

 

 

ports

 

combo }

 

 

 

 

 

 

 

 

 

Display port information about

 

display unit unit-idinterface

 

 

 

a specified unit

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

reset counters interface

After 802.1X is enabled,

 

 

Clear the statistics of the port

 

[ interface-type interface-type

the port information cannot

 

 

 

 

interface-number ]

be reset.

 

 

 

 

 

 

Ethernet Port Configuration Example

Network requirements

As shown in Figure 1-1:

z

z

z

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-1Network 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.

1-12

Page 119
Image 119
3Com WX3000 operation manual Ethernet Port Configuration Example, Displaying and Maintaining Ethernet Ports