Configuration procedure
Configure Router A:
# Configure interface Serial 2/0 to operate in asynchronous and protocol mode.
<RouterA> system-view [RouterA] interface serial 2/0 [RouterA-Serial2/0] physical-mode async [RouterA-Serial2/0] async mode protocol
# Enable SLIP encapsulation on interface Serial 2/0.
[RouterA-Serial2/0] link-protocol slip
# Assign an IP address to interface Serial 2/0.
[RouterA-Serial2/0] ip address 200.1.1.1 16
Configure Router B:
# Configure interface Serial 2/0 to operate in asynchronous and protocol mode.
<RouterB> system-view [RouterB] interface serial 2/0 [RouterB-Serial2/0] physical-mode async [RouterB-Serial2/0] async mode protocol
# Enable SLIP encapsulation on interface Serial 2/0.
[RouterB-Serial2/0] link-protocol slip
# Assign an IP address to interface Serial 2/0.
[RouterB-Serial2/0] ip address 200.1.1.2 16
Verify the configuration:
Use the display interface command to view the information about interface Serial 2/0. The physical layer status and link layer status of Serial 2/0 are both up, and Router A and Router B can successfully ping each other.
[RouterB-Serial2/0] display interface serial 2/0 Serial2/0 current state: UP Line protocol current state: UP Description: Serial2/0 Interface The Maximum Transmit Unit is 1500, Hold timer is 10(sec) Internet Address is 200.1.1.2/16 Primary Link layer protocol is SLIP Output queue : (Urgent queuing : Size/Length/Discards) 0/100/0 Output queue : (Protocol queuing : Size/Length/Discards) 0/500/0 Output queue : (FIFO queuing : Size/Length/Discards) 0/75/0 Physical layer is asynchronous, Baudrate is 9600 bps Last clearing of counters: Never Last 300 seconds input rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec Last 300 seconds output rate 0.00 bytes/sec, 0 bits/sec, 0.00 packets/sec Input: 11753 packets, 147028 bytes 0 broadcasts, 0 multicasts 16 errors, 0 runts, 3 giants 1 CRC, 0 align errors, 0 overruns 0 dribbles, 0 aborts, 0 no buffers 12 frame errors Output:11741 packets, 142014 bytes 0 errors, 0 underruns, 0 collisions 0 deferred DCD=DOWN DTR=UP DSR=UP RTS=UP CTS=UP [RouterB-Serial2/0] ping 200.1.1.1 PING 200.1.1.1: 56 data bytes, press CTRL_C to break Reply from 200.1.1.1: bytes=56 Sequence=1 ttl=255 time=103 ms Reply from 200.1.1.1: bytes=56 Sequence=2 ttl=255 time=1 ms Reply from 200.1.1.1: bytes=56 Sequence=3 ttl=255 time=1 ms Reply from 200.1.1.1: bytes=56 Sequence=4 ttl=255 time=1 ms Reply from 200.1.1.1: bytes=56 Sequence=5 ttl=255 time=10 ms --- 200.1.1.1 ping statistics --- 5 packet(s) transmitted 5 packet(s) received 0.00% packet loss round-trip min/avg/max = 1/23/103 ms