03-Interface Command

Table of Contents

Chapter 1 Interface Management Commands. 1-1

1.1 Interface Management Commands. 1-1

1.1.1 check-tx-fault 1-1

1.1.2 debugging physical 1-1

1.1.3 debugging physical permit-rule. 1-2

1.1.4 debugging physical deny-rule. 1-3

1.1.5 debugging physical index. 1-4

1.1.6 debugging physical rule-all 1-5

1.1.7 undo debugging physical rule-all 1-6

1.1.8 description. 1-6

1.1.9 display brief interface. 1-7

1.1.10 display interface. 1-8

1.1.11 display status interface. 1-10

1.1.12 enable snmp trap updown. 1-12

1.1.13 interface. 1-12

1.1.14 looptest 1-14

1.1.15 reset counters interface. 1-16

1.1.16 restart 1-16

1.1.17 shutdown. 1-17

Chapter 2 Fundamental Ethernet Interface Configuration Commands. 2-1

2.1 Fundamental Ethernet Interface Configuration Commands. 2-1

2.1.1 display interface { ethernet | gigabitethernet } 2-1

2.1.2 display mirror-info. 2-4

2.1.3 duplex. 2-5

2.1.4 flow-control 2-6

2.1.5 force-link. 2-7

2.1.6 loopback (Ethernet/GE Interface) 2-7

2.1.7 mirror 2-8

2.1.8 mtu (Ethernet/GE Interface) 2-9

2.1.9 promiscuous. 2-10

2.1.10 speed. 2-11

Chapter 3 Layer 2 Ethernet Port Configuration Commands. 3-1

3.1 Layer 2 Ethernet Port Configuration Commands. 3-1

3.1.1 broadcast-suppression. 3-1

3.1.2 description. 3-1

3.1.3 display interface. 3-2

3.1.4 display port 3-4

3.1.5 dot1q { enable | disable } 3-5

3.1.6 dot1q vlan-range. 3-5

3.1.7 duplex. 3-6

3.1.8 flow-control 3-7

3.1.9 interface. 3-8

3.1.10 mac-address timer aging. 3-8

3.1.11 loopback. 3-9

3.1.12 port access vlan. 3-9

3.1.13 port hybrid pvid vlan. 3-10

3.1.14 port hybrid vlan. 3-10

3.1.15 port link-type. 3-11

3.1.16 port trunk permit vlan. 3-12

3.1.17 port trunk pvid vlan. 3-13

3.1.18 reset counters interface. 3-13

3.1.19 shutdown. 3-14

3.1.20 speed. 3-14

3.1.21 display mac-address. 3-15

3.1.22 mac-address. 3-16

3.2 Port Mirroring Configuration Commands. 3-17

3.2.1 display mirror 3-17

3.2.2 mirroring-port 3-18

3.2.3 monitor-port 3-18

Chapter 4 Fundamental WAN Interface Configuration Commands. 4-1

4.1 Fundamental Serial Interface Configuration Commands. 4-1

4.1.1 async mode. 4-1

4.1.2 baudrate. 4-2

4.1.3 clock (Serial Interface) 4-3

4.1.4 code nrzi 4-4

4.1.5 country-code. 4-5

4.1.6 detect 4-6

4.1.7 idle-mark. 4-7

4.1.8 eliminate-pulse. 4-7

4.1.9 framefill none. 4-8

4.1.10 invert receive-clock. 4-9

4.1.11 invert transmit-clock. 4-9

4.1.12 loopback. 4-10

4.1.13 modem adapt no-waiting-connect 4-11

4.1.14 modem adapt waiting-cdup-timer 4-11

4.1.15 mtu (Serial Interface) 4-13

4.1.16 physical-mode. 4-13

4.1.17 phy-mru. 4-14

4.1.18 pulse-hold. 4-14

4.1.19 restart-latency. 4-15

4.1.20 reverse-rts. 4-16

4.1.21 virtualbaudrate. 4-16

4.2 Fundamental CE1/PRI Interface Configuration Commands. 4-18

4.2.1 cable. 4-18

4.2.2 channel-set (CE1/PRI Interface) 4-18

4.2.3 clock (CE1/PRI Interface) 4-19

