Operation Manual - Port
Quidway S5000 Series Ethernet Switches
Chapter 1 Ethernet Port Configuration
1-8
Table 1-13
Display and debug Ethernet port
Operation
Command
Configure to perform loopback test on the Ethernet port.
loopback
{
external
|
internal
}
Display all the information of the port
display interface
{
interface_type | interface_type
interface
_
num
|
interface_name
}
Display hybrid port or trunk port
display port
{
hybrid
|
trunk
}
Clear the statistics information of the port
reset counters interface
[
interface_type |
interface_type interface_num | interface_name
]
Note that the loopback test cannot be performed on the port disabled by the
shutdown
command. During the loopback test, the system will disable
speed
,
duplex
,
and
shutdown
operation on the port. Some ports do not support the loopback test. If
performing this command in these ports, you will see the system prompt.
1.4 Ethernet Port Configuration Example
I. Networking requirements
Ethernet Switch (Switch A) is connected to the peer (Switch B) via the trunk port
GigabitEthernet0/1. The following example configures the default VLAN ID for the trunk
port and verifies the
port trunk pvid vlan
command. As a typical application of the
port trunk pvid vlan
command, the trunk port will transmit the packets without tag to
the default VLAN.
II. Networking diagram
Switch A
Switch B
Figure 1-1
Configure the default VLAN for a trunk port
III. Configuration procedure
The following configurations are used for Switch A. Please configure Switch B in the
similar way.
# Enter the Ethernet port view of GigabitEthernet0/1.
[Quidway] interface gigabitethernet0/1
# Set the GigabitEthernet0/1 as a trunk port and allows VLAN 2, 6 through 50, and 100
to pass through.
[Quidway-GigabitEthernet0/1] port link-type trunk