H3C S9500 Series Routing Switches Command Manual-(V1.01)

HomeSupportSwitchesH3C S9500 Series SwitchesReference GuidesCommand ReferencesH3C S9500 Series Routing Switches Command Manual-(V1.01)
02-Port Command
Title Size Download
02-Port Command 318 KB

Table of Contents

Chapter 1 Ethernet Port Configuration Commands. 1-1

1.1 Ethernet Port Configuration Commands. 1-1

1.1.1 broadcast-suppression. 1-1

1.1.2 copy configuration. 1-2

1.1.3 description. 1-3

1.1.4 display counters. 1-4

1.1.5 display interface. 1-5

1.1.6 display jumboframe configuration. 1-8

1.1.7 display port 1-8

1.1.8 duplex. 1-9

1.1.9 flow-control 1-10

1.1.10 link-status hold. 1-10

1.1.11 interface. 1-11

1.1.12 jumboframe enable. 1-12

1.1.13 loopback. 1-13

1.1.14 mdi 1-13

1.1.15 multicast-suppression. 1-14

1.1.16 port access vlan. 1-15

1.1.17 port hybrid pvid vlan. 1-16

1.1.18 port hybrid vlan. 1-17

1.1.19 port link-type. 1-18

1.1.20 port-mode. 1-18

1.1.21 port trunk permit vlan. 1-19

1.1.22 port trunk pvid vlan. 1-20

1.1.23 reset counters interface. 1-21

1.1.24 shutdown. 1-21

1.1.25 speed. 1-22

1.1.26 vlan-vpn enable. 1-23

Chapter 2 Ethernet Link Aggregation Configuration Commands. 2-1

2.1 Ethernet Link Aggregation Configuration Commands. 2-1

2.1.1 debugging lacp packet 2-1

2.1.2 debugging lacp state. 2-2

2.1.3 debugging link-aggregation error 2-2

2.1.4 debugging link-aggregation event 2-3

2.1.5 display lacp system-id. 2-4

2.1.6 display link-aggregation summary. 2-4

2.1.7 display link-aggregation verbose. 2-5

2.1.8 display link-aggregation interface. 2-7

2.1.9 lacp enable. 2-8

2.1.10 lacp port-priority. 2-9

2.1.11 lacp system-priority. 2-10

2.1.12 link-aggregation. 2-10

2.1.13 link-aggregation group agg-id description. 2-11

2.1.14 link-aggregation group agg-id mode. 2-12

2.1.15 port link-aggregation group. 2-13

2.1.16 reset lacp statistics. 2-13

Chapter 3 POS Port Configuration Commands. 3-1

3.1 POS Port Configuration Commands. 3-1

3.1.1 clock. 3-1

3.1.2 crc. 3-1

3.1.3 description. 3-2

3.1.4 display interface pos. 3-3

3.1.5 debugging ppp. 3-5

3.1.6 flag. 3-6

3.1.7 frame-format 3-8

3.1.8 interface pos. 3-8

3.1.9 loopback. 3-9

3.1.10 mtu. 3-10

3.1.11 pos access vlan. 3-10

3.1.12 ppp timer negotiate. 3-11

3.1.13 reset counters interface pos. 3-12

3.1.14 scramble. 3-12

3.1.15 shutdown. 3-13

3.1.16 threshold. 3-13

3.1.17 timer hold. 3-14

Chapter 4 RPR Port Configuration Commands. 4-1

4.1 RPR Port Configuration Commands. 4-1

4.1.1 clock-source. 4-1

4.1.2 debugging rpr 4-1

4.1.3 display interface. 4-2

4.1.4 display rpr defect 4-6

4.1.5 display rpr fairness. 4-7

4.1.6 display rpr protection. 4-9

4.1.7 display rpr rs-table. 4-11

4.1.8 display rpr statistics. 4-12

4.1.9 display rpr timers. 4-12

4.1.10 display rpr topology. 4-13

4.1.11 flag. 4-15

4.1.12 frame-format 4-16

4.1.13 port-type. 4-16

4.1.14 reset counters interface. 4-17

4.1.15 rpr admin-request 4-17

4.1.16 rpr echo. 4-18

4.1.17 rpr default-rs. 4-19

4.1.18 rpr cos-precedence-map. 4-20

4.1.19 rpr protect-mode. 4-21

4.1.20 rpr rate-limit 4-21

4.1.21 rpr reversion-mode. 4-22

4.1.22 rpr static-rs. 4-23

4.1.23 rpr station-name. 4-24

4.1.24 rpr timer 4-24

4.1.25 rpr weight 4-25

4.1.26 sdh threshold. 4-26

4.1.27 shutdown. 4-27

Chapter 5 IDS Linkage Configuration Commands. 5-1

5.1 IDS Linkage Configuration Commands. 5-1

5.1.1 ids-acl 5-1

5.1.2 display ids. 5-1

5.1.3 debugging ids-acl 5-2

Chapter 6 Port Isolation Configuration Commands. 6-1

6.1 Port Isolation Configuration Commands. 6-1

6.1.1 port-isolate group. 6-1

6.1.2 port-isolate uplink-port group. 6-1

6.1.3 port-isolate group. 6-2

6.1.4 display port-isolate group. 6-3

Chapter 7 Port Packet Statistics Commands. 7-1

7.1 Port Packet Statistics Commands. 7-1

7.1.1 set egress. 7-1

7.1.2 display egress counter 7-2

 


Chapter 1  Ethernet Port Configuration Commands

1.1  Ethernet Port Configuration Commands

1.1.1  broadcast-suppression

Syntax

broadcast-suppression { ratio | bandwidth bandwidth }

undo broadcast-suppression

View

Ethernet port view

Parameter

ratio: Specifies the maximum wire speed ratio of the broadcast traffic allowed on the port. The value range is 1 to 100, and the default value is 50. The smaller the ratio is, the smaller the broadcast traffic is allowed.

bandwidth: Specifies broadcast suppression bandwidth on the port. The value range is 1 to the maximum value of port bandwidth.

Description

Use the broadcast-suppression command to set the broadcast suppression ratio or broadcast suppression bandwidth.

Use the undo broadcast-suppression command to disable the broadcast suppression function.

The default broadcast suppression ratio is 50%.

You can use the broadcast-suppression command repeatedly. The effective broadcast suppression ratio value is the one last updated.

 

  Caution:

l      You cannot enable both broadcast suppression and multicast suppression simultaneously on the same card. Namely, once you have enabled broadcast suppression on some ports of a card, you cannot enable multicast suppression on the other ports of the card, and vice versa.

l      If multicast suppression is enabled, broadcast packets are also suppressed at the same time, while broadcast suppression does not work on multicast packets.

l      No distinction is made between known multicast and unknown multicast for multicast suppression.

 

Related command: multicast-suppression.

Example

# Set the broadcast suppression ratio to 40.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] broadcast-suppression 40

# Set the broadcast suppression bandwidth to 40Mbit.

[H3C-Ethernet2/1/1] broadcast-suppression bandwidth 40

# Disable broadcast suppression.

[H3C-Ethernet2/1/1] undo broadcast-suppression

1.1.2  copy configuration

Syntax

copy configuration source { interface-type interface-number | interface-name | aggregation-group agg-id } destination { interface-list [ aggregation-group agg-id ] | aggregation-group agg-id }

View

System view

Parameter

interface-type: Source port type.

interface-number: Source port number.

interface-list: Destination port list, interface-list = interface-type interface-number [ to interface-type interface-number ] &<1-10>. &<1-10> indicates that the former parameter can be input 10 times repeatedly at most.

agg-id: Source or destination aggregation group ID. If it is a source aggregation group, the port with minimum port number is the source port; if it is a destination aggregation group, the configurations of all its member ports change to be consistent with that of the source.

Description

Use the copy configuration command to copy the configuration of a specific port to other ports, to ensure consistent configuration.

Example

# Copy the configuration of aggregation group 1 to aggregation group 2.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] copy configuration source aggregation-group 1 destination aggregation-group 2

1.1.3  description

Syntax

description text

undo description

View

Ethernet port view

Parameter

text: Port description character string, with 64 characters at most.

Description

Use the description command to configure the description character string for Ethernet port.

Use the undo description command to cancel the port description character string.

By default, the port description character string is null.

Example

# Configure the description character string of Ethernet port Ethernet2/1/1 as lanswitch-interface.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] description lanswitch-interface

1.1.4  display counters

Syntax

display counters [ rate ] { inbound | outbound } interface [ interface-type ]

View

Any view

Parameter

rate: Displays the rate information of the ports in the Up state during the latest sampling period. If this keyword is not specified in the command, the system displays packet counts.

inbound: Displays the import statistic information.

outbound: Displays the export statistic information.

interface-type: Specifies the port type. Three types are available: Ethernet, Gigabit Ethernet, POS, and RPR.

Description

Use the display counters command to view the statistics on the ports of the specified types. If the port type is not specified, the system displays statistics orderly on all the ports.

Example

# Display the inbound statistics on the GigabitEthernet ports.

<H3C> display counters inbound interface GigabitEthernet

Interface          Total(pkts)    BroadCast(pkts)    MultiCast(pkts) Err(pkts)

GE3/2/1   12,345,678,912,345           OverFlow 12,345,678,912,345 1,234,567

GE3/2/2                      0                  0                  0                 0

GE3/2/3                      0                  0                  0                 0

GE3/2/4                      0                  0                  0                 0

 OverFlow :more than 14 decimal digits(7 digits for column "Err").

:not supported.

 

&  Note:

Statistic values are comma-separated decimal numbers. For the Total, BroadCast and MultiCast items, decimal numbers of 14 digits can be displayed at most, and those of more than 14 digits are indicated with “OverFlow”; for the Err item, decimal numbers of 7 digits can be displayed at most, and those of more than 7 digits are indicated with “OverFlow”.

 

1.1.5  display interface

Syntax

display interface [ interface-type | interface-type interface-number [ packets] ]

View

Any view

Parameter

interface-type: Specifies the port type.

interface-number: Specifies the port number.

For parameter description, refer to the interface command.

Description

Use the display interface command to view the configuration information on the port.

If the port type and number are not specified when displaying the port information, the information of all the ports will be displayed. If only the port type is specified, all the information of the ports of this type will be displayed. If both port type and port number are specified, the information of the designated port will be displayed.

Example

# Display configuration information of Ethernet2/1/1.

<H3C> display interface ehernet2/1/1

Ethernet2/1/1 current state : DOWN

 IP Sending Frames' Format is PKTFMT_ETHNT_2, Hardware address is 00e0-fc39-ab03

 The Maximum Transmit Unit is 1500

 Media type is twisted pair, loopback not set

 Port hardware type is 100_BASE_TX

 Unknown-speed mode, unknown-duplex mode

 Link speed type is autonegotiation, link duplex type is autonegotiation

 Flow-control is not enabled

 The Maximum Frame Length is 1552

 Broadcast MAX-value: 60M

 Allow jumbo frame to pass

 PVID: 1

 Mdi type: auto

 Link-status hold interval:3 Sec

 Port link-type: access

  Tagged   VLAN ID : none

  Untagged VLAN ID : 1

 Last 300 seconds input:  0 packets/sec 0 bits/sec     0%

 Last 300 seconds output:  0 packets/sec 0 bits/sec     0%

 Input(total):  0 packets, 0 bytes

          0 broadcasts, 0 multicasts

 Input(normal):  0 packets, 0 bytes

          - broadcasts, - multicasts

 Input:  0 input errors, 0 runts, 0 giants,  0 throttles, 0 CRC

          0 frame,  0 overruns, - aborts, 0 ignored, - parity errors

 Output(total): 0 packets, 0 bytes

          0 broadcasts, 0 multicasts, 0 pauses

 Output(normal): 0 packets, 0 bytes

          - broadcasts, - multicasts, 0 pauses

 Output: 0 output errors,  - underruns, - buffer failures

          0 aborts, 0 deferred, - collisions, 0 late collisions

          - lost carrier, - no carrier

 Receive Packet Peak Value Info: 0 bytes, happened at 14:46:55 8-29-2005

 Transmit Packet Peak Value Info: 0 bytes, happened at 14:46:55 8-29-2005

Table 1-1 Description on the fields of the display interface command

Field

Description

Ethernet2/1/1 current state

The current status of Ethernet port (enabled or disabled)

IP Sending Frames' Format

Ethernet frame format

Hardware address

Port hardware address

The Maximum Transmit Unit

Maximum transmit unit

Media type

Type of media

loopback not set

Port loopback test status

Port hardware type

Port hardware type

100 Mbps-speed mode, full-duplex mode

Link speed type is autonegotiation, link duplex type is autonegotiation

Both the duplex mode and the rate are set to auto-negotiation. The rate of 100 Mbps and the mode of full-duplex are adopted after negotiating with its peer

Flow-control is not enabled

Port flow control status

The Maximum Frame Length

Maximum length of the Ethernet frames that can pass the port

Broadcast MAX-ratio

Port broadcast storm suppression ratio

Allow jumbo frame to pass

Jumbo frame is allowed to pass the port

Port VPN status