4.2.4 code (CEI/PRI Interface) 4-20

4.2.5 controller e1. 4-21

4.2.6 crc. 4-21

4.2.7 detect-ais (CE1/PRI Interface) 4-22

4.2.8 display controller e1. 4-22

4.2.9 error-diffusion restraint config. 4-24

4.2.10 error-diffusion restraint enable. 4-25

4.2.11 frame-format (CE1/PRI Interface) 4-25

4.2.12 idlecode (in CE1/PRI Interface View) 4-26

4.2.13 isdn ie passthrough. 4-27

4.2.14 itf (CE1/PRI Interface) 4-28

4.2.15 loopback (CE1/PRI Interface) 4-29

4.2.16 pri-set (CE1/PRI Interface) 4-30

4.2.17 reset counters controller e1. 4-31

4.2.18 using (CE1/PRI Interface) 4-32

4.3 Fundamental CT1/PRI Interface Configuration Commands. 4-32

4.3.1 alarm-threshold. 4-32

4.3.2 bert (CT1/PRI Interface) 4-34

4.3.3 cable (CT1/PRI Interface) 4-34

4.3.4 channel-set (CT1/PRI Interface) 4-35

4.3.5 clock (CT1/PRI Interface) 4-36

4.3.6 code (CT1/PRI Interface) 4-37

4.3.7 controller t1. 4-37

4.3.8 crc. 4-38

4.3.9 data-coding (CT1/PRI Interface) 4-39

4.3.10 display controller t1. 4-39

4.3.11 fdl 4-44

4.3.12 frame-format (CT1/PRI Interface) 4-44

4.3.13 idlecode (in CT1/PRI interface view) 4-45

4.3.14 isdn ie passthrough. 4-45

4.3.15 itf (CT1/PRI Interface) 4-47

4.3.16 loopback (CT1/PRI Interface) 4-48

4.3.17 pri-set (CT1/PRI Interface) 4-49

4.3.18 reset counters controller t1. 4-50

4.3.19 sendloopcode. 4-50

4.4 E1-F Interface Configuration Commands. 4-52

4.4.1 display fe1 serial 4-52

4.4.2 fe1 clock. 4-53

4.4.3 fe1 code. 4-53

4.4.4 fe1 detect-ais (E1-F Interface) 4-54

4.4.5 fe1 frame-format 4-55

4.4.6 fe1 loopback. 4-55

4.4.7 fe1 timeslot-list 4-56

4.4.8 fe1 unframed. 4-57

4.5 T1-F Interface Configuration Commands. 4-57

4.5.1 display ft1 serial 4-57

4.5.2 ft1 bert (T1-F Interface) 4-61

4.5.3 ft1 cable. 4-62

4.5.4 ft1 clock. 4-63

4.5.5 ft1 code. 4-64

4.5.6 ft1 data-coding. 4-64

4.5.7 ft1 fdl 4-65

4.5.8 ft1 loopback. 4-66

4.5.9 ft1 timeslot-list 4-66

4.5.10 ft1 alarm-threshold. 4-67

4.5.11 ft1 sendloopcode. 4-69

4.6 Fundamental CE3 Interface Configuration Commands. 4-70

4.6.1 bert 4-70

4.6.2 clock (CE3 Interface) 4-71

4.6.3 controller e3. 4-72

4.6.4 crc. 4-72

4.6.5 display controller e3. 4-73

4.6.6 e1 bert 4-77

4.6.7 e1 channel-set 4-78

4.6.8 e1 set clock. 4-79

4.6.9 e1 set frame-format 4-80

4.6.10 e1 set loopback. 4-81

4.6.11 e1 shutdown. 4-81

4.6.12 e1 unframed. 4-82

4.6.13 loopback (CE3 Interface) 4-83

4.6.14 national-bit 4-83

4.6.15 using (CE3 Interface) 4-84

4.7 Fundamental CT3 Interface Configuration Commands. 4-85

4.7.1 alarm (CT3 Interface) 4-85

4.7.2 bert (CT3 Interface) 4-86

4.7.3 cable (CT3 Interface) 4-87

4.7.4 clock (CT3 Interface) 4-88

