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 15-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).
Configuration Roadmap
The configuration roadmap is as follows:
- Set the frame format of the POS interface on RouterA to SONET.
- Set the link-layer protocol of the POS interface on Router A to HDLC.
- Set the clock mode of the POS interface on Router A to slave because the SONET network clock has high accuracy.
- Set the MTU of the POS interface on RouterA to 1200 bytes.
- Disable the payload data scrambling function of the POS interface on RouterA.
- Set the CRC field length of the POS interface on RouterA to 16 bits.
- Set overhead bytes of the POS interface on RouterA as follows: C2: 3, J0: abc, and J1: xyz.
Procedure
- 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
- Set the link-layer protocol of the POS interface on RouterA to HDLC.
[RouterA-Pos2/0/0] link-protocol hdlc
- Set the clock mode of the POS interface on RouterA to slave.
[RouterA-Pos2/0/0] clock slave
- Set the MTU of the POS interface on RouterA to 1200.
[RouterA-Pos2/0/0] mtu 1200
- 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
- Disable the scrambling function of the POS interface on RouterA.
[RouterA-Pos2/0/0] undo scramble
- Set the CRC field length of the POS interface on RouterA to 16 bits.
[RouterA-Pos2/0/0] crc 16
- Set the POS interface IP address on RouterA.
[RouterA-Pos2/0/0] ip address 10.1.1.1 30
- Verify the configuration.
# Run the display interface pos command to 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, 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