Port VPN status (enable or not VPN access)

PVID

Port default VLAN ID

Mdi type

Cable type

Port link-type

Port link type

Tagged   VLAN ID

The VLANs with packets tagged

Untagged VLAN ID

The VLANs with packets untagged

Last 300 seconds input:  0 packets/sec 0 bits/sec

Last 300 seconds output:  0 packets/sec 0 bits/sec

The input/output rate and the passing packet number on this port in the last 300 seconds.

Input(total):  0 packets, 0 bytes

         0 broadcasts, 0 multicasts

 Input(normal):  0 packets, 0 bytes

         - broadcasts, - multicasts

 Input:  0 input errors, 0 runts, 0 giants,  0 throttles, 0 CRC

         0 frame,  0 overruns, - aborts, 0 ignored, - parity errors

 Output(total): 0 packets, 0 bytes

         0 broadcasts, 0 multicasts, 0 pauses

 Output(normal): 0 packets, 0 bytes

         - broadcasts, - multicasts, 0 pauses

 Output: 0 output errors,  - underruns, - buffer failures

         0 aborts, 0 deferred, - collisions, 0 late collisions

         - lost carrier, - no carrier

The statistics information of input/output packets and errors on this port. “-” indicates that the item doesn’t supported by the switch.

 

1.1.6  display jumboframe configuration

Syntax

display jumboframe configuration

View

Any view

Parameter

None

Description

Use the display jumboframe configuration command to view the Jumbo frame configuration on all cards. The supported Jumbo frame length ranges, as well as the default values, may vary from card to card.

Example

# Display the current Jumboframe configuration in the system.

<H3C>system-view 

[H3C] display jumboframe configuration

The jumboframe configuration at present:

Slot 2:

 Allow jumbo frame to pass

 The Maximum Frame Length is 1552 

1.1.7  display port

Syntax

display port { hybrid | trunk }

View

Any view

Parameter

hybrid: Displays Hybrid port.

trunk: Displays Trunk port.

Description

Use the display port command to view the ports in the current system, whose link type is Hybrid or Trunk. If there is any such port, display the corresponding port name.

Example

# Display the Hybrid ports in the current system.

<H3C> display port hybrid

The following hybrid ports exist:

  Ethernet2/1/1          Ethernet2/1/2

The above information displays that the current system has two Hybrid ports, Ethernet2/1/1 and Ethernet2/1/2.

1.1.8  duplex

Syntax

duplex { auto | full | half }

undo duplex

View

Ethernet port view

Parameter

auto: Port auto-negotiation attribute.

full: Port full-duplex attribute.

half: Port half-duplex attribute.

Description

Use the duplex command to configure the duplex attribute of the Ethernet port.

Use the undo duplex command to restore the duplex attribute of the port to default auto-negotiation mode.

By default, the duplex attribute is auto.

Related command: speed.

Example

# Configure the Ethernet port Ethernet2/1/1 as auto-negotiation attribute.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] duplex auto

1.1.9  flow-control

Syntax

flow-control

undo flow-control

View

Ethernet port view

Parameter

None

Description

Use the flow-control command to enable flow control feature on the Ethernet port to avoid discarding data packets due to congestion.

Use the undo flow-control command to disable flow control feature.

By default, flow control on the Ethernet port is disabled.

Example

# Enable flow control on Ethernet2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] flow-control

1.1.10  link-status hold

Syntax

link-status hold hold-time

undo link-status hold

View

System view

Parameter

hold-time: Sets time interval (in seconds) for port suppression. The value 0 indicates that port suppression is not enabled. By default, the time interval is 3 seconds.

Description

Use the link-status hold hold-time command to set port hold time. If the Down/Up operation is implemented on ports too frequently, the switch may fail. Therefore, the function is provided to prohibit frequent change of the port status.

Use the undo link-status hold command to restore the default port hold time, 3 seconds.

Related command: display interface.

Example

# Set the port hold time to 5 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] link-status hold 5 

1.1.11  interface

Syntax

interface interface-type interface-number

View

System view

Parameter

interface-type: Specifies the port type. It can be Aux, Ethernet, Loopback, M-Ethernet, NULL, VLAN-interface, GigabitEthernet and 10-GigabitEthernet, Pos, RPR.

interface-number: Specifies the port number. It adopts slot-number/subslot-number/ port-number format. slot-number specifies the LPU slot number of the port. For S9505, it ranges from 2 to 6. For S9508, it ranges from 0 to 3 and 6 to 9 (slot number 4 and 5 are SRPU). For S9512, it ranges from 0 to 5 and 8 to 13 (slot number 6 and 7 are SRPU). subslot-number specifies the sub-slot number of the port and ranges from 1 to 3. port-number specifies the port number on the daughter card. It is 1 or ranges from 1 to 12, 20, or 48, depending on the service board type. M-Ethernet is used to update and maintain. It ranges from 0/0/0.

Description

Use the interface command to enter various types of Ethernet port views.

Before you can configure the related parameters of a type of Ethernet port, you must first use this command to enter the Ethernet port view of this type.

Example

# Enter the Ethernet2/1/1 port view.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

1.1.12  jumboframe enable

Syntax

jumboframe enable [ jumboframe-value ] slot slot-num

jumboframe disable slot slot-num

View

System view

Parameter

slot-num: Specifies the slot number of the card.

jumboframe-value: specifies the maximum size of jumbo frames permitted to pass the card..

Description

Use the jumboframe enable command to permit jumbo frames to pass the card on the specified slot and set the maximum size of Jumbo frames.

Use the jumboframe disable slot command to prohibit jumbo frames from passing the card on the specified slot.

By default, jumbo frame is permitted to pass cards.

Related command: display jumboframe configuration.

 

&  Note:

The system supports discrete values of Jumbo frame lengths ranging from 1536 to 10240. However, effective Jumbo frame values fall into several sections: the effective Jumbo frame value for the 1536-1552 section is 1552, that for the 1552-9022 section is 9022, that for the 9022-9122 section is 9122, and that for the 9122-10240 section is 10240.

 

Example

# Permit jumbo frames to pass the card on slot 6 and set the maximum size of Jumbo frames to 9022 .

<H3C>system-view 

[H3C] jumboframe enable 9022 slot 6

1.1.13  loopback

Syntax

loopback { external | internal }

undo loopback

View

Ethernet port view

Parameter

external: Ethernet port in external loop mode. Presently, the Ethernet ports of the H3C S9500 Series Routing Switches do not support this mode.

internal: Ethernet port in internal loop mode.

Description

Use the loopback command to set the Ethernet port in loop mode.

Use the undo loopback command to cancel the loop setting.

By default, the Ethernet port is not in loop mode.

Example

# Configure Ethernet2/1/1 in internal loop mode.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] loopback internal

1.1.14  mdi

Syntax

mdi { across | auto | normal }

undo mdi

View

Ethernet port view

Parameter

across: Network cable type is cross-over cable.

auto: Network cable will be recognized whether it is straight-through cable or cross-over cable.

normal: Network cable of the port is straight-through cable.

Description

Use the mdi command to configure the network cable type of the Ethernet ports. Use the undo mdi command to restore the default type.

By default, the network cable type will be recognized automatically.

Note that the settings only take effect on the 10/100 Mbps and 10/100/1000 Mbps electrical ports.

Example

# Configure the network cable type of Ethernet port Ethernet2/1/1 as auto.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] mdi auto

1.1.15  multicast-suppression

Syntax

multicast-suppression { ratio | bandwidth bandwidth }

undo multicast-suppression

View

Ethernet port view

Parameter

ratio: Specifies the maximum wire speed ratio of the multicast traffic allowed on the Ethernet port. The value range is 1 to 100, and the default value is 50. The smaller the ratio is, the smaller the multicast traffic is allowed.

bandwidth: Specifies multicast suppression bandwidth on the port. The value range is 1 to the maximum value of port bandwidth.

Description

Use the multicast-suppression command to set the multicast suppression ratio or broadcast suppression bandwidth. 

Use the undo multicast-suppression command to disable the broadcast suppression function.

The default multicast suppression ratio is 100%.

You can use the multicast-suppression command repeatedly. The effective multicast suppression ratio value is the one last updated.

 

  Caution:

l      You cannot enable both multicast suppression and broadcast suppression simultaneously on the same card. Namely, once you have enabled broadcast suppression on some ports of a card, you cannot enable multicast suppression on the other ports of the card, and vice versa. Although the commands are based on ports, the mutual exclusion between these two commands is based on cards.

l      If multicast suppression is enabled, broadcast packets are also suppressed at the same time, while broadcast suppression does not work on multicast packets.

l      No distinction is made between known multicast and unknown multicast for multicast suppression.

 

Related command: broadcast-suppression.

Example

# Set the multicast suppression ratio to 40%.

<H3C>system-view

System View: return to User View with Ctrl+Z.

[H3C]interface Ethernet 2/1/1

[H3C-Ethernet2/1/1] multicast-suppression 40

# Set the multicast suppression bandwidth to 40Mbit.

[H3C-Ethernet2/1/1] multicast-suppression bandwidth 40

# Disable the multicast suppression function.

[H3C-Ethernet2/1/1] undo multicast-suppression

1.1.16  port access vlan

Syntax

port access vlan vlan-id

undo port access vlan

View

Ethernet port view

Parameter

vlan-id: VLAN ID defined in IEEE802.1Q, ranging from 2 to 4094.

Description

Use the port access vlan command to add the access port into a specified VLAN.

Use the undo port access vlan command to cancel the access port from the VLAN.

The condition for using this command is that the VLAN indicated in vlan-id must exist.

Example

# Join Ethernet2/1/1 port to VLAN3 (VLAN3 has existed).

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port access vlan 3

1.1.17  port hybrid pvid vlan

Syntax

port hybrid pvid vlan vlan-id

undo port hybrid pvid

View

Ethernet port view

Parameter

vlan-id: VLAN ID defined in IEEE802.1Q, ranging from 1 to 4094 and the default vlan-id is 1.

Description

Use the port hybrid pvid vlan command to configure the default VLAN ID of the local hybrid port.

Use the undo port hybrid pvid command to restore the default VLAN ID of the local hybrid port.

The default VLAN ID of local hybrid port shall be consistent with that of the peer one, otherwise, the packet cannot be properly transmitted.

Related command: port link-type.

Example

# Configure the default VLAN of the hybrid port Ethernet2/1/1 to 100.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port hybrid pvid vlan 100

1.1.18  port hybrid vlan

Syntax

port hybrid vlan vlan-id-list { tagged | untagged }

undo port hybrid vlan vlan-id-list

View

Ethernet port view

Parameter

vlan-id-list: vlan-id-list = [ vlan-id1 [ to vlan-id2 ] ]&<1-10>: Specifies which VLAN the hybrid port will be added to. It can be discrete. The vlan-id ranges from 1 to 4,094. &<1-10> indicates that the former parameter can be input 10 times repeatedly at most.

tagged: Packet of specified VLAN will have tag.

untagged: Packet of specified VLAN will not have tag.

Description

Use the port hybrid vlan command to join the hybrid port to specified existing VLAN.

Use the undo port hybrid vlan command to cancel the hybrid port from the specified VLAN.

Hybrid port can belong to multiple VLANs. If the port hybrid vlan vlan-id-list { tagged | untagged } command is used for many times, the VLANs carried by the hybrid port is the set of vlan-id-list.

This command can be used on condition that the VLAN specified with vlan-id must have been existed.

Related command: port link-type.

Example

# Join hybrid port Ethernet2/1/1 to VLAN of 2, 4 and 50-100, and these VLAN will have tags.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port hybrid vlan 2 4 50 to 100 tagged

1.1.19  port link-type

Syntax

port link-type { access | hybrid | trunk }

undo port link-type

View

Ethernet port view

Parameter

access: Configures the port as access port.

hybrid: Configures the port as hybrid port.

trunk: Configures the port as trunk port

Description

Use the port link-type command to configure the link type of Ethernet port.

Use the undo port link-type command to restore the port as default status, i.e. access port.

You can configure three types of ports concurrently on the same switch, but you cannot switch between trunk port and hybrid port. You must turn it first into access port and then set it as other type. For example, you cannot configure a trunk port directly as hybrid port, but first set it as access port and then as hybrid port.

By default, the link type of the port is Access port.

Example

# Configure Ethernet port Ethernet2/1/1 as trunk port.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface ethernet2/1/1

[H3C-Ethernet2/1/1] port link-type trunk

1.1.20  port-mode

Syntax

port-mode { wan | lan }

undo port-mode

View

Ethernet port view

Parameter

wan: Configures the port works in WAN mode, and then only common data exchange can be implemented on the port.

lan: Configures the port works in LAN mode, and then data can be transferred on the port.

Description

Use the port-mode command to configure network mode available on the port. Most ports adopt the LAN mode for general data exchange. The port must work in WAN mode, however, if it needs to transfer data (such as in fiber transmission).

Use the undo port-mode command to restore the default mode of the port.

By default, Ethernet ports work in LAN mode. 10GE ports support WAN mode.

Example

# Set port GigabitEthernet2/1/1 to work in WAN mode.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface GigabitEthernet2/1/1

[H3C-GigabitEthernet2/1/1] port-mode wan

# Restore the default (LAN) mode on port GigabitEthernet2/1/1.

[H3C-GigabitEthernet2/1/1] undo port-mode

1.1.21  port trunk permit vlan

Syntax

port trunk permit vlan { vlan-id-list | all }

undo port trunk permit vlan { vlan-id-list | all }

View

Ethernet port view

Parameter

vlan-id-list: vlan-id-list = [ vlan-id1 [ to vlan-id2 ] ]&<1-10> is the VLAN range joined by the trunk port. It can be discrete. The vlan-id ranges from 2 to 4,094. &<1-10> indicates that the former parameter can be input 10 times repeatedly at most.

all: Joins the trunk port to all VLANs.

Description

Use the port trunk permit vlan command to join trunk port to specified VLAN.

Use the undo port trunk permit vlan command to cancel trunk port from specified VLAN.

Trunk port can belong to multiple VLANs. If the port trunk permit vlan command is used many times, then the VLAN enabled to pass on trunk port is the set of these vlan-id-list.

Related command: port link-type.

Example

# Remove the trunk port from the default VLAN.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] undo port trunk permit vlan 1

# Add the trunk port to all VLANs.

[H3C-Ethernet2/1/1] port trunk permit vlan all

1.1.22  port trunk pvid vlan

Syntax

port trunk pvid vlan vlan-id

undo port trunk pvid

View

Ethernet port view

Parameter

vlan-id: VLAN ID defined in IEEE802.1Q, ranging from1 to 4,094 and the default vlan-id is 1.

Description

Use the port trunk pvid vlan command to configure the default VLAN ID of trunk port.

Use the undo port trunk pvid command to restore the default VLAN ID of the port.

The default VLAN ID of local trunk port should be consistent with that of the peer one, otherwise, the packet cannot be properly transmitted.

Related command: port link-type.

Example

# Configure the default VLAN of the trunk port Ethernet2/1/1 to 100.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] port trunk pvid vlan 100

1.1.23  reset counters interface

Syntax

reset counters interface [ interface-type | interface-type interface-number ]

View

User view

Parameter

interface-type: Specifies the port type.

interface-number: Specifies the port number.

For parameter description, refer to the interface command.

Description

Use the reset counters interface command to reset the statistical information on the port and count the related information again on the port for the user.

If the port type and number are not specified when clearing the port information, information of all ports on the switch will be cleared. If only the port type is specified, all the information on the ports of this type will be cleared. If both port type and port number are specified, the information on the designated port will be cleared.

You cannot clear statistics on the 802.1x-enabled port.

Example

# Clear the statistical information of Ethernet port Ethernet2/1/1.

<H3C> reset counters interface ethernet2/1/1

1.1.24  shutdown

Syntax

shutdown

undo shutdown

View

Ethernet port view

Parameter

None

Description

Use the shutdown command to disable the Ethernet port.

Use the undo shutdown command to enable the Ethernet port.

By default, the Ethernet port is enabled.

Example

# Enable Ethernet port Ethernet2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] undo shutdown

1.1.25  speed

Syntax

speed { 10 | 100 | 1000 | 10000 | auto }

undo speed

View

Ethernet port view

Parameter

10: Speed on the port is 10 Mbps.

100: Speed on the port is 100 Mbps.

1000: Speed on the port is 1000 Mbps.

10000: Speed on the port is 10 Gbps.

auto: Port speed is in peer auto-negotiation status.

Description

Use the speed command to configure the port speed.

Use the undo speed command to restore the default speed.

By default, the speed is auto.

Related command: duplex.

Example

# Configure Ethernet port Ethernet2/1/1 port speed as 100 Mbps.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] speed 100

1.1.26  vlan-vpn enable

Syntax

vlan-vpn enable

undo vlan-vpn

View

Ethernet port view

Parameter

None

Description

Use the vlan-vpn enable command to enable port VLAN VPN.

Use the undo vlan-vpn command to disable port VLAN VPN.

Note that if anyone of GVRP, STP, NTP or 802.1x has been enabled on a port, VLAN VPN cannot be enabled on it.

By default, the port VLAN VPN is disabled.

Example

# Enable VLAN VPN on Ethernet2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] vlan-vpn enable

 


Chapter 2  Ethernet Link Aggregation Configuration Commands

2.1  Ethernet Link Aggregation Configuration Commands

2.1.1  debugging lacp packet

Syntax

debugging lacp packet [ interface interface-type interface-number [ to interface-type interface-number ] ]

undo debugging lacp packet [ interface interface-type interface-number [ to interface-type interface-number ] ]

View

System view

Parameter

interface interface-type interface-number [ to interface-type interface-number ]: Specifies a port or ports. The command without the parameter to specifies one port, while the command with the parameter to specifies several contiguous ports. interface-type indicates port type. interface-number indicates port number. For more information, see the parameter description of the interface command.

Description

Use the debugging lacp packet command to enable LACP packet debugging for the port. If you do not specify a port, the command enables packet debugging on all LACP-enabled ports.

Use the undo debugging lacp packet command to disable LACP packet debugging for the port.

Example

# Enable LACP packet debugging for Ethernet port Ethernet1/1/1.

<H3C> debugging lacp packet interface ethernet1/1/1

2.1.2  debugging lacp state

Syntax

debugging lacp state [ interface interface-type interface-number [ to interface-type interface-number ] ] { { actor-churn | mux | partner-churn | ptx | rx }* | all }

undo debugging lacp state [ interface interface-type interface-number [ to interface-type interface-number ] ] { { actor-churn | mux | partner-churn | ptx | rx }* | all }

View

User view

Parameter

interface interface-type interface-number [ to interface-type interface-number ]: Specifies a port or ports. The command without the parameter to specifies one port, while the command with the parameter to specifies several contiguous ports. interface-type indicates port type. interface-number indicates port number. For more information, see the parameter description of the interface command.

actor-churn: Actor-churn state machine debugging switch.

mux: MUX state machine debugging switch.

partner-churn: Partner-churn state machine debugging switch.

ptx: PTX state machine debugging switch.

rx: RX state machine debugging switch.

all: debugging switch of all state machines.

Description

Use the debugging lacp state command to enable LACP state machine debugging for the port.

Use the undo debugging lacp state command to disable LACP state machine debugging for the port.

Example

# Enable debugging of all LACP state machines.

<H3C> debugging lacp state all

2.1.3  debugging link-aggregation error

Syntax

debugging link-aggregation error

undo debugging link-aggregation error

View

User view

Parameter

None

Description

Use the debugging link-aggregation error command to enable link aggregation error debugging.

Use the undo debugging link-aggregation error command to disable link aggregation error debugging.

Example

# Enable link aggregation error debugging.

<H3C> debugging link-aggregation error

2.1.4  debugging link-aggregation event

Syntax

debugging link-aggregation event

undo debugging link-aggregation event

View

User view

Parameter

None

Description

Use the debugging link-aggregation event command to enable link aggregation event debugging.

Use the undo debugging link-aggregation event command to disable link aggregation event debugging.

Example

# Enable link aggregation event debugging.

<H3C> debugging link-aggregation event

2.1.5  display lacp system-id

Syntax

display lacp system-id

View

Any view

Parameter

None

Description

Use the display lacp system-id command to display the device ID of local system, including system priority and system MAC address.

Related command: link-aggregation.

Example

# Display the device ID of the local system.

<H3C> display lacp system-id

 Actor System ID: 0x8000, 00e0-fc00-0100

Table 2-1 Description on the fields of the display lacp system-id command

Field

Description

Actor System ID

The device ID of the local system, including system priority and system MAC address.

 

2.1.6  display link-aggregation summary

Syntax

display link-aggregation summary

View

Any view

Parameter

None

Description

Use the display link-aggregation summary command to view summary information of all aggregation groups, including local device ID, aggregation group ID, aggregate group type, peer device ID, number of Selected ports, number of Standby ports, load sharing type and master port number.

Example

# Display summary information of all aggregation information.

<H3C> display link-aggregation summary

Aggregation Group Type:D -- Dynamic, S -- Static , M -- Manual

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

Actor ID: 0x8000, 00e0-fc23-0d90

 

  AL  AL   Partner ID            Select Standby Share Master

  ID  Type                       Ports  Ports   Type  Port

--------------------------------------------------------------------------------

  1   M    none                    2      0       Shar  GigabitEthernet3/1/1

  3   M    none                  4      0      Shar  Ethernet4/1/45

Table 2-2 Description on the fields of the display link-aggregation summary command

Field

Description

Actor ID

Local device ID

AL ID

Aggregation group ID

AL Type

Aggregation group type

Partner ID

Peer device ID

Select Ports

Number of selected ports

Standby Ports

Number of standby ports

Share Type

Load sharing type

Master Port

Master port number

 

2.1.7  display link-aggregation verbose

Syntax

display link-aggregation verbose [ agg-id ]

View

Any view

Parameter

agg-id: Aggregation group ID, which must be existing ones, in the range of 1 to 920. IDs 1 through 31 indicate manual or static aggregation groups; IDs 32 through 64 are reserved; IDs 65 through 192 are Routed Trunks; IDs 193 through 920 indicate dynamic aggregation groups.

Description

Use the display link-aggregation verbose command to view detailed information of a designated port, including aggregation group ID, aggregation group type, load sharing type, aggregation group description and detailed local information (system ID, member ports, port status, port priority, flag, operation key, link status) and detailed remote information (local port, indexes of remote ports, port priority, flag, operation key and system ID, here local and remote are in a relative sense).

Note that since the manual aggregation group cannot get the information of the peer end, every item of the peer end is displayed as 0, which does not indicate the actual status of the peer system.

Example

# Display the detailed information of aggregation group 5.

<H3C> display link-aggregation verbose 5

Loadsharing Type: Shar -- Loadsharing, NonS -- Non-Loadsharing

 

Aggregation ID: 5,  AggregationType: Manual,   Loadsharing Type: Shar

Aggregation Description:

System ID: 0x0, 00e0-fc00-1312

Port Status: S -- Selected,  T -- sTandby,  U -- Unselected

Local:

    Port                    Status  Priority Flag Oper-Key Link-Status

--------------------------------------------------------------------------------

    Ethernet9/1/9           S       32768    0x00 8        Down

    Ethernet9/1/10          S       32768    0x00 8        Down

 

Remote:

    Actor                   Partner Priority Flag Oper-Key SystemID

--------------------------------------------------------------------------------

    Ethernet9/1/9           0       0        0x00 0        0x0,0000-0000-0000

    Ethernet9/1/10          0       0        0x00 0        0x0,0000-0000-0000

Table 2-3 Description on the fields of the display link-aggregation verbose command

Field

Description

Aggregation ID

Aggregation group ID

Aggregation Type

Aggregation group type, which can be dynamic, static and manual

Loadsharing Type

Load sharing type

Aggregation Description

Aggregation group description

System ID

Local device ID

Port State

Port state

Local:

Port  Status  Priority  Flag  Oper-key Link-Status

Other information of the local end, including member ports, port state, port priority, flag bit , operation key and link status.

Remote:

Actor  Partner  Priority  Flag  Oper-key SystemID

Detailed information about the peer device, including local port, peer port index, port priority, flag, operation key and device ID

 

2.1.8  display link-aggregation interface

Syntax

display link-aggregation interface interface-type interface-number [ to interface-type interface-number ]

View

Any view

Parameter

interface { interface-type interface-number [ to interface-type interface-number ]: Specifies a port or ports. Without the parameter to, one port is specified. You can specify multiple contiguous ports with the parameter to. interface-type specifies port type and interface-number specifies port number. For more information, see the parameter item for the interface command.

Description

Use the display link-aggregation interface command to view detailed link aggregation information at a designated port, including aggregation group ID for the port, port priority, operation key, flag, peer information (system ID, port number, port priority, operation key, flag).

Note that since the manual aggregation group cannot get the information of the peer end, every item of the peer end is displayed as 0, which does not indicate the actual status of the peer system.

Example

# Display detailed link aggregation information of link aggregation group.

<H3C> display link-aggregation interface ethernet2/1/1

 Ethernet2/1/1:

   Attached AggID: 1

   Local:

     Port-Priority: 32768, Oper key: 1, Flag: 0x00

   Remote:

     System ID: 0x0, 0000-0000-0000

     Port Number: 0, Port-Priority: 0, Oper-key: 0, Flag: 0x00

Received LACP Packets: 0 packet(s), Illegal: 0 packet(s)

   Sent LACP Packets: 0 packet(s)

Table 2-4 Description on the fields of the display link-aggregation interface command

Field

Description

Attached AggID

Aggregation group ID for the specified port

Local:

     Port-Priority: 32768, Oper key: 1, Flag: 0x00

Port priority, operation key, LACP state flag of the local end

Remote:

     System ID: 0x0, 0000-0000-0000

     Port Number: 0, Port-Priority: 0, Oper-key: 0, Flag: 0x00

Device ID, port priority, operation key, LACP state flag of the remote end

Received LACP Packets: 0 packet(s), Illegal: 0 packet(s)

Received LACP packets

Sent LACP Packets: 0 packet(s)

Sent LACP packets

 

2.1.9  lacp enable

Syntax

lacp enable

undo lacp enable

View

Ethernet port view

Parameter

None

Description

Use the lacp enable command to enable LACP.

Use the undo lacp enable command to disable LACP.

Example

# Enable LACP for Ethernet port Ethernet1/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet1/1/1

[H3C-Ethernet1/1/1] lacp enable

2.1.10  lacp port-priority

Syntax

lacp port-priority port-priority-value

undo lacp port-priority

View

Ethernet port view

Parameter

port-priority-value: Port priority, in the range of 0 to 65,535. By default, it is 32,768.

Description

Use the lacp port-priority command to configure port priority.

Use the undo lacp port-priority command to restore the default port priority.

Related command: display link-aggregation verbose and display link-aggregation interface.

Example

# Set port priority to 64.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet1/1/1

[H3C-Ethernet1/1/1] lacp port-priority 64

2.1.11  lacp system-priority

Syntax

lacp system-priority system-priority-value

undo lacp system-priority

View

System view

Parameter

system-priority-value: System priority, in the range of 0 to 65,535. By default, it is 32,768.

Description

Use the lacp system-priority command to configure system priority.

Use the undo lacp system-priority command to restore the default system priority.

Related command: display lacp system-id.

Example

# Set system priority to 64.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] lacp system-priority 64

2.1.12  link-aggregation

Syntax

link-aggregation interface-name1 to interface-name2 [ both ]

View

System view

Parameter

interface-name1: Starting range value of Ethernet port joined the Ethernet link aggregation.

interface-name2: Last range value of Ethernet port joined the Ethernet link aggregation.

both: Specifies the aggregation group to balance load for inbound and outbound packets.

Description

Use the link-aggregation command to configure a series of ports to aggregation port.

Related command: link-aggregation group agg-id mode, port link-aggregation group.

Note: When a port is added into an aggregation group, the original ARP information of the port will be lost.

Example

# Configure to balance load for inbound and outbound packets.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] link-aggregation ethernet2/1/1 to ethernet2/1/2 both

2.1.13  link-aggregation group agg-id description

Syntax

link-aggregation group agg-id description alname

undo link-aggregation group agg-id description

View

System view

Parameter

agg-id: Aggregation group ID, in the range of 1 to 920. IDs 1 though 31 indicate manual or static aggregation groups; IDs 32 through 64 are reserved; IDs 65 though 192 indicate Routed Trunks; IDs 193 through 920 indicate dynamic aggregation groups.

alname: Aggregation group name, character string with 1 to 32 characters.

Description

Use the link-aggregation group agg-id description command to configure description for an aggregation group.

Use the undo link-aggregation group agg-id description command to delete aggregation group description.

Note that you cannot configure the description for a dynamic aggregation group.

Related command: display link-aggregation verbose.

Example

# Configure myal1 as the description of aggregation group 22.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] link-aggregation group 22 description myal1

2.1.14  link-aggregation group agg-id mode

Syntax

link-aggregation group agg-id mode { manual | static }

undo link-aggregation group agg-id

View

System view

Parameter

agg-id: Aggregation group ID, in the range of 1 to 920. IDs 1 though 31 indicate manual or static aggregation groups; IDs 32 through 64 are reserved; IDs 65 though 192 indicate Routed Trunks; IDs 193 through 920 indicate dynamic aggregation groups.

Description

Use the link-aggregation group agg-id mode command to create an aggregation group.

Use the undo link-aggregation group command to delete an aggregation group.

Related command: display link-aggregation summary.

 

&  Note:

Port aggregation includes manual aggregation, static aggregation and dynamic aggregation.

l      In the manual aggregation mode, ports working at different rates can be aggregated. Manual aggregation can be load balancing aggregation if the aggregation resource is available. In this case, if the traffic rate shared by a low-rate port exceeds the maximum rate of the port, packets may be lost.

l      In the static aggregation mode, ports working at different rates can also be aggregated. However, the Selected/Standby state of statically aggregated ports is determined by the transmission rate. Only the ports with the maximum rate and in full-duplex mode can be selected to forward traffic, while other standby ports do not forward traffic.

 

Example

# Create manual aggregation group 22.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] link-aggregation group 22 mode manual

2.1.15  port link-aggregation group

Syntax

port link-aggregation group agg-id

undo port link-aggregation group

View

Ethernet port view

Parameter

agg-id: Aggregation group ID, in the range of 1 to 920. IDs 1 though 31 indicate manual or static aggregation groups; IDs 32 through 64 are reserved; IDs 65 though 192 indicate Routed Trunks; IDs 193 through 920 indicate dynamic aggregation groups.

Description

Use the port link-aggregation group command to add an Ethernet port into a manual or static aggregation group. Use the undo port link-aggregation group command to delete an Ethernet port from an aggregation group.

Related command: display link-aggregation verbose.

When a port is added into an aggregation group, the original ARP information of the port will be lost.

Example

# Add Ethernet2/1/1 into aggregation group 22.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface Ethernet2/1/1

[H3C-Ethernet2/1/1] port link-aggregation group 22

2.1.16  reset lacp statistics

Syntax

reset lacp statistics [ interface interface-type interface-number [ to interface-type interface-number ] ]

View

System view

Parameter

interface interface-type interface-number [ to interface-type interface-number ]: Specifies a port or ports. The command without the parameter to specifies one port, while the command with the parameter to specifies several contiguous ports. interface-type indicates port type. interface-number indicates port number. For more information, refer to the parameter description of the interface command.

Description

Use the reset lacp statistics command to clear LACP statistics for the port. If you do not specify a port, the command clears LACP statistics for all the ports.

Related command: display link-aggregation interface.

Example

# Clear LACP statistics for all Ethernet ports.

<H3C> reset lacp statistics

 


Chapter 3  POS Port Configuration Commands

3.1  POS Port Configuration Commands

3.1.1  clock

Syntax

clock { master | slave }

undo clock

View

POS port view

Parameter

master: Sets the POS port to use internal clock.

slave: Sets the POS port to use line clock.

Description

Use the clock command to set clock mode at the POS port.

Use the undo clock command to restore the default clock mode at the POS port.

By default, a POS port works in the line clock mode.

Example

# Set the clock mode of POS2/1/1 to the master clock mode.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] clock master

3.1.2  crc

Syntax

crc { 16 | 32 }

undo crc

View

POS port view

Parameter

16: CRC checkbit is 16 bits.

32: CRC checkbit is 32 bits.

Description

Use the crc command to define CRC checkbit length at the POS port.

Use the undo crc command to restore the default CRC checkbit length at the POS port.

By default, the CRC checkbit is 32 bits.

Note that a 10GPOS port does not support 16-bit CRC.

Example

# Set CRC checkbit length at POS2/1/1 as 16.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] crc 16

3.1.3  description

Syntax

description text

undo description

View

POS port view

Parameter

text: Port description string, 64 characters at most.

Description

Use the description command to set port description string.

Use the undo description command to delete the port description string.

By default, the description string for a POS port is null.

Example

# Set the description string of POS2/1/1 to “Pos-interface”.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] description pos-interface

3.1.4  display interface pos

Syntax

display interface pos [ interface-number ]

View

Any view

Parameter

interface-number: POS port number, in the format of board slot ID/daughter card slot ID/ port ID, where board slot ID refers to the ID of the slot for LPU, in the range of 2 to 6 (for S9505), or 0 to 3 and 6 to 9 (for S9508), or 0 to 5 and 8 to 13 (for S9512); daughter card slot ID refers to the ID of the slot for daughter, with the value of 1; port ID refers to the sequence number on the LPU for the port, in the range of 1 to 4.

Description

Use the display interface pos command to view the configuration and status information of a designated POS port. If no interface number is specified, the command displays the configuration and status information of all POS ports.

Example

# Display the configuration and status information of POS2/1/1.

<H3C> display interface pos2/1/1

Pos2/1/1 current state : UP

Link layer protocol current state : UP

Physical layer is Packet over SDH,loopback not set

Ip address of POS Access VLAN's interface is: 200.4.0.2

Ip Mask of POS Access VLAN's interface is: 255.255.255.0

Description: No description!

The Maximum Transmit Unit is 1500

Port hardware type is POS OC48/STM-16-SR-SM

Access VLAN of POS port is 2004

Link layer protocol is PPP

LCP opened, IPCP opened, OSICP opened, MPLSCP opened

Hold timer is: 10 sec

FCS: 16-bit  CRC

Clock Source: Master

SPE Scrambling: Disable

     SDH alarm:

        section layer:

        line    layer:

        path    layer:

        C2(Rx) :0xcf  C2(Tx): 0x16

        J0(Rx): "H3C "

        71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00     *H3C.........*

        J0(Tx): "H3C"

        71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00     *H3C.........*

        J1(Rx): "H3C "

        71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00     *H3C.........

        J1(Tx): "H3C"

        71 75 69 64 77 61 79 00 00 00 00 00 00 00 00 00     *H3C.........*

        BER thresholds: SD = 10e-6  SF = 10e-3

     SDH error:

        section layer:  B1  0

        line    layer:  B2  0  M1  0

        path    layer:  B3  0  G1  0

 Last 5 minutes output:  0 packets/sec 1664 bits/sec     0%

 Last 5 minutes input:  0 packets/sec 1584 bits/sec     0%

 input:   1731 packets, 16913416468 bytes

          0 errors, 0 CRC, 0 giants

          0 pads, 0 aborts, 0 overflows

 Output:  3953 packets, 1314756 bytes

          0 errors, 0 underflows

Table 3-1 Description on the fields of the display interface pos command

Field

Description

Pos2/1/1 current state

Current state of the POS port

Link layer protocol current state

Current state of the link layer protocol

Physical layer is Packet over SDH, loopback not set

The physical layer uses SDH frame mode, and loopback is not set on the port.

Description

Port description

The Maximum Transmit Unit

MTU

Port hardware type

Port hardware type

Link layer protocol

Link layer protocol

LCP opened, IPCP opened, OSICP opened, MPLSCP opened

Enabled protocols

Hold timer

Interval time of the hold timer

FCS

Check mode

Tx Clock Source

Clock mode

Clock Grade: Quality unknown(existing synchronization network)

Clock stratum

SPE Scrambling

Current state of scrambling function

SDH alarm:

        section layer: OOF  LOF  LOS

        line    layer: AIS

        path    layer: AIS

        C2(Rx) :0xff C2(Tx): 0x16

        J0(Rx):

        J0(Tx):

        J1(Rx):

        J1(Tx):

        BER thresholds: SD = 10e-6  SF = 10e-3

SDH alarm information

SDH error:

        section layer: B1  287853060

        line    layer: B2  0  M1  0

        path    layer: B3  0  G1  0

SDH error information

Last 5 minutes output: 0 packets/sec 0 bits/sec

Last 5 minutes input:  0 packets/sec 0 bits/sec

Input and output rates in the last five minutes on the port

input:   0 packets, 0 bytes

          0 errors, 0 CRC, 0 giants

          0 pads, 0 aborts, 0 overflows

 Output:  0 packets, 0 bytes

          0 errors, 0 underflows

Input/output packet and error statistics on the port

 

3.1.5  debugging ppp

Syntax

debugging ppp { { ipcp | lcp } { all | error | event | packet | state } | all | core event | ip packet | mpls-multicast packet | mpls-unicast packet | osi-npdu } [ interface { aux | pos } interface-number ]

undo debugging ppp { { ipcp | lcp } { all | error | event | packet | state } | all | core event | ip packet | mpls-multicast packet | mpls-unicast packet | osi-npdu } [ interface { aux | pos } interface-number ]

View

User view

Parameter

ipcp: IPCP debugging switch.

lcp: LCP debugging switch.

all: All POS debugging switch

core event: PPP core event debugging switch.

ip packet: IP packet debugging switch.

mpls-multicast packet: MPLS-MULTICAST packet debugging switch.

mpls-unicast packet: MPLS-UNICAST packet debugging switch.

all: All debugging switches.

error: Error debugging switch.

event: Event debugging switch.

packet: Packet debugging switch.

state: State machine debugging switch.

interface-number: POS port number, in the format of board slot ID/daughter card slot ID/ port ID, where board slot ID refers to the ID of the slot for LPU, in the range of 2 to 6 (for S9505), or 0 to 3 and 6 to 9 (for S9508), or 0 to 5 and 8 to 13 (for S9512); daughter card slot ID refers to the ID of the slot for daughter, with the value of 1; port ID refers to the sequence number on the LPU for the port, in the range of 1 to 4.

Description

Use the debugging ppp command to enable debugging for the POS port.

Use the undo debugging ppp command to disable debugging for the POS port.

By default, no debugging is enabled on the POS port.

Example

# Enable all debugging for the POS port.

<H3C> debugging ppp all

3.1.6  flag

Syntax

flag c2 flag-value

undo flag c2

flag { j0 | j1 } { sdh | sonet } flag-value

undo flag { j0 | j1 } { sdh | sonet }

View

POS port view/Ethernet GE port view

Parameter

c2: Signal label byte C2 belongs to high-order path overhead byte, and is used to indicate the multiplexing structure and message payload of the VC (virtual container) frame. By default, it is 0x16 (hexadecimal).

j0: Regenerator section trace byte J0 belongs to section overhead byte, and is used to check port connectivity at section level. By default, it is default.

j1: Path trace byte J1 also belongs to high-order overhead byte, and is used to check port connectivity at path level. The value range is 1 to 63 characters (string). The default value is “default”.

sdh: Frame format is SDH. 10GEWAN port currently only needs SDH type.

sonet: Frame format is SONET.

flag-value: The value range of c2 is 0 to ff (hexadecimal).

In the SDH format, the value ranges of j0 and j1 are both 1 to 15 characters (string).

In the SONET format, the value range of j0 is 0 to 7f (hexadecimal).

Description

Use the flag command to set overhead byte type at the port.

Use the undo flag command to restore the default overhead byte type at the port.

Note that:

l           The C2, J0 and J1 configurations should be consistent for the sender and receiver. Otherwise, the system may give alarms. The frame format of overhead bytes J0 and J1 must be consistent at both POS ports. Otherwise, the system cannot read the peer field values correctly.

l           A GE port supports the flag command only when operating in WAN mode.

Example

# Configure overhead byte J0 of the POS port.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] flag j0 sdh ff

# Configure overhead byte J0 of the 10GE WAN port.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface GigabitEthernet4/2/1

[H3C-GigabitEthernet4/2/1] port-mode wan

[H3C-GigabitEthernet4/2/1] flag j0 sdh 1

3.1.7  frame-format

Syntax

frame-format { sdh | sonet }

undo frame-format

View

POS port view

Parameter

sdh: Frame format is SDH.

sonet: Frame format is SONET.

Description

Use the frame-format command to set frame format at the POS port.

Use the undo frame-format command to restore the default frame format at the POS port.

By default, the frame format of a POS port is SDH.

Example

# Set the frame format of POS2/1/1 to SDH.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] frame-format sdh

3.1.8  interface pos

Syntax

interface pos interface-number

View

System view

Parameter

interface-number: POS port number, in the format of board slot ID/daughter card slot ID/ port ID, where board slot ID refers to the ID of the slot for LPU, in the range of 2 to 6 (for S9505), or 0 to 3 and 6 to 9 (for S9508), or 0 to 5 and 8 to 13 (for S9512); daughter card slot ID refers to the ID of the slot for daughter, with the value of 1; port ID refers to the sequence number on the LPU for the port, in the range of 1 to 4.

Description

Use the interface pos command to enter POS port view. To initiate POS port configuration, you need first enter POS port view.

Example

# Enter POS2/1/1 port view.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos 2/1/1

3.1.9  loopback

Syntax

loopback { internal | external }

undo loopback

View

POS port view

Parameter

internal: Enables internal loopback at the POS port.

external: Enables external loopback at the POS port.

Description

Use the loopback command to define loopback type at the POS port.

Use the undo loopback command to disable POS port loopback.

By default, both internal loopback and external loopback are disabled.

Example

# Set internal loopback at POS2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] loopback local

3.1.10  mtu

Syntax

mtu mtu-value

View

POS port view

Parameter

mtu: MTU on the POS port.

mtu-value: MTU value, in the range of 64 to 9,192 (in bytes). By default, it is 1,500 bytes.

Note that the MTU range of 155M POS port and 10G POS port is different. The MTU of 155M POS port ranges from 64 to 1,995 bytes.

Description

Use the mtu command to define the MTU on the POS port.

Note that you must disable port by using the shutdown command first and then use the undo shutdown command to enable it again if the MTU values are different between both ends. In this case, as the result of negotiation between both ports, the smaller value will be used as the MTU.

Example

# Set the MTU on the POS port to 5000 bytes.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] mtu 5000

3.1.11  pos access vlan

Syntax

pos access vlan vlan-id

undo pos access vlan

View

POS port view

Parameter

vlan-id: VLAN ID defined in IEEE802.1Q, in the range of 2 to 4,094.

Description

Use the pos access vlan command to add the POS port into the designated VLAN.

Use the undo pos access vlan command to delete the POS port from the designated VLAN.

Note that:

l           The VLAN added to the POS port must be existent and is configured with the corresponding VLAN interface and IP address. In addition, it cannot be VLAN 1.

l           If there are ports of other types in this VLAN, then the POS port cannot be added into this VLAN, and vice versa.

Example

# Add POS2/1/1 into VLAN3.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] pos access vlan 3

3.1.12  ppp timer negotiate

Syntax

ppp timer negotiate seconds

undo ppp timer negotiate

View

POS port view

Parameter

seconds: Timeout time in seconds for PPP negotiation, in the range of 1 to 10 (seconds). By default, it is 3 seconds.

Description

Use the ppp timer negotiate command to set timeout time for PPP negotiation.

Use the undo ppp timer negotiate command to restore the default timeout time for PPP negotiation.

Example

# Set the timeout time as 5 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] ppp timer negotiate 5

3.1.13  reset counters interface pos

Syntax

reset counters interface pos [ interface-number ]

View

User view

Parameter

interface-number: POS port number, in the format of board slot ID/daughter card slot ID/ port ID, where board slot ID refers to the ID of the slot for LPU, in the range of 2 to 6 (for S9505), or 0 to 3 and 6 to 9 (for S9508), or 0 to 5 and 8 to 13 (for S9512); daughter card slot ID refers to the ID of the slot for daughter, with the value of 1; port ID refers to the sequence number on the LPU for the port, in the range of 1 to 4.

Description

Use the reset counters interface pos command to clear statistics about the POS port, to recollect statistics about the port. If no port number is specified, the command clears statistics about all POS ports.

Example

# Clear statistics about POS2/1/1.

<H3C> reset counters interface pos 2/1/1

3.1.14  scramble

Syntax

scramble

undo scramble

View

POS port view

Description

Use the scramble command to enable scrambling function at the POS port.

Use the undo scramble command to disable scrambling function at the POS port.

By default, scrambling function is enabled at a POS port.

Example

# Enable scrambling function at POS2/1/1.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] scramble

3.1.15  shutdown

Syntax

shutdown

undo shutdown

View

POS port view

Parameter

None

Description

Use the shutdown command to shut down the POS port.

Use the undo shutdown command to bring the POS port up.

By default, a POS port is in UP status.

Example

# Turn POS2/1/1 into UP status.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] undo shutdown

3.1.16  threshold

Syntax

threshold { sd | sf } value

undo threshold { sd | sf }

View

POS port view

Parameter

value: threshold, in the 10e – X. X is an integer ranging from 3 to 9. By default, SD = 10e - 6, and SF = 10e – 3.

Description

Use the threshold command to set the thresholds of SD (signal degrade) and SF (signal failure) alarms.

Use the undo threshold command to restore the defaults.

Note that SD threshold must smaller than SF threshold

Example

# Set the threshold of SD to 4.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] threshold sd 4

3.1.17  timer hold

Syntax

timer hold seconds

undo timer hold

View

POS port view

Parameter

seconds: Polling interval, in units of second and in the range of 0 to 32,767. By default, it is 10 seconds. 0 means the system does not perform link validity check.

Description

Use the timer hold command to set polling interval for the status timer at the POS port.

Use the undo timer hold command to restore the default polling interval.

You must set consistent polling interval at the both ends. If you set the polling interval at both ends as 0, the system does not perform link validity check.

Example

# Set the polling interval at POS2/1/1 to 20 seconds.

<H3C> system-view

System View: return to User View with Ctrl+Z.

[H3C] interface pos2/1/1

[H3C-Pos2/1/1] timer hold 20

 


Chapter 4  RPR Port Configuration Commands

4.1  RPR Port Configuration Commands

4.1.1  clock-source

Syntax

clock-source [ line | internal ]

undo clock-source

View

RPR POS physical port view

Parameter

line: Specifies the clock source as line.

internal: Specifies the clock source as internal. By default, it is internal.

Description

Use the clock-source command to configure clock source.

Use the undo clock-source command to restore the default setting.

Example

# Set clock source.

<H3C> system-view

[H3C] interface RPR2/1/1.1

[H3C- RPR2/1/1.1]clock-source line

4.1.2  debugging rpr

Syntax

debugging rpr { all | topology | protection | controlframe | mac | ringselection | tp-frame }

undo debugging rpr { all | topology | protection | controlframe | mac | ringselection | tp-frame }

View

User view

Parameter

all: All RPR debugging.

topology: RPR topology database modular debugging switch.

protection: RPR protection modular request debugging switch.

controlframe: RPR control frame processing debugging switch.

Mac: RPR ring selection MAC module debugging switch.

ringselection: RPR ring selection module debugging switch.

tp-frame: RPR TP frame processing debugging switch.

Description

Use the debugging rpr command to enable RPR debugging.

Use the undo debugging rpr command to disable RPR debugging.

By default, RPR debugging is disabled.

Example

# Enable all debugging for an RPR port.

<H3C> debugging rpr all

4.1.3  display interface

Syntax

display interface [ interface-type | interface-type interface-number ]

View

Any view

Parameter

interface-type: Port type.

interface-number: Port number.

Note that, there are two physical ports on the RPR panel. However, the physical ports presently appear as sub-interfaces.

Description

Use the display interface command to view the RPR port configuration and status information. If you do not specify both port type and port number, the command displays the information about all ports on the switch. If you only specify port type, the command displays the information about all ports of the specified type. If you specify both port type and port number, the command displays the information about the specified port. If you do not specify port number, the command displays all port information, including the status information about RPR POS logical and physical ports. If you specify port number, the command displays the information about the specified port. By viewing the information about physical ports, you can monitor the SDH physical layer and performance. For example, you can monitor basic alarms such as out of frame (OOF), loss of frame (LOF).

Example

# Display the configuration information of the RPR2/1/1 Ethernet port (logical port information).

<H3C> display interface RPR2/1/1

RprPos2/1/1 current state : DOWN

 Including two physical rpr interface:

 rprpos2/1/1.1, rprpos2/1/1.2,

 Rpr station name is  NULL

 Rpr bridge MAC address is 00e0-fc00-85ff

 Rpr configured default ringlet is  0

 RPR work mode  NORMAL

 IP address of RPR Access VLAN's interface is: NULL

 IP Mask of RPR Access VLAN's interface is: NULL

 Link-status hold interval:3 Sec

 Description:  RprPos2/1/1 Interface

 The Maximum Transmit Unit is 1536 ,Loopback not set

 10G speed mode and full duplex mode

 Flow-control is not enabled

 The Maximum Frame Length is 1552

 Broadcast MAX-ratio: 100%

 Allow jumbo frame to pass

 PVID: 1

 Port link-type: access

  Tagged   VLAN ID : none

  Untagged VLAN ID : 1

 Last 300 seconds input:  0 packets/sec 0 bits/sec            1%

 Last 300 seconds output:  0 packets/sec 0 bits/sec           1%

 Input(total):  0 packets, 0 bytes

          0 broadcasts, 0 multicasts

 Input(normal):  0 packets, 0 bytes

          - broadcasts, - multicasts

 Input:  0 input errors, 0 runts, 0 giants,  0 throttles, 0 CRC

          0 frame,  0 overruns, - aborts, 0 ignored, - parity errors

 Output(total): 0 packets, 0 bytes

          0 broadcasts, 0 multicasts, 0 pauses

 Output(normal): 0 packets, 0 bytes

          - broadcasts, - multicasts, 0 pauses

 Output: 0 output errors,  - underruns, - buffer failures

          0 aborts, 0 deferred, - collisions, 0 late collisions

          - lost carrier, - no carrier

 Receive Packet Peak Value Info: 0 bytes, happened at 09:47:02 4-9-2001

 Transmit Packet Peak Value Info: 0 bytes, happened at 09:47:02 4-9-2001

# Display the status information of the RPR4/1/1.1 RPR physical port.

<H3C> display interface RPR 4/1/1.1

Rpr physical interface: RprPos4/1/1.1

Current state   DOWN

     SDH alarm:

        section layer:   LOS

        line    layer:

        path    layer:

        Overhead  C2                 J0                   J1

          Rx    0xdf              H3C              H3C

          Tx    0x16              H3C              H3C

 

     SDH error:

        section layer:  B1  0

        line    layer:  B2  0

                        M1  0

        path    layer:  B3  0

                        G1  0

Data Traffic Counters of the Interface: RprPos4/1/1.1

 Host receive              Packets                Bytes

   unicast                       0                    0

   multicast                     0                    0

 Line receive              Packets                Bytes

   unicast                       0                    0

   multicast                     0                    0

 Host send                 Packets                Bytes

   unicast                       0                    0

   multicast                     0                    0

 Line send                 Packets                Bytes

   unicast                       0                    0

   multicast                     1                   40

 Input Errors

   parity 0 short0 crc 0 ringiderr 0

 Output Errors

   parity 0 short0  giants0  fifo  0

 Control Frame                   In                  Out

           Oam                    0                    0

           Atd                    0                    1

            Tc                    0               496377

            Tp                    0               496378

 Mode                  Packet                 Byte

 SaStrip                    0                    0

 TtlDrop                    0                    0

 TxFlood                    0                    0

 RxFlood                    0                    0

Table 4-1 Description on the fields of the display interface command

Field

Description

RprPos4/1/1 current state

Current RPRPOS port status

Including two physical rpr interface

RPRPOS port contains two physical ports.

Rpr station name

Name of destination RPR node to be detected

Rpr bridge MAC address

 MAC address of the RPR bridge

Rpr configured default ringlet

Configured default ring ID

RPR work mode

RPR operation mode

IP address of RPR Access VLAN's interface

IP address of the VLAN virtual interface to which an RPR port is bound

IP mask of RPR Access VLAN's interface

IP subnet mask of the VLAN virtual interface to which an RPR port is bound

Link-status hold interval

Port hold time

Description

Description information

The Maximum Transmit Unit

The maximum transmit unit

10G speed mode and full duplex mode

10G mode and full duplex mode

Flow-control

Flow control

The Maximum Frame Length

The maximum frame length

Broadcast MAX-ratio

Broadcast storm suppression ratio on the port

Allow jumbo frame to pass

Allows jumbo frame to pass

PVID

Default port VLAN ID

Port link-type

Port link type

Tagged   VLAN ID

Identifies the tagged packets in the port’s VLANs

Untagged VLAN ID

Identifies the untagged packets in the port’s VLANs

Last 300 seconds input:  0 packets/sec 0 bits/sec

 Last 300 seconds output:  0 packets/sec 0 bits/sec

Input and output rates and number of packets on ports in last 300 seconds

Input(total):  0 packets, 0 bytes

          0 broadcasts, 0 multicasts

 Input(normal):  0 packets, 0 bytes

          - broadcasts, - multicasts

 Input:  0 input errors, 0 runts, 0 giants,  0 throttles, 0 CRC

          0 frame,  0 overruns, - aborts, 0 ignored, - parity errors

 Output(total): 0 packets, 0 s

          0 broadcasts, 0 multicasts, 0 pauses

 Output(normal): 0 packets, 0 bytes

          - broadcasts, - multicasts, 0 pauses

 Output: 0 output errors,  - underruns, - buffer failures

          0 aborts, 0 deferred, - collisions, 0 late collisions

          - lost carrier, - no carrier

 Receive Packet Peak Value Info: 0 bytes, happened at 04:03:46 3-25-2001

 Transmit Packet Peak Value Info: 0 bytes, happened at 04:03:46 3-25-2001

Input/output packet and error statistics on ports. “—–” indicates this statistical item is not supported.

 

4.1.4  display rpr defect

Syntax

display rpr defect [ rprpos [ interface-number ] ]

View

Any view

Parameter

interface-number: Port number, in the format of slot number/card number/port number.

Description

Use the display rpr defect command to view all RPR defects. The value 1 indicates defects are found. The value 0 indicates there is no defect.

Example

#Query all RPR defects.

<H3C> display rpr defect

Rpr defects of the interface: RprPos2/1/1

  Amount of reserved bandwidth exceeded defect: 0

  Jumbo configuration defect: 0

  LRTT measurement defect: 0

  Maximum number of stations exceeded defect: 0

  Miscabling defect: ringlet0: 0, ringlet1: 0

  Protection mode configuration defect: 0

  Inconsistent topology defect: 0

  Topology instability defect: 0

  IP address duplicate defect 0  

Table 4-2 Description on the fields of the display rpr defect command

Field

Description

Rpr defects of the interface

RPR defects of the port

Amount of reserved bandwidth exceeded defect

Reserved bandwidth exceeded

Jumbo configuration defect

Jumbo configuration defect

LRTT measurement defect

LRTT measurement defect

Maximum number of stations exceeded defect

Defect of maximum number of nodes exceeded

Miscabling defect

Fiber misconnection defect

Protection mode configuration defect

Protection mode configuration defect

Inconsistent topology defect

Inconsistent topology defect

Topology instability defect

Instable topology defect

IP address duplicate defect

Duplicate IP address defect

 

4.1.5  display rpr fairness

Syntax

display rpr fairness [ rprpos interface-number ]

View

Any view

Parameter

None

Description

Use the display rpr fairness command to view configurable RPR fairness parameter values.

Example

# Query main RPR fairness parameters.

[H3C] display rpr fairness Rpr10GE5/1/1

Rpr fairness parameters of the interface:Rpr10GE5/1/1

  Station's fairness weight on ringlet0: 1

  Station's fairness weight on ringlet1: 1

  Local Reserved bandwidth for class A0 on ringlet0: 0Mbps

  Local Reserved bandwidth for class A0 on ringlet1: 0Mbps

  Local Rate-limiter bandwidth for high on ringlet0: 20Mbps

  Local Rate-limiter bandwidth for high on ringlet1: 20Mbps

  Local Rate-limiter bandwidth for medium on ringlet0: 0Mbps

  Local Rate-limiter bandwidth for medium on ringlet1:  0Mbps

  Local Rate-limiter bandwidth for low on ringlet0: 10000Mbps

  Local Rate-limiter bandwidth for low on ringlet1: 10000Mbps

  Total Reserved bandwidth for class A0 on ringlet0: 90Mbps

  Total Reserved bandwidth for class A0 on ringlet1: 90Mbps

Table 4-3 Description on the fields of the display rpr fairness command

Field

Description

Rpr fairness parameters of the interface

RPR fairness parameters of the port

Station's fairness weight on ringlet0

Node's fairness weight on ring 0

Station's fairness weight on ringlet1

Node's fairness weight on ring 1

Local reserved bandwidth for class A0 on ringlet0

Locally reserved bandwidth for class A0 on ring 0

Local reserved bandwidth for class A0 on ringlet1

Locally reserved bandwidth for class A0 on ring 1

Local Rate-limiter bandwidth for high on ringlet0

Local rate-limiter bandwidth for class A1 on ringlet0

Local Rate-limiter bandwidth for high on ringlet1

Local rate-limiter bandwidth for class A1 on ringlet1

Local Rate-limiter bandwidth for medium on ringlet0

Local rate-limiter bandwidth for class B-CIR on ringlet0

Local Rate-limiter bandwidth for medium on ringlet1

Local rate-limiter bandwidth for class B-CIR on ringlet1

Local Rate-limiter bandwidth for low on ringlet0

Local rate-limiter bandwidth for class C and class B-EIR on ringlet0

Local Rate-limiter bandwidth for low on ringlet1

Local rate-limiter bandwidth for class C and class B-EIR on ringlet1

Total reserved bandwidth for class A0 on ringlet0

Totally reserved bandwidth for class A0 on ring 0

Total reserved bandwidth for class A0 on ringlet1

Totally reserved bandwidth for class A0 on ring 1

 

4.1.6  display rpr protection

Syntax

display rpr protection [ rprpos [ interface-number ] ]

View

Any view

Parameter

interface-number: Port number, in the format of slot number/card number/port number.

Description

Use the display rpr protection command to view protection information. If you do not specify port number, the command displays the protection information about all RPR ports.

RPR protection information includes but is not limited to the following contents:

l           MAC addresses of the neighbor nodes

l           Protection mode, recovery protection mode, automatic protection status, manual protection status and edge status for local node

l           Protection statistics such as protection times, last protection time, protection duration, and others

l           Protection mode can be either configured or effective. You can configure protection mode, however, the configured protection mode may not take effect. RPR automatically checks total protection mode, and makes effective protection mode as consistent as possible.

Example

# Display protection information.

<H3C> dis rpr protection

Protection information of the interface: RprPos6/1/1  

Protection mode configured: steer

Protection mode effective: steer

Protection reversion mode: revertive

MAC address of the east neighbour:0000-0000-0000

MAC address of the west neighbour:0000-0000-0000

Protection State of the east span:sf

Protection State of the west span:sf

Edge status of the east span: true

Edge status of the west span: true

The number of protections on the east span:1

The number of protections on the west span:1

Last protection time on the east span:

Last protection time on the west span:

Protection start time on the east span:2001.03.25 04:51:13

Protection start time on the west span:2001.03.25 04:51:13 

Table 4-4 Description on the fields of the display rpr protection command

Field

Description

Protection information of the interface

Protection information of the port

Protection mode configured

Configured protection mode

Protection mode effective

Currently effective protection mode

Protection reversion mode

Recovery protection mode

MAC address of the east neighbor

MAC address of the east neighbor node

MAC address of the west neighbor

MAC address of the west neighbor node

Protection State of the east span

Protection status of the east span

Protection State of the west span

Protection status of the west span

Edge status of the east span

Edge status of the east span

Edge status of the west span

Edge status of the west span

The number of protections on the east span

The number of protections on the east span

The number of protections on the west span

The number of protections on the west span

Last protection time on the east span

Last protection time on the east span

Last protection time on the west span

Last protection time on the west span

Protection start time on the east span

Protection start time on the east span

Protection start time on the west span

Protection start time on the west span

 

4.1.7  display rpr rs-table

Syntax

display rpr rs-table [ overall | static | dynamic | vrrp ] [ rprpos [ interface-number ] ]

View

Any view

Parameter

overall: Integrated ring selection tables, which guide field programmable gate array (FPGA) to select rings.

static: Static ring selection tables. You can create them manually. Their priority is higher than that of dynamic ring selection tables.

dynamic: Dynamic ring selection tables. Topology databases can calculate them according to the shortest path.

vrrp: VRRP (virtual router redundancy protocol) ring selection tables, which consist of MAC ring selection entries from integrated ring selection tables when VRRP is supported.

interface-number: RPR port number, in the format of slot number/card number/port number.

If no parameter is specified, the command displays integrated ring selection tables of all RPR rings.

Description

Use the display rpr rs-table command to display integrated ring selection table information. Integrated ring selection tables, which are written in CAM (conditional access module) of the FPGA finally, are generated from static and dynamic ring selection tables, For the same destination node, the system selects rings according to the existing static ring selection information. Otherwise, the system selects rings according to the dynamic ring selection information.

Example

# Display dynamic ring selection tables.

[H3C] display rpr rs-table dynamic rpr2/1/1

Dynamic Ring Selection Table of  rpr2/1/1

MAC Address    Ringlet TTL  IP Address       Station Name

00e0-fc00-0011    0      1  201.1.1.1         H3C1

00e0-fc26-0708    1      1  201.1.1.3         H3C2

4.1.8  display rpr statistics

Syntax

display rpr statistics { dmac | smac } [ mac address] [ rpr [ interface-number ] ]

View

Any view

Parameter

dmac: Destination MAC address.

smac: Source MAC address.

mac address: You can input in the format of H-H-H to query the source node bridge MAC address. All 0 indicates displaying MAC addresses of all nodes in the ring.

interface-number: Port number, in the format of slot number/card number/port number.

Description

Use the display rpr statistics command to query the traffic statistics information of packets sent from other nodes to local node or from the local node to other nodes. .

Example

Query the traffic from station with bridge MAC address 0012-3456-0001 in the ring.

<H3C> display rpr statistics smac 0012-3456-0001 RPRPOS3/1/1

Source statistics of  interface: RprPos3/1/1

Mac address:00e0-fc01-0010 Packets: 0 Bytes: 0

4.1.9  display rpr timers

Syntax

display rpr timers [ rprpos [ interface-number ]

View

Any view

Parameter

interface-number: Port number, in the format of slot number/card number/port number.

Description

Use the display rpr timers command to display all configurable RPR timer values.

Example

#Query all RPR timer values.

<H3C> display rpr timers RPR2/1/1

All the timers' value of  interface RprPos4/1/1

TP fast timer:  10ms

TP slow timer:  100ms

TC fast timer:  10ms

TC slow timer:  100ms

ATD timer:  1s

WTR timer:  20s

Holdoff timer:   0ms

Keepalive timer:   3ms

Topology stability timer:    40ms

FDD timer:    100ms

Table 4-5 Description on the fields of the display rpr timers command

Field

Description

All the timers' value of interface

All the timers' values of the port

TP fast timer

TP fast timer

TP slow timer

TP slow timer

TC fast timer

TC fast timer

TC slow timer

TC slow timer

ATD timer

ATD timer

WTR timer

WTR timer

Holdoff timer

Holdoff timer

Topology stability timer

Stable topology timer

FDD timer

FDD timer

 

4.1.10  display rpr topology

Syntax

display rpr topology { all | ring | local | stations } [ verbose ] [ rprpos [ interface-number ]

View

Any view

Parameter

all: Displays complete RPR topology information.

ring: Displays ring-level topology information.

local: Displays local node topology information.

stations: Displays all node topology information on the ring.

verbose: Displays detailed information of the node topology.

Description

Use the display topology command to view topology information. With the all, ring, local and stations keywords, the command displays different ring topology information. When the operational parameter is an interface name, the command displays the topology information of the interface; when the operational parameter is verbose + interface name, the command displays the detailed information of the interface; when the operational parameter is verbose only, the command displays the detailed information of all interfaces.

Ring topology information includes the number of stations in the ring, ring topology type, maximum transmission unit (MTU) value, non-reserved bandwidth and others.

Local node topology information includes local node MAC address, protection status, edge status, reserved bandwidth and others.

Other node topology information contains MAC addresses for other nodes, protection status, edge status and others.

If you do not specify a port, the command displays all RPR port topology information.

Example

# View the Local topology information.

<H3C> display rpr topology local

Local station topology information of interface:Rpr10GE11/1/1

  Mac address:00e0-fc3a-06a1

  Station name:BBB

  Ip address:20.10.10.1

  Jumbo preference:regular

  Current protection mode:steer

  Protection state on ringlet0:idle

  Protection state on ringlet1:idle

  Edge status on ringlet0: false

  Edge status on ringlet1: false

  Sequence number:2

  Last known neighbour on ringlet0:00e0-fc5a-6fd9

  Last known neighbour on ringlet1:00e0-fc39-aa35

  Local topology state:topology is valid

4.1.11  flag

Syntax

flag { c2 c2-value | j0 j0-value | j1 j1-value }

undo flag { c2 | j0 | j1 }

View

RPR POS physical port view

Parameter

c2 c2-value: Path signal label byte, which is a high-order path overhead byte, and indicates the multiplexing structure and message payload of the VC (virtual container) frame.

j0 j0-value: Regeneration section trace message, which is a section overhead byte, and checks port connectivity at section level.

j1 j1-value: Higher-order VC-N path trace byte, which is a high-order overhead byte, and checks port connectivity at path level.

Description

Use the flag command to configure SONET/SDH overhead bytes.

Use the undo flag command to restore the default configuration.

In scrambling mode, c2 is 0x16 by default. In non-scrambling mode, c2 is 0xCF by default.

By default, j0 and j1 both are “NetEngine”.

The c2, j0 and j1 values should be consistent respectively at the receiver and sender. Otherwise, the system may give alarms.

Example

# Configure overhead byte for the RPR port.

<H3C> system-view

[H3C] interface RPR 2/1/1.1

[H3C-RPR 2/1/1.1] flag c2 22

4.1.12  frame-format

Syntax

frame-format { sdh | sonet }

undo frame-format

View

RPR POS physical port view

Parameter

sdh: Indicates the two RPR physical ports use SDH physical encapsulation.

sonet: Indicates the two RPR physical ports use SDH physical encapsulation.

Description

Use the frame-format command to configure the framing mode if it is FRAMER at the physical layer.

Use the undo frame-format command to restore the default configuration. The default encryption mode is SDH.

Example

#Configure the RPR ports to use SDH physical encapsulation.

<H3C> system-view

[H3C] interface RPR 2/1/1.1

[H3C- RPR 2/1/1.1]Frame-format SDH

4.1.13  port-type

Syntax

port-type { 10gpos | 10ge }

View

RPR logical port view

Parameter

10gpos: 10gpos physical port type.

10ge: 10ge physical port type.

Description

Use the port-type command to set physical port type. When the setting changes, the board will restart automatically, and then switch to new RPR port type.

Example

# Set RPR port type to 10GE.

<H3C> system-view

[H3C] interface RPRPOS 3/1/1

[H3C-RPRPOS 3/1/1]port-type 10ge

4.1.14  reset counters interface

Syntax

reset counters interface [ interface-type ] interface-number

View

User view

Parameter

interface-type: Interface type.

interface-number: Port number, in the format of slot number/card number/port number. The port includes RPRPOS logical port and physical port.

Description

Use the reset counters interface command to clear port statistics to implement statistics of related information on the port..

Example

# Clear RPRPOS logical port RPR2/1/1 statistics.

<H3C> reset counters interface RPR2/1/1

# Clear RPR physical port RPR 2/1/1.1 statistics.

<H3C> reset counters interface RPR 2/1/1.1

4.1.15  rpr admin-request

Syntax

rpr admin-request { fs | ms | idle } { ringlet0 | ringlet1 }

View

RPR logical port view

Parameter

fs: Forced switchover.

ms: Manual switchover.

idle: Clears forced switchover or manual switchover and enters Idle state.

ringlet0: Requests switchover in Ringlet0.

ringlet1: Requests switchover in Ringlet1.

Description

Use the rpr admin-request fs command to generate a forced switchover request, making the node enter forced switchover status. The event related to switchover in protection mechanism includes FS, SF, SD, MS, WTR and IDLE. Other protection requests are not able to preempt FS with the highest priority. After you use the rpr admin-request fs command to generate an FS request, other events are not able to preempt FS. To cancel FS, you must use the rpr admin-request idle command.

Use the rpr admin-request ms command to generate an MS for manual switchover. The MS priority is lower. Both the rpr admin-request idle command and any failure (FS, SF or SD) in the RPR ring can preempt MS, making MS fail. If there are other commands with higher priority, the manual switchover you are performing also fails automatically.

Use the rpr admin-request idle command to clear forced switchover or manual switchover.

Note that the receiving and sending sub-rings of port 1 on the panel are Ringlet0 and Ringlet1 respectively. The receiving and sending sub-rings of port 2 on the panel are Ringlet1 and Ringlet0 respectively. Here Ringlet0 and Ringlet1 are both receiving sub-rings.

Example

# Request FS in the Ringlet0 of the node.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1]rpr admin-request fs ringlet0

# Request for MS protection in the receiving direction on Ringlet1 of the node.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1] rpr admin-request ms ringlet1

4.1.16  rpr echo

Syntax

rpr echo { mac mac-address | station-name namestring } [ -c value ] [ -s value ] [ -r value ] [ -t value ]

View

RPR logical port view

Parameter

mac: MAC address of the destination node to be detected.

station-name: Name of the destination node to be detected. You can select either node name or MAC address.

-s: Specifies the sub-ring to send test frames. You cannot configure default sub-ring for transmitting packets.

-r: Specifies the sub-ring to receive test frames.

-c: Specifies the number of packets to be sent.

-t: Specifies the timeout time to wait for acknowledgement.

Description

Use the rpr echo command to test node connectivity. If two nodes are connected correctly at the physical layer, but the connection fails at the service layer, you can use the Echo Req/Echo Rsp message to test the failure. The source node sends an Echo Req message. When receiving it, the destination node gives the sender an Echo Rsp message. If the source node receives the Echo Rsp message within the specified time, it shows the connection is correct. Otherwise, it shows the failure between the two nodes.

Example

# Detect whether the connection to node A named “beijing” in the ring is correct.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1] rpr echo station-name beijing -s ringlet0 –r ringlet1

Reply from 0012-3456-0001: bytes=32 time<10ms receive-ringlet 1 hops 4

4.1.17  rpr default-rs

Syntax

rpr default-rs { ringlet0 | ringlet1 }

View

RPR logical port view

Parameter

ringlet0: Transports broadcast, multicast and Flooding packets over Ringlet0.

Ringlet1: Transports broadcast, multicast and Flooding packets over Ringlet1.

Description

Use the rpr default-rs command to configure the default RPR ring ID. Broadcast, multicast and Flooding packets are transmitted in the default ring. Note that the default ring selection is the sending sub-ring.

Example

# Configure the default RPR ring ID as Ringlet0.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1]rpr default-rs ringlet0

4.1.18  rpr cos-precedence-map

Syntax

rpr cos-precedence-map { tag | mpls | ip } value value0 value1 value2 value3 value4 value5 value6 value7

undo rpr cos-precedence-map { tag | mpls | ip }

View

RPR logical port view

Parameter

tag: Maps tag priority to RPR priority

mpls: Maps mpls priority to RPR priority

ip: Maps ip priority to RPR priority.

value0~7: Values of the RPR priority which tag, mpls and ip priorities correspond respectively to. 0—A, 1—B, 2—C.

Description

Use the rpr cos-precedence-map command to map tag, mpls and ip priority types to RPR priority.

Use the undo rpr cos-precedence-map command to remove the configuration and restore the default configuration. The eight parameters indicate the RPR priority which tag, mpls and ip priorities correspond respectively to. By default, for packets with a tag, the mapping will be implemented as per tag; for packets without a tag, if they are MPLS packets, the mapping will be implemented as per MPLS priority; if they are IP packets instead of MPLS packets, the mapping will be implemented as per IP priority; if they are either MPLS packets or IP packet, the priority will be mapped to Class C.

Example

# Configure Tag priorities 6 and 7 as class A service, priorities 2, 3, 4 and 5 as class B service, and priorities 0 and 1 as class C service.

<H3C> system-view

[H3C] interface RPRPOS3/1/1

[H3C-RPRPOS3/1/1]rpr cos-precedence-map tag 2 2 1 1 1 1 0 0

4.1.19  rpr protect-mode

Syntax

rpr protect-mode { steer | wrap }

undo rpr protect-mode

View

RPR logical port view

Parameter

steer: The source node sends data in another direction for protection.

wrap: The failure node sends data in loopback mode for protection.

Description

Use the rpr protect-mode command to configure node protection mode as Steer or Wrap. The default mode is Steer.

Use the undo rpr protect-mode command to restore the steer RPR protection mode.

Example

# Set the RPR protection mode to Wrap.

<H3C> system-view

[H3C] interface RPRPOS3/1/1

[H3C-RPRPOS3/1/1] rpr protect-mode wrap

4.1.20  rpr rate-limit

Syntax

rpr rate-limit { high | low | medium | reserved } { ringlet0 | ringlet1 } value

undo rpr rate-limit { high | low | medium | reserved } { ringlet0 | ringlet1 }

View

RPR logical port view

Parameter

high: Class A service; the default value is 20 Mbps.

low: Class C and class B-EIR service.

medium: Class B-CIR service.

reserved: Configures the reserved bandwidth for class A0 service, which has the highest priority; the default value is 0 Mbps.

ringlet0: Configures the reserved bandwidth or rate limit for the node on Ringlet0.

ringlet1: Configures the reserved bandwidth or rate limit for the node on Ringlet1.

value: Proportion of the bandwidth reserved on the node for class A0 service in the total bandwidth, with the step length of 1 and default value of 0, or the proportion of the bandwidth reserved on the node for class A1, class B-CIR and class C services in the total bandwidth, with the step length of 1 and default value of 0.

Description

Use the rpr rate-limit command to configure rate limit for class A, class B-CIR, class C and class B-EIR services on the local node. Use the undo rpr rate-limit command to restore rate limit to the default value. When the rate exceeds this limit, back pressure will occur.

Note: The total reserved bandwidth for all nodes on a ring must not exceed the ring bandwidth.

Example

# Set the rate limit for local class A1 service on Ringlet0 and Ringlet1 to 5‰

<H3C> system-view

[H3C] interface Rpr10GE6/1/1

[H3C-Rpr10GE6/1/1]rpr rate-limiter high ringlet0 5

[H3C-Rpr10GE6/1/1]rpr rate-limiter high ringlet1 5

4.1.21  rpr reversion-mode

Syntax

rpr reversion-mode { revertive | non-revertive }

undo rpr reversion-mode

View

RPR logical port view

Parameter

non-revertive: Sets the protection reversion mode to non-revertive. After the WTR timer times out, the service cannot be restored till others request high priority protection in the ring.

revertive: Sets the protection reversion mode to revertive. After the WTR timer times out, the service can be restored at once.

Description

Use the rpr reversion-mode command to set the protection reversion mode.

Use the undo rpr reversion-mode command to restore the default mode.

The default RPR protection reversion mode is revertive.

Example

# Set RPR protection reversion mode to non-revertive.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1] rpr reversion-mode non-revertive

4.1.22  rpr static-rs

Syntax

rpr static-rs { mac-address } { ringlet0 | ringlet1 }

undo rpr static-rs { mac-address }

View

RPR logical port view

Parameter

mac-address: MAC address of destination node.

ringlet0: Transports packets to the specified node over Ringlet0.

ringlet1: Transports packets to the specified node over Ringlet1.

Description

Use the rpr static-rs command to configure static ring selection information and force the RPR ring to transmit packets to the specified node. You can configure them according to the IP address or MAC address of the destination node.

Use the undo rpr static-rs command to remove the configuration. If no parameter is selected, the command removes all static configurations.

By default, the static ring selection information is not configured.

Note that two nodes’ bridge MAC addresses cannot be the same on the ring. Here both Ringlet0 and Ringlet1 refer to sending sub-rings.

Example

# Transport data packets to the destination node with MAC address 0001-0002-0003 over ringlet0, and transport data packets to the destination node with MAC address 0001-0002-0004 over ringlet1.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1] rpr static-rs 0001-0002-0003 ringlet0

[H3C-RPR2/1/1] rpr static-rs 0001-0002-0004 ringlet1

4.1.23  rpr station-name

Syntax

rpr station-name string

undo rpr station-name string

View

RPR logical port view

Parameter

string: Station name, a string consisting of up to 20 characters.

Description

Use the rpr station-name command to configure a station name.

Use the undo rpr station-name command to remove the configuration.

Example

# Name the local station “hangzhou”.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1] rpr station-name hangzhou

4.1.24  rpr timer

Syntax

rpr timer { atd value | fdd value | holdoff value | stability value | tp-fast value | tp-slow value | tc-fast value | tc-slow value | wtr value }

undo rpr timer { atd | fdd | holdoff | stability | tp-fast | tp-slow | tc-fast | tc-slow | wtr}

View

PRP logical port view

Parameter

atd value: Ranges from 1 to 10 (in seconds).

fdd value: Ranges from 10 to 1,000 (in milliseconds).

holdoff value: Ranges from 0 to 200 (in milliseconds), in steps of 10 milliseconds.

stability value: Ranges from 10 to 100 (in milliseconds), in steps of 1 millisecond.

tp-fast value: TP fast timer value, in the range of 1 to 20 (in milliseconds).

tp-slow value: TP slow timer value, in the range of 50 to 1,000 (in milliseconds).

tc-fast value: TC fast timer value, in the range of 1 to 20 (in milliseconds).

tc-slow value: TC slow timer value, in the range of 50 to 1,000 (in milliseconds).

wtr value : WTR timer value, in the range of 0 to 1,440 (in seconds). By default, it is 10 seconds.

Description

Use the rpr timer atd command to set the value of the timer for sending ATD frames and other frames periodically. The value range is 1 to 10 (in seconds). The default value is 1 second.

Use the undo rpr timer command to restore the default timer value.

Example

# Set the timer for sending ATD frames to 3 seconds.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1] rpr timer atd 3

4.1.25  rpr weight

Syntax

rpr weight { ringlet0 | ringlet1 } value

undo rpr weight { ringlet0 | ringlet1 }

View

RPR logical port view

Parameter

ringlet0: Configures node weight on Ringlet0.

Ringlet1: Configures node weight on Ringlet1.

value: Node weight. The default value is 1.

Description

Use the rpr weight command to configure the node weight. Fairness algorithm uses node weight to calculate local fairness rate. The default weight is 1.

Use the undo rpr weight command to restore the default weight.

The fairness algorithm calculates the local fairness rate based on the node weight value. By default, the weight value is 0. In fact, the weight value configured here is the Nth power of 2, namely weight = 2 value, where value ranges 0 to 7. Therefore, the value range of weight is 1 to 255.

Example

# Set weight of nodes on ringlet0 to 2.

<H3C> system-view

[H3C] interface RPR2/1/1

[H3C-RPR2/1/1] rpr weight ringlet0 2

4.1.26  sdh threshold

Syntax

sdh threshold {sd-ber value | sf-ber value }

undo sdh threshold { sd-ber | s-ber }

View

RPR POS physical port view

Parameter

sd-ber: Threshold for signal degrade (SD BER).

sf-ber: Threshold for signal failure (SF BER).

value: Threshold index, in the range of 3 to 9. That is the alarm threshold is 10e-value.

Description

Use the sdh threshold command to configure the thresholds for SD and SF. By default, SD BER is 6, and SF BER is 3.

Use the undo sdh threshold command to restore the default configuration.

The alarm information configured by this command is the overhead in SDH frame header, which monitors SDH signals at each layer.

Example

# Set SD threshold for RPR POS physical port to 10e-6.

<H3C> system-view

[H3C] interface RPR 2/1/1.1

[H3C-RPR 2/1/1.1]sdh  threshold  sd-ber  6

4.1.27  shutdown

Syntax

shutdown

undo shutdown

View

RPR logical/physical port view

Parameter

None

Description

Use the shutdown command to disable the RPR port.

Use the undo shutdown command to enable the RPR port.

On a ring network, a large part of node traffic needs to be forwarded. To reduce the influence on forwarded traffic, you may need to carry out the shutdown command on the RPRPOS logical port. After the execution of the shutdown command, the logical port is in the Down state, and the locally added/dropped services are disabled.

After you disable the RPR physical port by shutdown, the corresponding laser is turned off, and the corresponding protection takes place..

Example

# Disable RPRPOS logical port RPR2/1/1.

<H3C> system-view

[H3C] interface RPR 2/1/1.1

[H3C-RPR2/1/1]shutdown

 


Chapter 5  IDS Linkage Configuration Commands

5.1  IDS Linkage Configuration Commands

5.1.1  ids-acl

Syntax

ids-acl enable

undo ids-acl enable

View

Ethernet port view

Parameter

disable: Disable IDS linkage on the port.

enable: Enable IDS linkage on the port.

Description

Use the acl-ids enable command to enable IDS linkage function.

Use the undo ids-acl enable command to disable IDS linkage function.

Example

# Enable IDS linkage on port Ethernet 3/1/1.

<H3C> system-view

[H3C] interface Ethernet 3/1/1 

[H3C-Ethernet3/1/1] ids-acl enable

5.1.2  display ids

Syntax

display ids { all | controlled-interface | name name | source ip-addr | destination ip-addr }

View

Any view

Parameter

all: Displays all information about IDS linkage.

name: Name of the IDS item to be displayed.

source ip-addr: Displays IDS linkage information about the specified source IP address.

destination ip-addr: Displays IDS linkage information about the specified destination IP address.

controlled-interface: Displays a list of ports with IDS linkage currently enabled.

Description

Use the display ids command to display IDS linkage information, which includes: 

l           The total number of IDS linkage messages

l           The list of ports available for IDS linkage

l           Displays the IDS linkage information which meets the requirement on by one

Example

# Display all information about IDS linkage.

[H3C]display ids all

Port list under IDS control is:                                    

   Ethernet2/1/10          Ethernet2/1/11          Ethernet2/1/12  

   Ethernet2/1/13          Ethernet2/1/14          Ethernet2/1/15  

ACL group ID list used by IDS is:                                  

    3997 3996 3995 3994 3993 3992 3991 3990 3989 3988              

Number of items 1, running items 1                                 

ACL rules created by IDS is:                                       

  1  Name 4                                                        

    Action deny,  time 3000, curtime 2860, group 3997, subitem 0   

    Smac any,    sip any,  swild 255.255.255.255,        prot 1    

    Dmac any,    dip any,  dwild 255.255.255.255,        prot 1

5.1.3  debugging ids-acl

Syntax

debugging ids-acl

undo debugging ids-acl

View

User view

Parameter

None

Description

Use the debugging ids-acl command to enable IDS linkage debugging.

Use the undo debugging ids-acl command to disable IDS linkage debugging.

By default, IDS linkage debugging is disabled.

Example

# Enable IDS linkage debugging.

<H3C>debugging ids-acl

# Disable IDS linkage debugging.

<H3C>undo debugging ids-acl

 


Chapter 6  Port Isolation Configuration Commands

6.1  Port Isolation Configuration Commands

6.1.1  port-isolate group

Syntax

port-isolate group isolate-group-id

undo port-isolate group isolate-group-id

View

System view

Parameter

isolate-group-id: Isolated group number, ranging from 1 to 64. The system supports 64 isolated groups.

Description

Use the port-isolate group command in system view to create an isolated group.

Use the undo port-isolate group isolate-group-id in system view to delete an isolated group. If you delete the isolated group, all ports in the isolated group exit from the group.

Example

# Create isolated group 1.

<H3C> system-view

[H3C] port-isolate group 1

6.1.2  port-isolate uplink-port group

Syntax

port-isolate uplink-port group isolate-group-id

undo port-isolate uplink-port group isolate-group-id

View

Ethernet port view/RPR port view

Parameter

isolate-group-id: Isolated group number, ranging from 1 to 64. The system supports 64 isolated groups.

Description

Use the port-isolate uplink-port group command to configure the port as an upstream port.

Use the undo port-isolate uplink-port group command to cancel the configuration.

By default, no upstream port is configured. 

Note that:

l           You can configure an upstream port for the isolated group only after you create the isolated group.

l           An upstream port can be an aggregation group, but not a static or dynamic aggregation group

l           An upstream port cannot serve as both an isolated port and an upstream port of the same isolated group

Example

# Configure port Ethernet2/1/1 as an upstream port. 

<H3C> system-view

[H3C]interface Ethernet2/1/1

[H3C-Ethernet2/1/1] port-isolate uplink-port group 1

6.1.3  port-isolate group

Syntax

port-isolate group isolate-group-id

undo port-isolate group

View

Ethernet port view/RPR port view

Parameter

isolate-group-id: Isolated group number, ranging from 1 to 64. The system supports 64 isolated groups. 

Description

Use the port-isolate group command in port view to configure the port as an isolated port of the isolated group.

Use the undo port-isolate group command to cancel the configuration.

Note that:

l           You can configure isolated ports for the isolated group only after you create the isolated group.

l           An isolated port can only be an Ethernet port or RPR logic port.

l           An isolated port cannot serve as both an isolated port and an uplink port in the same isolated group.

l           The number of isolated ports in an isolated group is not limited

Example

# Configure port Ethernet3/1/1 as an isolated port of isolated group 1.

<H3C> system-view

[H3C]interface Ethernet3/1/1

[H3C-Ethernet3/1/1] port-isolate group 1

6.1.4  display port-isolate group

Syntax

display port-isolate group [ isolate-group-id ] [ verbose ]

View

Any view

Parameter

isolate-group-id: Isolated group number, ranging from 1 to 64. The system supports 64 isolated groups. 

Description

Use the display port-isolate group command to display configuration information of an isolated group. If you do not specify the isolated group number, the system displays the configuration information of all the isolated groups. If you choose the verbose keyword, the system displays the information about isolated ports and upstream port of the isolated group, and VLAN information of each port.

Example

# Display configuration information of all isolated groups.

<H3C> display port-isolate group

Now, the following port-isolate-group exist(s): 1,2-10,14

 

Port-isolate-group ID: 1

Uplink-port: Ethernet3/1/1

Isolate-Port(s): Ethernet3/1/2, Ethernet3/1/3

 

Port-isolate-group ID: 2

Uplink-port: Ethernet3/1/4

Isolate-Port(s): Ethernet3/1/5, Ethernet3/1/6

 


Chapter 7  Port Packet Statistics Commands

7.1  Port Packet Statistics Commands

7.1.1  set egress

Syntax

set egress { counter0 | counter1 } slot slot-num [ interface interface-type interface-number ] [ vlan vlan-id ] [ tc traffic-class ] [ dp drop-precedence ]

undo set egress { counter0 | counter1 } slot slot-num [ interface interface-type interface-number ] [ vlan vlan-id ] [ tc traffic-class ] [ dp drop-precedence ]

View

System view

Parameter

counter0: Counter 0, used for packet statistics monitoring.

counter1: Counter 1, used for packet statistics monitoring.

slot-num: Card slot number.

interface-type interface-number: Port type and port number, which must match with the parameter slot-num. If you do not specify a specific port number, the command will apply to all the ports on the card. This command supports the following port types: Ethernet ports, ATM ports, POS ports and RPR ports.

vlan-id: VLAN ID defined in IEEE802.1Q. If you do not specify a specific VLAN, the command will apply to all VLANs.

traffic-class: Traffic class. If you do not specify a specific traffic class, the command will apply to all traffic classes.

drop-precedence: packet drop precedence. If you do not specify a drop precedence level, the command will apply to all drop precedence levels.

Description

Use the set egress command to set packet statistics counters. A card provides two sets of counters for monitoring egress packet statistics of the card. The monitored objects include ports, VLANs, ports+VLANs, and cards. In addition to these four types of objects, a traffic class (TC) or a drop precedence (DP) can also be monitored. When monitoring a card, the counters can monitor all TCs and all DPs.

Use the undo set egress command to cancel the configuration.

After you user the set egress counter command to set the monitoring mode of a card, the counters will be automatically reset.

By default, a card does not implement egress packet statistics.

Related command: display egress.

Note that:

l           You cannot configure ports as the objects to be monitored by the egress packet statistics counters on GV48D, GT24D, GP24D, XP4B and XP4CA cards.

l           This command does not support egress packet statistics on POS ports not bound to a VLAN.

l           After successful configuration, it is necessary to reset the counters to start counting again.

Example

# Set the egress packet statistics mode of Counter 0 on slot 4 so that it monitors port GigabitEthernet4/1/1.

[H3C] set egress counter0 slot 4 interface GigabitEthernet4/1/1

7.1.2  display egress counter

Syntax

display egress { counter0 | counter1 } slot slot-num [ clear ]

View

Any view

Parameter

counter0: Counter 0, used for packet statistics monitoring.

counter1: Counter 1, used for packet statistics monitoring.

slot-num: Card slot number. 

clear: Clears the counting data after a counter is read.

Description

Use the display egress command to display egress packet statistics information and the monitoring objects of a counter. To clear the counter data, include the parameter clear in the command.

Related command: set egress counter.

Example

# Query the egress packet statistics information of slot 4, and then clear the counter.

[H3C] display egress counter0 slot 4 clear

    The mode of counter0:

      Interface : all

      VLAN : all

      TC : all

      DP : all

    The outgoing packets:

       Unicast : 5000 packets

       Multicast : 2000 packets

       Broadcast: 1000 packets

    Bridge egress filtered packets(regardless of interface, priority or DP): 0 packets

TxQ filtered packets( Due to TxQ congestion ) : 0 packets

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网