4.7.5 controller t3. 4-88

4.7.6 crc. 4-89

4.7.7 feac (CT3 Interface) 4-90

4.7.8 frame-format (CT3 Interface) 4-91

4.7.9 ft3 (CT3 Interface) 4-92

4.7.10 loopback (CT3 Interface) 4-93

4.7.11 mdl (CT3 Interface) 4-94

4.7.12 t1 alarm.. 4-96

4.7.13 t1 bert 4-97

4.7.14 t1 channel-set 4-98

4.7.15 t1 sendloopcode. 4-99

4.7.16 t1 set clock. 4-100

4.7.17 t1 set frame-format 4-101

4.7.18 t1 set loopback. 4-102

4.7.19 t1 set fdl 4-102

4.7.20 t1 show. 4-103

4.7.21 t1 shutdown. 4-105

4.7.22 t1 unframed. 4-105

4.7.23 using (CT3 Interface) 4-106

4.7.24 display controller t3. 4-107

4.8 ISDN BRI Interface Configuration Commands. 4-111

4.8.1 display interface bri 4-111

4.8.2 isdn link-mode p2p. 4-112

4.8.3 loopback (ISDN BRI Interface) 4-112

4.9 CPOS Interface Configuration Commands. 4-113

4.9.1 clock. 4-113

4.9.2 controller cpos. 4-114

4.9.3 display controller cpos. 4-114

4.9.4 display controller cpos e1. 4-117

4.9.5 display controller cpos t1. 4-118

4.9.6 e1 channel-set 4-120

4.9.7 e1 set clock. 4-121

4.9.8 e1 set frame-format 4-122

4.9.9 e1 set loopback. 4-123

4.9.10 e1 shutdown. 4-124

4.9.11 e1 unframed. 4-125

4.9.12 flag. 4-125

4.9.13 frame-format 4-126

4.9.14 loopback. 4-127

4.9.15 multiplex mode. 4-128

4.9.16 shutdown. 4-128

4.9.17 t1 channel-set 4-129

4.9.18 t1 set clock. 4-130

4.9.19 t1 set frame-format 4-131

4.9.20 t1 set loopback. 4-132

4.9.21 t1 shutdown. 4-133

4.9.22 t1 unframed. 4-133

4.10 POS Interface Configuration Commands. 4-134

4.10.1 clock. 4-134

4.10.2 crc. 4-135

4.10.3 display interface pos. 4-135

4.10.4 flag. 4-136

4.10.5 frame-format 4-137

4.10.6 link-protocol 4-137

4.10.7 loopback. 4-138

4.10.8 mtu (POS Interface) 4-139

4.10.9 scramble. 4-139

Chapter 5 ATM/DSL Interface Configuration Commands. 5-1

5.1 ATM/DSL Interface Commands (Public) 5-1

5.1.1 display interface atm.. 5-1

5.1.2 interface atm.. 5-3

5.1.3 mtu (ATM Interface) 5-3

5.1.4 reset atm.. 5-4

5.2 IMA-E1/T1 Interface Configuration Commands. 5-5

5.2.1 cable. 5-5

5.2.2 clock. 5-5

5.2.3 differential-delay. 5-6

5.2.4 display interface ima-group. 5-7

5.2.5 display status interface ima-group. 5-10

5.2.6 frame-format 5-12

5.2.7 frame-length. 5-13

5.2.8 ima ima-group. 5-14

5.2.9 ima-clock. 5-14

5.2.10 ima-test 5-15

5.2.11 interface ima. 5-16

5.2.12 loopback. 5-16

5.2.13 min-active-links. 5-17

5.2.14 scramble. 5-18

5.3 ATM E3/T3 Interface Configuration Commands. 5-18

5.3.1 cable. 5-18

5.3.2 clock. 5-19

5.3.3 frame-format 5-20

5.3.4 loopback. 5-20

5.3.5 scramble. 5-21

5.4 ATM 25M Interface Configuration Commands. 5-22

5.4.1 clock. 5-22

5.4.2 loopback. 5-22

5.5 ATM OC-3c/STM-1 Interface Configuration Commands. 5-23

5.5.1 clock. 5-23

