No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

CLI-based Configuration Guide - Interface Management

AR100, AR120, AR160, AR1200, AR2200, AR3200, and AR3600 V300R003

This document provides the basic concepts, configuration procedures, and configuration examples of the interfaces supported by the device.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Example for Setting Physical Parameters of a POS Interface

Example for Setting Physical Parameters of a POS Interface

Networking Requirements

Two devices are connected through the SONET network, and routerB has been configured, as shown in Figure 14-2. To ensure successful connection, configure the POS interface of routerA.

The existing configurations are as follows:

  • The frame format of the POS interface on RouterB is SONET.
  • The link-layer protocol of the POS interface on RouterB is HDLC.
  • The clock mode of the POS interface on RouterB is slave.
  • The MTU of the POS interface on RouterB is 1200 bytes.
  • The POS interface on RouterB does not scramble payload data.
  • The CRC field length of the POS interface on RouterB is 16 bits.
  • The overhead bytes of the POS interface on RouterB are as follows: C2: 3, J0: abc (16 byte-mode), and J1: xyz (16 byte-mode).
Figure 14-2  POS interface networking diagram

Configuration Roadmap

The configuration roadmap is as follows:

  1. Set the frame format of the POS interface on RouterA to SONET.
  2. Set the link-layer protocol of the POS interface on Router A to HDLC.
  3. Set the clock mode of the POS interface on Router A to slave because the SONET network clock has high accuracy.
  4. Set the MTU of the POS interface on RouterA to 1200 bytes.
  5. Disable the payload data scrambling function of the POS interface on RouterA.
  6. Set the CRC field length of the POS interface on RouterA to 16 bits.
  7. Set overhead bytes of the POS interface on RouterB as follows: C2: 3, J0: abc, and J1: xyz.

Procedure

  1. Set the frame format of the POS interface on RouterA to SONET.

    <Huawei> system-view
    [Huawei] sysname RouterA
    [RouterA] interface pos 2/0/0
    [RouterA-Pos2/0/0] frame-format sonet
    

  2. Set the link-layer protocol of the POS interface on RouterA to HDLC.

    [RouterA-Pos2/0/0] link-protocol hdlc
    

  3. Set the clock mode of the POS interface on RouterA to slave.

    [RouterA-Pos2/0/0] clock slave
    

  4. Set the MTU of the POS interface on RouterA to 1200.

    [RouterA-Pos2/0/0] mtu 1200
    

  5. Set overhead bytes of the POS interface on RouterA.

    [RouterA-Pos2/0/0] flag c2 3
    [RouterA-Pos2/0/0] flag j0 16byte-mode abc
    [RouterA-Pos2/0/0] flag j1 16byte-mode xyz
    

  6. Disable the scrambling function of the POS interface on RouterA.

    [RouterA-Pos2/0/0] undo scramble
    

  7. Set the CRC field length of the POS interface on RouterA to 16 bits.

    [RouterA-Pos2/0/0] crc 16
    

  8. Set the POS interface IP address on RouterA.

    [RouterA-Pos2/0/0] ip address 10.1.1.1 30
    

  9. Verify the configuration.

    # Run the display interface pos command, and you can view the status of the POS interface on RouterA.

    [RouterA] display interface pos 2/0/0
    Pos2/0/0 current state : UP
    Line protocol current state : UP
    Description:HUAWEI, AR Series, Pos2/0/0 Interface
    Route Port,The Maximum Transmit Unit is 1200, Hold timer is 10(sec)
    Internet Address is 10.1.1.1/30
    Link layer protocol is nonstandard HDLC
    Last physical up time   : 2008-04-14 15:19:33
    Last physical down time : 2008-04-14 15:12:39
    Current system time: 2008-04-15 09:58:50
      Frame-format is Sonet,
      Source Clock is Slave,
      Source Loopback is Not Set.
      Tx: J0: abc, J1: xyz, C2: 0x3
      Rx: J0: abc, J1: xyz, C2: 0x3
    Last 300 seconds input rate 873 bytes/sec 6984 bits/sec 0 packets/sec
    Last 300 seconds output rate 1 bytes/sec 8 bits/sec 0 packets/sec
    
    Input: 313 packets, 40894162 bytes
      313 errors,
    Output: 7463 packets, 134334 bytes
        Input bandwidth utilization  :    0%
        Output bandwidth utilization :    0%                               

    # Run the ping command to check the connectivity of the network.

    [RouterA-Pos2/0/0] ping 10.1.1.2
      PING 10.1.1.2: 56  data bytes, press CTRL_C to break
        Reply from 10.1.1.2: bytes=56 Sequence=1 ttl=255 time=3 ms
        Reply from 10.1.1.2: bytes=56 Sequence=2 ttl=255 time=2 ms
        Reply from 10.1.1.2: bytes=56 Sequence=3 ttl=255 time=2 ms
        Reply from 10.1.1.2: bytes=56 Sequence=4 ttl=255 time=2 ms
        Reply from 10.1.1.2: bytes=56 Sequence=5 ttl=255 time=2 ms
      --- 10.1.1.2 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 2/2/3 ms

Configuration Files

  • Configuration file of RouterA

    #
     sysname RouterA
    #
    interface Pos2/0/0
     link-protocol hdlc
     mtu 1200
     ip address 10.1.1.1 255.255.255.252
     flag c2 3
     flag j0 16byte-mode abc
     flag j1 16byte-mode xyz
     frame-format sonet
     undo scramble
     crc 16
    #
    return
Translation
Download
Updated: 2019-03-06

Document ID: EDOC1100069331

Views: 20694

Downloads: 89

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next