How to configure the CPOS interface of an AR router

19

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

# The interconnection mode of the CPOS interface must be configured when the CPOS interfaces of the local device and the peer device (which is not a Huawei product) are directly connected by optical fibers or connected through a WDM.
[Huawei] controller cpos 1/0/0
[Huawei-Cpos1/0/0] multi-channel align-mode alcatel //Set the interconnection mode of the CPOS interface to Alcatel.

# Different synchronous transfer modes (SDH or SONET) are used in different regions. You must configure the CPOS interface based on the synchronous transfer mode used in your region.
If SDH transfer mode is used in your region, configure the CPOS interface as follows:
[Huawei-Cpos1/0/0] frame-format sdh //Set the frame format of the CPOS interface to SDH.
[Huawei-Cpos1/0/0] multiplex mode au-3 //Set the AUG multiplexing route of the CPOS interface to AU-3 multiplexing.
[[Huawei-Cpos1/0/0] flag c2 3 //Set the overhead bytes of the CPOS interface.
[Huawei-Cpos1/0/0] flag s1 14
[Huawei-Cpos1/0/0] flag j0 16byte-mode abc
[Huawei-Cpos1/0/0] flag j1 16byte-mode xyz
[Huawei-Cpos1/0/0] clock master //Set the clock mode of the CPOS interface to master.
[Huawei-Cpos1/0/0] itf type ff //Set the characters filled between frames on the CPOS interface to 0xff.

If SONET transfer mode is used in your region, configure the CPOS interface as follows:
[Huawei-Cpos1/0/0] frame-format sonet //Set the frame format of the CPOS interface to SONET.
[Huawei-Cpos1/0/0] flag c2 3 //Set the overhead bytes of the CPOS interface.
[Huawei-Cpos1/0/0] flag s1 14
[Huawei-Cpos1/0/0] flag j0 16byte-mode abc
[Huawei-Cpos1/0/0] flag j1 16byte-mode xyz
[Huawei-Cpos1/0/0] clock master //Set the clock mode of the CPOS interface to master.
[Huawei-Cpos1/0/0] itf type ff //Set the characters filled between frames on the CPOS interface to 0xff.

Run the display controller cpos 1/0/0 command to check the physical layer configuration of the CPOS interface.

Other related questions:
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