5.5.2 frame-format 5-24

5.5.3 loopback. 5-24

5.5.4 scramble. 5-25

5.6 G.SHDSL Interface Configuration Commands. 5-26

5.6.1 activate. 5-26

5.6.2 dsl link-check. 5-27

5.6.3 shdsl annex. 5-27

5.6.4 shdsl psd. 5-28

5.6.5 shdsl rate. 5-29

5.6.6 shdsl snr-margin. 5-30

5.6.7 shdsl wire. 5-31

5.6.8 display dsl configuration. 5-32

5.6.9 display dsl status. 5-33

5.6.10 display dsl version. 5-37

5.6.11 shdsl mode. 5-39

5.7 ADSL Interface Configuration Commands. 5-39

5.7.1 activate. 5-39

5.7.2 adsl profile. 5-40

5.7.3 adsl standard. 5-41

5.7.4 adsl tx_attenuation. 5-43

5.7.5 display dsl configuration. 5-44

5.7.6 display dsl status. 5-45

5.7.7 display dsl version. 5-46

5.7.8 dsl link-check. 5-48

5.7.9 upgrade flash. 5-49

Chapter 6 Fundamental Logical Interface Configuration Commands. 6-1

6.1 WAN Subinterface Configuration Commands. 6-1

6.1.1 interface. 6-1

6.2 Ethernet Subinterface Configuration Commands. 6-2

6.2.1 display vlan. 6-2

6.2.2 display vlan interface. 6-3

6.2.3 display vlan max-packet-process. 6-3

6.2.4 display vlan statistics vid. 6-4

6.2.5 interface ethernet 6-4

6.2.6 max-packet-process. 6-5

6.2.7 reset vlan statistics vid. 6-6

6.2.8 vlan-type dot1q. 6-6

6.3 Logical Channel Interface. 6-7

6.3.1 interface logic-channel 6-7

6.4 Configuration Commands of Virtual Template and Virtual Access Interface. 6-7

6.4.1 broadcast-limit link. 6-7

6.4.2 display interface virtual-template. 6-8

6.4.3 display virtual-access. 6-9

6.4.4 interface virtual-template. 6-10

6.5 MP-Group Interface Configuration Commands. 6-10

6.5.1 display interface mp-group. 6-10

6.5.2 interface mp-group. 6-11

6.6 Virtual Ethernet Interface Configuration Commands. 6-12

6.6.1 display interface virtual-ethernet 6-12

6.6.2 interface virtual-ethernet 6-12

6.6.3 mac-address. 6-13

6.7 Configuration Command of Loopback Interface and Null Interface. 6-13

6.7.1 display interface loopback. 6-13

6.7.2 display interface null 6-14

6.7.3 interface loopback. 6-15

6.7.4 interface null 6-15

Chapter 7 OSM Configuration Commands. 7-1

7.1 OSM Configuration Commands. 7-1

7.1.1 osm connect slot 7-1

7.1.2 osm reboot slot 7-1

 


Chapter 1  Interface Management Commands

1.1  Interface Management Commands

1.1.1  check-tx-fault

Syntax

check-tx-fault

undo check-tx-fault

View

GE interface view, POS interface view, CPOS interface view

Parameter

None

Description

Use the check-tx-fault command to enable the interface to check tx-fault signals.

Use the undo check-tx-fault command to disable the interface from checking tx-fault signals.

By default, an interface does not check tx-fault signals.

As some optical modules may send tx-fault signals by mistake, you are recommended to disable the check function.

Example

# Configure GigabitEthernet 1/0/0 to check tx-fault signals.

<H3C> system-view

[H3C] interface gigabitethernet 1/0/0

[H3C-GigabitEthernet1/0/0] check-tx-fault

1.1.2  debugging physical

Syntax

debugging physical { all | error | event | packet } [ interface interface-type interface-number ]

undo debugging physical { all | error | event | packet } [ interface interface-type interface-number ]

View

User view

Parameter

all: Enables all debugging.

error: Enables error debugging.

event: Enables event debugging.

packet: Enables packet debugging.

interface interface-type interface-number: Specifies an interface by its type and number.

Description

