PPP IP address negotiation configuration example

Network requirements

As shown in Figure 7, configure Router A to allocate an IP address for Serial 2/0 of Router B through PPP negotiation.

Figure 7: Network diagram

Configuration procedure

  1. Configure Router A:

    # Configure a local IP address pool.

    <RouterA> system-view
    [RouterA] ip pool 1 200.1.1.10 200.1.1.20
    

    # Configure the IP address of Serial 2/0.

    [RouterA] interface serial 2/0
    [RouterA-Serial2/0] ip address 200.1.1.1 16
    

    # Allocate an IP address to the remote port (Serial 2/0 of Router B) from the IP address pool.

    [RouterA-Serial2/0] remote address pool 1
    
  2. Configure Router B:

    # Enable IP address negotiation on Serial 2/0.

    <RouterB> system-view
    [RouterB] interface serial 2/0
    [RouterB-Serial2/0] ip address ppp-negotiate
    
  3. Verify the configuration:

    # After the configuration is complete, display summary information about Serial 2/0 on Router B.

    [RouterB-Serial2/0] display interface serial 2/0 brief
    The brief information of interface(s) under route mode:
    Link: ADM - administratively down; Stby - standby
    Protocol: (s) - spoofing
    Interface            Link Protocol Main IP         Description
    S2/0                 UP   UP       200.1.1.10
    

    The output shows Serial 2/0 obtains IP address 200.1.1.10 through PPP negotiation.

    # Ping Serial 2/0 of Router A from Router B.

    [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=1 ms
        Reply from 200.1.1.1: bytes=56 Sequence=2 ttl=255 time=4 ms
        Reply from 200.1.1.1: bytes=56 Sequence=3 ttl=255 time=4 ms
        Reply from 200.1.1.1: bytes=56 Sequence=4 ttl=255 time=10 ms
        Reply from 200.1.1.1: bytes=56 Sequence=5 ttl=255 time=4 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/4/10 ms
    

    The output shows Serial 2/0 of Router A can be pinged.