Ethernet Port Configuration Example
73
After you use the
shutdown
command on a port, the port cannot run loopback test.
You cannot use the
speed
,
duplex
,
mdi
and
shutdown
commands on the ports
running loopback test. Some ports do not support loopback test, and corresponding
prompts will be given when you perform loopback test on them.
Enabling the System to
Test Connected Cable
You can enable the system to test the cable connected to a specific port. The test
result will be returned in five minutes. The system can test these attributes of the
cable: Receive and transmit directions (RX and TX), short circuit/open circuit or not,
the length of the faulty cable.
The
virtual-cable-test
command is not available on combo ports.
Displaying and
Debugging Ethernet
Port
After the above configuration, enter the
display
commands in any view to display
the running of the Ethernet port configuration, and thus verify your configuration.
Enter the
reset counters
command in user view to clear the statistics of the port.
Ethernet Port
Configuration
Example
Network requirements
■
Switch A is connected to Switch B through trunk port GigabitEthernet1/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.
Configure the Ethernet port to run
loopback test
loopback
{
external
|
internal }
Optional
Table 55
Configure the Ethernet port to run loopback test
Table 56
Enable the system to test connected cables
Operation
Command
Remarks
Enter system view
system-view
—
Enter Ethernet port view
interface
interface-type interface-number
—
Enable the system to test
connected cables
virtual-cable-test
Required
Table 57
Display and debug Ethernet port
Operation
Command
Remarks
Display port configuration
information
display
interface
[
interface-type |
interface-type interface-number ]
You can use the
commands in any view.
Display port loopback
detection state
display loopback-detection
Display brief configuration
information about one or
all ports
display brief interface
[
interface-type
interface-number ]
[
|
{
begin
|
include
|
exclude }
string ]
Display current
type-specific ports
display port
{
hybrid
|
trunk
|
combo
|
vlan-vpn
}
Clear the statistics of the
port
reset counters interface
[
interface-type | interface-type
interface-number
]
After 802.1X is enabled,
the port information
cannot be reset.
Summary of Contents for 4200G 12-Port
Page 10: ...8 CONTENTS...
Page 14: ...4 ABOUT THIS GUIDE...
Page 46: ...32 CHAPTER 5 LOGGING IN THROUGH WEB BASED NETWORK MANAGEMENT SYSTEM...
Page 48: ...34 CHAPTER 6 LOGGING IN THROUGH NMS...
Page 60: ...46 CHAPTER 9 VLAN CONFIGURATION...
Page 64: ...50 CHAPTER 10 MANAGEMENT VLAN CONFIGURATION...
Page 80: ...66 CHAPTER 13 GVRP CONFIGURATION...
Page 98: ...84 CHAPTER 15 LINK AGGREGATION CONFIGURATION...
Page 112: ...98 CHAPTER 18 MAC ADDRESS TABLE MANAGEMENT...
Page 126: ...112 CHAPTER 19 LOGGING IN THROUGH TELNET...
Page 162: ...148 CHAPTER 20 MSTP CONFIGURATION...
Page 274: ...260 CHAPTER 29 IGMP SNOOPING CONFIGURATION...
Page 276: ...262 CHAPTER 30 ROUTING PORT JOIN TO MULTICAST GROUP CONFIGURATION...
Page 298: ...284 CHAPTER 33 SNMP CONFIGURATION...
Page 304: ...290 CHAPTER 34 RMON CONFIGURATION...
Page 338: ...324 CHAPTER 36 SSH TERMINAL SERVICES...
Page 356: ...342 CHAPTER 38 FTP AND TFTP CONFIGURATION...
Page 365: ...Information Center Configuration Example 351 S4200G terminal logging...
Page 366: ...352 CHAPTER 39 INFORMATION CENTER...
Page 378: ...364 CHAPTER 40 BOOTROM AND HOST SOFTWARE LOADING...
Page 384: ...370 CHAPTER 41 Basic System Configuration and Debugging...
Page 388: ...374 CHAPTER 43 NETWORK CONNECTIVITY TEST...
Page 406: ...392 CHAPTER 45 CONFIGURATION OF NEWLY ADDED CLUSTER FUNCTIONS...