Use the debugging physical command to enable debugging of the physical module on the specified interface.

Use the undo debugging physical command to disable debugging on the specified interface.

Example

# Enable event output for the physical module of T1 interface.

<H3C> debugging physical event

*0.98233210 H3C PHYD/8/debugging: (T1 1/0/0)PHY/EVT:  Loss of signal. /*

// Display LOS information when no cable is connected and display Recovery of signal when a cable is present.

*0.98233300 H3C PHYD/8/debugging: (T1 1/0/0)PHY/EVT:  Loss of frame alignment./*

// Display LOF information when frame alignment is lost, and display Recovery of frame alignment when frame alignment is achieved.

*0.98233400 H3C PHYD/8/debugging:(T1 1/0/0)PHY/EVT:  No AIS.   /*

// Display whether AIS signals have been received.

*0.98233480 H3C PHYD/8/debugging: (T1 1/0/0)PHY/EVT:  No remote alarm. /*

// Display whether RAI signals have been received.

Note that the information that the error and event debugging switches output varies by interface type.

1.1.3  debugging physical permit-rule

Syntax

debugging physical permit-rule begin-offset match-hex [ debug-length ]

undo debugging physical permit-rule begin-offset match-hex [ debug-length ]

View

User view

Parameters

begin-offset: Position (in bits) from which the match operation begins. It ranges from 0 to 3100 in steps of four bits (a hexadecimal number).

match-hex: Hexadecimal match string. The asterisk (*) is accepted as the wildcard to match any number.

debug-length: Limit on output bytes, in the range of 1 to 1700. The default is 64 bytes.

Description

Use the debugging physical permit-rule command to configure a permit rule. Using the command in conjunction with the debugging physical packet command, you can display only the debug output that matches the rule.

Use the undo debugging physical permit-rule command to remove the permit rule.

You can configure up to eight debug output filtering permit rules.

 

&  Note:

l      Alternatively, you can create permit rules with the debugging physical index command.

l      The rules created with the debugging physical permit-rule command are automatically numbered. You can remove them with the undo debugging physical index command.

 

Examples

# Output the debug information matching ff03, starting from the zero bit. The limit on the debug information output length is 80 bytes.

<H3C> debugging physical permit-rule 0 ff03 80

1.1.4  debugging physical deny-rule

Syntax

debugging physical deny-rule begin-offset match-hex

undo debugging physical deny-rule begin-offset match-hex

View

User view

Parameters

begin-offset: Position from which the match operation begins. It ranges from 0 to 3100 in steps of four bits (a hexadecimal number).

match-hex: Hexadecimal match string. The asterisk (*) is accepted as the wildcard to match any number.

Description

Use the debugging physical deny-rule command to configure a deny rule for information filtering. Using the command in conjunction with the debugging physical packet command, you can filter out the debug output that matches the rule.

Use the undo debugging physical deny-rule command to remove the deny rule.

You can configure up to eight debug output filtering deny rules.

 

&  Note:

l      Alternatively, you can create deny rules with the debugging physical index command.

l      The rules created with the debugging physical deny-rule command are automatically numbered. You can remove them with the undo debugging physical index command.

 

Examples

# Configure a deny rule to filter out the debugging information matching ff03, starting from the zero bit.

<H3C> debugging physical deny-rule 0 ff03

1.1.5  debugging physical index

Syntax

debugging physical index begin-offset match-hex [ debug-length ]

undo debugging physical index

View

User view

Parameters

index: Rule index, in the range of 0 to 15. Indexes 0 through 7 are permit rules, and indexes 8 through 15 are deny rules.

begin-offset: Position from which the match operation begins. It ranges from 0 to 3100 in steps of four bits (a hexadecimal number).

match-hex: Hexadecimal match string. The asterisk (*) is accepted as the wildcard to match any number.

debug-length: Limit on output bytes, in the range of 1 to 1700. The default is 64 bytes.

Description

Use the debugging physical index command to configure an information filtering rule. Using the command in conjunction with the debugging physical packet command, you can filter the debug output that matches the rule.

Use the undo debugging physical index command to remove a debug output filtering rule.

You can configure up to 16 rules.

 

&  Note: