IP address negotiation configuration examples

Specifying an IP address for the client on the server interface

Network requirements

As shown in Figure 6, configure Router A to allocate an IP address to Serial 2/1/0 of Router B through PPP negotiation. The IP address is specified on Serial 2/1/0 of Router A.

Figure 6: Network diagram

Configuration procedure

  1. Configure Router A:

    # Configure an IP address to be assigned to the peer interface on Serial 2/1/0.

    <RouterA> system-view
    [RouterA] interface serial 2/1/0
    [RouterA-Serial2/1/0] remote address 200.1.1.10
    

    # Configure an IP address for Serial 2/1/0.

    [RouterA-Serial2/1/0] ip address 200.1.1.1 16
    
  2. Enable IP address negotiation on Serial 2/1/0 of Router B.

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

    # Display summary information about Serial 2/1/0 on Router B.

    [RouterB-Serial2/1/0] display interface serial 2/1/0 brief
    Brief information on interfaces in route mode:
    Link: ADM - administratively down; Stby - standby
    Protocol: (s) - spoofing
    Interface            Link Protocol Primary IP         Description
    S2/1/0               UP   UP       200.1.1.10
    

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

    # Verify that Router B can ping Serial 2/1/0 of Router A.

    [RouterB-Serial2/1/0] ping 200.1.1.1
    Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break
    56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms
    56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms
    56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms
    56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms
    56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms
    
    --- Ping statistics for 200.1.1.1 ---
    5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
    round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms
    

Specifying a PPP address pool on the server interface

Network requirements

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

Figure 7: Network diagram

Configuration procedure

  1. Configure Router A:

    # Configure PPP address pool aaa that contains IP addresses 200.1.1.10 through 200.1.1.20 for group AAA.

    <RouterA> system-view
    [RouterA] ip pool aaa 200.1.1.10 200.1.1.20 group AAA
    

    # Configure a PPP address pool route.

    [RouterA] ppp ip-pool route 200.1.1.1 24
    

    # Configure Serial 2/1/0 to assign an IP address from aaa to the peer interface.

    [RouterA] interface serial 2/1/0
    [RouterA-Serial2/1/0] remote address pool aaa
    

    # Configure an IP address for Serial 2/1/0.

    [RouterA-Serial2/1/0] ip address 200.1.1.1 16
    
  2. Enable IP address negotiation on Serial 2/1/0 of Router B.

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

    # Display summary information about Serial 2/1/0 on Router B.

    [RouterB-Serial2/1/0] display interface serial 2/1/0 brief
    Brief information on interfaces in route mode:
    Link: ADM - administratively down; Stby - standby
    Protocol: (s) - spoofing
    Interface            Link Protocol Primary IP         Description
    S2/1/0               UP   UP       200.1.1.10
    

    The output shows that Serial 2/1/0 has obtained IP address 200.1.1.10 through PPP negotiation.

    # Verify that Router B can ping Serial 2/1/0 of Router A.

    [RouterB-Serial2/1/0] ping 200.1.1.1
    Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break
    56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms
    56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms
    56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms
    56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms
    56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms
    
    --- Ping statistics for 200.1.1.1 ---
    5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
    round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms
    

    # Display PPP address pool aaa on Serial 2/1/0 of Router A.

    [RouterA-Serial2/1/0] display ip pool aaa
    Group name: AAA
      Pool name       Start IP address    End IP address     Free    In use
      aaa             200.1.1.10          200.1.1.20         10      1
    In use IP addresses: 
      IP address      Interface 
      200.1.1.10      S2/1/0
    

    The output shows that one IP address has been assigned.

Using the PPP address pool associated with an ISP domain

Network requirements

As shown in Figure 8, configure Router A to allocate an IP address from the PPP address pool associated with the ISP domain to Serial 2/1/0 of Router B through PPP negotiation.

Figure 8: Network diagram

Configuration procedure

  1. Configure Router A:

    # Configure PPP address pool aaa that contains IP addresses 200.1.1.10 through 200.1.1.20 for the group AAA.

    <RouterA> system-view
    [RouterA] ip pool aaa 200.1.1.10 200.1.1.20 group AAA
    

    # Configure a PPP address pool route.

    [RouterA] ppp ip-pool route 200.1.1.1 24
    

    # Create a local user for Router B.

    [RouterA] local-user userb class network
    

    # Set a password for the local user.

    [RouterA-luser-network-userb] password simple 123
    

    # Set the service type to PPP for the local user.

    [RouterA-luser-network-userb] service-type ppp
    [RouterA-luser-network-userb] quit
    

    # Create ISP domain bbb and associate aaa with bbb.

    [RouterA] domain bbb
    [RouterA-isp-bbb] authorization-attribute ip-pool aaa
    [RouterA-isp-bbb] quit
    

    # Configure Serial 2/1/0 to authenticate the peer interface in bbb by using PAP.

    [RouterA] interface serial 2/1/0
    [RouterA-Serial2/1/0] ppp authentication-mode pap domain bbb
    

    # Configure an IP address for Serial 2/1/0.

    [RouterA-Serial2/1/0] ip address 200.1.1.1 16
    
  2. Configure Router B:

    # Configure the username and password for PAP authentication by Router A.

    <RouterB> system-view
    [RouterB] interface serial 2/1/0
    [RouterB-Serial2/1/0] ppp pap local-user userb password simple 123
    

    # Enable IP address negotiation on Serial 2/1/0.

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

    # Display summary information about Serial 2/1/0 on Router B.

    [RouterB-Serial2/1/0] display interface serial 2/1/0 brief
    Brief information on interfaces in route mode:
    Link: ADM - administratively down; Stby - standby
    Protocol: (s) - spoofing
    Interface            Link Protocol Primary IP         Description
    S2/1/0               UP   UP       200.1.1.10
    

    The output shows that Serial 2/1/0 has obtained IP address 200.1.1.10 through PPP negotiation.

    # Verify that Router B can ping Serial 2/1/0 of Router A.

    [RouterB-Serial2/1/0] ping 200.1.1.1
    Ping 200.1.1.1 (200.1.1.1): 56 data bytes, press CTRL_C to break
    56 bytes from 200.1.1.1: icmp_seq=0 ttl=128 time=3.197 ms
    56 bytes from 200.1.1.1: icmp_seq=1 ttl=128 time=2.594 ms
    56 bytes from 200.1.1.1: icmp_seq=2 ttl=128 time=2.739 ms
    56 bytes from 200.1.1.1: icmp_seq=3 ttl=128 time=1.738 ms
    56 bytes from 200.1.1.1: icmp_seq=4 ttl=128 time=1.744 ms
    
    --- Ping statistics for 200.1.1.1 ---
    5 packet(s) transmitted, 5 packet(s) received, 0.0% packet loss
    round-trip min/avg/max/std-dev = 1.738/2.402/3.197/0.576 ms
    

    # Display the address pools on Serial 2/1/0 of Router A.

    [RouterA-Serial2/1/0] display ip pool aaa
    Group name: AAA
      Pool name       Start IP address    End IP address     Free    In use
      aaa             200.1.1.10          200.1.1.20         10      1
    In use IP addresses:
      IP address      Interface
      200.1.1.10      S2/1/0
    

    The output shows that one IP address of aaa has been assigned.