How to configure the POS interface of an AR router

21

You can configure the POS interface of an AR router as follows:

# Before configuring the POS interface, you must register the 1STM1/1STM4/4STM1 interface card. The parameters and configurations of the POS interfaces on both ends must be consistent except for the clock mode.
[Huawei] interface pos 2/0/0
[RouterA-Pos2/0/0] frame-format sonet //Set the frame format of the POS interface to SONET.
[RouterA-Pos2/0/0] link-protocol hdlc //Set the link-layer protocol of the POS interface to HDLC.
[RouterA-Pos2/0/0] clock slave //Set the clock mode of the POS interface to slave.
[RouterA-Pos2/0/0] mtu 1200 //Set the MTU value of the POS interface to 1200.
[RouterA-Pos2/0/0] flag c2 3 //Set the overhead bytes of the POS interface.
[RouterA-Pos2/0/0] flag j0 16byte-mode abc
[RouterA-Pos2/0/0] flag j1 16byte-mode xyz
[RouterA-Pos2/0/0] undo scramble //Disable the load scrambling function of the POS interface.
[RouterA-Pos2/0/0] crc 16 //Set the CRC verification mode of the POS interface to CRC-16.
[Huawei-Pos2/0/0] threshold sd 8 //Set the SD alarm threshold of the POS interface to 10e-8.
[Huawei-Pos2/0/0] threshold sf 5 //Set the SF alarm threshold of the POS interface to 10e-5. The SD alarm threshold must be smaller than the SF alarm threshold.

Run the display interface pos 2/0/0 command to check the configuration and status of the POS interface.
Run the display interface brief command to check the brief information about the POS interface.

Other related questions:
Do AR routers support POS interfaces
POS interfaces that AR routers support are described as follows: 1STM1, ISTM4, and 4STM1 interface cards support POS interfaces. Currently, AR2200, AR3200, AR3600, AR2200-S, and AR3200-S series devices support ISTM1, ISTM4, and 4STM1 interface cards. NE16EX series devices support only 1STM1 and 1STM4 interface cards. - A 1STM1 interface card provides a POS optical interface with a rate of 155 Mbit/s. - A 1STM4 interface card provides a POS optical interface with a rate of 622 Mbit/s. - A 4STM1 interface card provides four POS optical interfaces with a rate of 155 Mbit/s or a POS optical interface with a rate of 622 Mbit/s (interface 0 is available and interface 1/2/3 are disabled).

How to check the configuration of the interface of an AR router
You can run the following commands to check the basic parameter configuration of an interface: - Run the display interface command to check the current running status of the interface, including the running status and basic configuration of the interface and the status of the packets forwarded by the interface. - Run the display interface brief command to check brief information about the status and configuration of the interface, including the physical state and protocol state of the interface, bandwidth utilization rate in transmitting and receiving directions in the recent period, and the number of error packets that are sent and received. - Run the display ip interface command to check the main configuration of the interface. - Run the display default-parameter interface command to check the default configuration of the interface. - Run the display interface description command to check the description of the interface. - Run the display interface counters { inbound | outbound } command to check the statistics of the packets sent or received by the physical interface.

How to configure interface groups on AR routers
If users need to perform the same configuration on multiple Ethernet interfaces, they can add the Ethernet interfaces into an interface group. Users only need to run the configuration command of a function once in an inteface group view to configure the function for all Ethernet interfaces included in the interface group. In this way, interfaces can be configured in batches and repeated configurations are reduced. Interfaces can be added into two types of interface groups: permanent interface groups and temporary interface groups, which have the same function. However, a temporary group is automatically deleted by the system after you quit the view of the temporary interface group. Configure a permanent interface group as follows: [Huawei] port-group portgroup1 [Huawei-port-group-portgroup1] group-member ethernet2/0/0 to ethernet2/0/1 //Add interface Eth2/0/0 and interface Eth2/0/1 to the interface group portgroup1. Configure a temporary interface group as follows: [Huawei] port-group group-member ethernet2/0/0 to ethernet2/0/1 //Add interface Eth2/0/0 and interface Eth2/0/1 to a temporary interface group. AR550 series products do not support interface groups.

How to configure a sub-interface on an AR router
A sub-interface is a virtual interface configured on a physical interface. It is generally used for the communication between a physical link and multiple remote ends. Sub-interfaces include: Ethernet sub-interfaces, Eth-Trunk sub-interfaces, PON sub-interfaces, ATM sub-interfaces, and FR sub-interfaces. Configure a sub-interface as follows: [Huawei] interface ethernet 2/0/0 [Huawei-Ethernet2/0/0] undo portswitch //Switch the current interface to a Layer-3 interface. [Huawei-Ethernet2/0/0] quit [Huawei] interface ethernet 2/0/0.1 //Enter the view of the sub-interface.

How to configure interface mirroring on AR routers
By configuring local interface mirroring (one mirroring interface or multiple mirroring interfaces), you can replicate the packets transmitted through the interface to local monitoring devices for analysis and surveillance.
Note:
Interfaces used in the example are just for reference. Configure local interface mirroring based on actual interface information in practice.
Before configuring local interface mirroring, ensure that the link protocol state of the interface is Up.
In the configuration commands, inbound indicates the inbound mirroring traffic and outbound indicates the outbound mirroring traffic. You can change outbound to inbound in the commands if you need outgoing mirroring traffic.

Scenario 1: Configure local interface mirroring (one mirroring interface)
(1)Configure the observing interface
#Configure GE0/0/1 as the local observing interface on the router.
system-view
[Huawei] observe-port interface gigabitethernet 0/0/1
(2)Configure the mirroring interface
#Configure GE0/0/2 as the mirroring interface, and bind the inbound mirroring traffic to the local observing interface, that is, replicate the packets received by the mirroring interface to the local observing interface.
[Huawei] interface gigabitethernet 0/0/2
[Huawei-GigabitEthernet0/0/2] mirror to observe-port inbound
[Huawei-GigabitEthernet0/0/2] return

For details, select Configuration > CLI-based Configuration > Network Management and Monitoring Configuration Guide >
Mirroring Configuration > Configuration Examples > Example for Configuring 1:1 Local Port Mirroring in the following URL: [http://support.huawei.com/hedex/hdx.do?docid=EDOC1000116356&id=dc_cfg_mirror_1131&text=Example%2520for%2520Configuring%25201%253A1%2520Local%2520Port%2520Mirroring&lang=en">Product Documentation.

Scenario 2: Configure local interface mirroring (multiple mirroring interfaces)
(1)Configure the observing interface
#Configure Eth0/0/1 as the local observing interface on the router.
system-view
[Huawei] observe-port interface ethernet 0/0/1
(2)Configure the mirroring interface.
Configure Eth0/0/0 as the mirroring interface on the router.
[Huawei] interface ethernet 0/0/0
[Huawei-Ethernet0/0/0] mirror to observe-port inbound
[Huawei-Ethernet0/0/0] quit
# Configure Eth0/0/2 as the mirroring interface on the router.
[Huawei] interface ethernet 0/0/2
[Huawei-Ethernet0/0/2] mirror to observe-port inbound
[Huawei-Ethernet0/0/2] return

For details, select Configuration > CLI-based Configuration > Network Management and Monitoring Configuration Guide >
Mirroring Configuration > Configuration Examples > Example for Configuring N:1 Local Port Mirroring in the following URL: Product Documentation.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top