MP binding mode configuration examples

Network requirements

As shown in Figure 9, bind the links in the three MP binding modes.

Figure 9: Network diagram

Configuration procedure

(Method 1) Directly bind the physical interfaces to a VT interface.

  1. Configure Router A:

    # Configure the username and password of Router B.

    <RouterA> system-view
    [RouterA] local-user rtb
    [RouterA-luser-rtb] password simple rtb
    [RouterA-luser-rtb] service-type ppp
    [RouterA-luser-rtb] quit
    

    # Create a VT interface and assign an IP address to it.

    [RouterA] interface virtual-template 1
    [RouterA-Virtual-Template1] ip address 8.1.1.1 24
    [RouterA-Virtual-Template1] ppp mp binding-mode authentication
    

    # Configure Serial 2/1.

    [RouterA-Virtual-Template1] quit
    [RouterA] interface serial 2/1
    [RouterA-Serial2/1] link-protocol ppp
    [RouterA-Serial2/1] ppp authentication-mode pap domain system
    [RouterA-Serial2/1] ppp pap local-user rta password simple rta
    [RouterA-Serial2/1] ppp mp virtual-template 1
    [RouterA-Serial2/1] shutdown
    [RouterA-Serial2/1] undo shutdown
    [RouterA-Serial2/1] quit
    

    # Configure Serial 2/0.

    [RouterA] interface serial2/0
    [RouterA-Serial2/0] link-protocol ppp
    [RouterA-Serial2/0] ppp authentication-mode pap domain system
    [RouterA-Serial2/0] ppp pap local-user rta password simple rta
    [RouterA-Serial2/0] ppp mp virtual-template 1
    [RouterA-Serial2/0] shutdown
    [RouterA-Serial2/0] undo shutdown
    [RouterA-Serial2/0] quit
    

    # Configure local authentication for the PPP users in the default ISP domain system.

    [RouterA] domain system
    [RouterA-isp-system] authentication ppp local
    [RouterA-isp-system] quit
    
  2. Configure Router B:

    # Configure the username and password of Router A.

    <RouterB> system-view
    [RouterB] local-user rta
    [RouterB-luser-rta] password simple rta
    [RouterB-luser-rta] service-type ppp
    [RouterB-luser-rta] quit
    

    # Create a VT interface and assign an IP address to it.

    [RouterB] interface virtual-template 1
    [RouterB-Virtual-Template1] ip address 8.1.1.2 24
    [RouterB-Virtual-Template1] ppp mp binding-mode authentication
    [RouterB-Virtual-Template1] quit
    

    # Configure Serial 2/1.

    [RouterB] interface serial 2/1
    [RouterB-Serial2/1] link-protocol ppp
    [RouterB-Serial2/1] ppp authentication-mode pap domain system
    [RouterB-Serial2/1] ppp pap local-user rtb password simple rtb
    [RouterB-Serial2/1] ppp mp virtual-template 1
    [RouterB-Serial2/1] shutdown
    [RouterB-Serial2/1] undo shutdown
    [RouterB-Serial2/1] quit
    

    # Configure Serial 2/0.

    [RouterB] interface serial 2/0
    [RouterB-Serial2/0] link-protocol ppp
    [RouterB-Serial2/0] ppp authentication-mode pap domain system
    [RouterB-Serial2/0] ppp pap local-user rtb password simple rtb
    [RouterB-Serial2/0] ppp mp virtual-template 1
    [RouterB-Serial2/0] shutdown
    [RouterB-Serial2/0] undo shutdown
    [RouterB-Serial2/0] quit
    

    # Configure local authentication for the PPP users in the default ISP domain system.

    [RouterB] domain system
    [RouterB-isp-system] authentication ppp local
    [RouterB-isp-system] quit
    
  3. Verify the configuration on Router A:

    [RouterA] display ppp mp
    Template is Virtual-Template1
    Bundle rtb, 2 member, Master link is Virtual-Template1:0
    0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved,
    sequence 0/0 rcvd/sent
    The bundled member channels are:
          Serial2/1
          Serial2/0
    
  4. Display the status of the VA interfaces:

    [RouterA] display virtual-access
    Virtual-Template1:0 current state: UP
    Line protocol current state: UP
    Description: Virtual-Template0:0 Interface
    The Maximum Transmit Unit is 1500
    Link layer protocol is PPP
    LCP opened, MP opened, IPCP opened, OSICP opened
    Physical is MP, baudrate: 64000 bps
    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
        Last 300 seconds input:  0 bytes/sec 0 packets/sec
        Last 300 seconds output:  0 bytes/sec 0 packets/sec
        520 packets input, 44132 bytes, 0 drops
        527 packets output, 44566 bytes, 4 drops
    

    The output on Router B is similar.

  5. Ping the IP address 8.1.1.1 on Router B:

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

    Because PPP authentication is configured on the physical interface, the bundle field in the output from the display ppp mp command is the peer username. If authentication is disabled, the bundle field should be the peer descriptor.

    In addition, you can check the state of MP virtual channels by checking the state of virtual access interfaces by using the display virtual-access command.

(Method 2) Associate the remote username with a VT interface.

  1. Configure Router A:

    # Configure the username and password of Router B.

    <RouterA> system-view
    [RouterA] local-user rtb 
    [RouterA-luser-rtb] password simple rtb
    [RouterA-luser-rtb] service-type ppp
    [RouterA-luser-rtb] quit
    

    # Specify a VT interface to user RTB.

    [RouterA] ppp mp user rtb bind virtual-template 1
    

    # Create the VT interface and configure its IP address.

    [RouterA] interface virtual-template 1
    [RouterA-Virtual-Template1] ip address 8.1.1.1 24
    [RouterA-Virtual-Template1] ppp mp binding authentication
    [RouterA-Virtual-Template1] quit
    

    # Configure Serial 2/1.

    [RouterA] interface serial 2/1
    [RouterA-Serial2/1] link-protocol ppp
    [RouterA-Serial2/1] ppp authentication-mode pap domain system
    [RouterA-Serial2/1] ppp pap local-user rta password simple rta
    [RouterA-Serial2/1] ppp mp
    [RouterA-Serial2/1] shutdown
    [RouterA-Serial2/1] undo shutdown
    [RouterA-Serial2/1] quit
    

    # Configure Serial 2/0.

    [RouterA] interface serial 2/0
    [RouterA-Serial2/0] link-protocol ppp
    [RouterA-Serial2/0] ppp authentication-mode pap domain system
    [RouterA-Serial2/0] ppp pap local-user rta password simple rta
    [RouterA-Serial2/0] ppp mp
    [RouterA-Serial2/0] shutdown
    [RouterA-Serial2/0] undo shutdown
    [RouterA-Serial2/0] quit
    

    # Configure local authentication for the PPP users in the default ISP domain system.

    [RouterA] domain system
    [RouterA-isp-system] authentication ppp local
    [RouterA-isp-system] quit
    
  2. Configure Router B:

    # Configure the username and password of Router A.

    <RouterB> system-view
    [RouterB] local-user rta
    [RouterB-luser-rta] password simple rta
    [RouterB-luser-rta] service-type ppp
    [RouterB-luser-rta] quit
    

    # Specify a VT interface to user RTA.

    [RouterB] ppp mp user rta bind virtual-template 1
    

    # Create the VT interface and configure its IP address.

    [RouterB] interface virtual-template 1
    [RouterB-Virtual-Template1] ip address 8.1.1.2 24
    [RouterB-Virtual-Template1] ppp mp binding authentication
    [RouterB-Virtual-Template1] quit
    

    # Configure Serial 2/1.

    [RouterB] interface serial 2/1
    [RouterB-Serial2/1] link-protocol ppp
    [RouterB-Serial2/1] ppp authentication-mode pap domain system
    [RouterB-Serial2/1] ppp pap local-user rtb password simple rtb
    [RouterB-Serial2/1] ppp mp
    [RouterB-Serial2/1] shutdown
    [RouterB-Serial2/1] undo shutdown
    [RouterB-Serial2/1] quit
    

    # Configure Serial 2/0.

    [RouterB] interface serial 2/0
    [RouterB-Serial2/0] link-protocol ppp
    [RouterB-Serial2/0] ppp authentication-mode pap domain system
    [RouterB-Serial2/0] ppp pap local-user rtb password simple rtb
    [RouterB-Serial2/0] ppp mp
    [RouterB-Serial2/0] shutdown
    [RouterB-Serial2/0] undo shutdown
    [RouterB-Serial2/0] quit
    

    # Configure the user in the domain to use the local authentication scheme.

    [RouterB] domain system
    [RouterB-isp-system] authentication ppp local
    [RouterB-isp-system] quit
    
  3. Verify the configuration on Router A:

    <RouterA> display ppp mp
    Template is Virtual-Template1
    Bundle rtb, 2 member, Master link is Virtual-Template1:0
    0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved,
    sequence 0/0 rcvd/sent
    The bundled member channels are:
          Serial2/1
          Serial2/0
    
  4. Verify the configuration on Router B:

    [RouterB] display ppp mp
    Template is Virtual-Template1
    Bundle rta, 2 member, Master link is Virtual-Template1:0
    0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved,
    sequence 0/0 rcvd/sent
    The bundled member channels are:
          Serial2/1
          Serial2/0
    

    # Display the status of the VA interfaces.

    [RouterB] display virtual-access
    Virtual-Template1:0 current state : UP
    Line protocol current state : UP
    Description : Virtual-Template1:0 Interface
    The Maximum Transmit Unit is 1500
    Link layer protocol is PPP
    LCP opened, MP opened, IPCP opened, OSICP opened, MPLSCP opened
    Physical is MP
    Output queue : (Urgent queue : Size/Length/Discards)  0/500/0
    Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0
        5 minutes input rate 0 bytes/sec, 0 packets/sec
        5 minutes output rate 0 bytes/sec, 0 packets/sec
        21 packets input, 1386 bytes, 0 drops
    21 packets output, 1386 bytes, 0 drops
    

    # Ping the IP address 8.1.1.1 on Router B.

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

    When you bind interfaces Serial 2/1 and Serial 2/0 to the same MP, if you configure one interface as ppp mp and the other as ppp mp virtual-template 1, the system will bind the two interfaces to different MPs.

(Method 3) Configure an MP bundle on an MP-group interface.

In addition to VT interfaces, the system provides MP-group interfaces to implement MP bundle. This implementation is similar to directly adding physical interfaces to a VT interface.

  1. Configure Router A:

    # Configure the username and password of Router B.

    <RouterA> system-view
    [RouterA] local-user rtb 
    [RouterA-luser-rtb] password simple rtb
    [RouterA-luser-rtb] service-type ppp
    [RouterA-luser-rtb] quit
    

    # Create an MP-group interface, and assign an IP address to it.

    [RouterA] interface mp-group 1
    [RouterA-Mp-group1] ip address 111.1.1.1 24
    

    # Configure Serial 2/1.

    [RouterA-Mp-group1] quit
    [RouterA] interface serial 2/1
    [RouterA-Serial2/1] link-protocol ppp
    [RouterA-Serial2/1] ppp authentication-mode pap domain system
    [RouterA-Serial2/1] ppp pap local-user rta password simple rta
    [RouterA-Serial2/1] ppp mp mp-group 1 
    [RouterA-Serial2/1] shutdown
    [RouterA-Serial2/1] undo shutdown
    [RouterA-Serial2/1] quit
    

    # Configure Serial 2/0.

    [RouterA] interface serial 2/0
    [RouterA-Serial2/0] link-protocol ppp
    [RouterA-Serial2/0] ppp authentication-mode pap domain system
    [RouterA-Serial2/0] ppp pap local-user rta password simple rta
    [RouterA-Serial2/0] ppp mp mp-group 1
    [RouterA-Serial2/0] shutdown
    [RouterA-Serial2/0] undo shutdown
    [RouterA-Serial2/0] quit
    

    # Configure local authentication for the PPP users in the default ISP domain system.

    [RouterA] domain system
    [RouterA-isp-system] authentication ppp local
    [RouterA-isp-system] quit
    
  2. Configure Router B:

    # Configure username and password for Router A

    <RouterB> system-view
    [RouterB] local-user rta
    [RouterB-luser-rta] password simple rta
    [RouterB-luser-rta] service-type ppp
    [RouterB-luser-rta] quit
    

    # Create an MP-group interface and assign an IP address to it.

    [RouterB] interface mp-group 1
    [RouterB-Mp-group1] ip address 111.1.1.2 24
    [RouterB-Mp-group1] quit
    

    # Configure Serial 2/1.

    [RouterB] interface serial 2/1
    [RouterB-Serial2/1] link-protocol ppp
    [RouterB-Serial2/1] ppp authentication-mode pap domain system
    [RouterB-Serial2/1] ppp pap local-user rtb password simple rtb
    [RouterB-Serial2/1] ppp mp mp-group 1
    [RouterB-Serial2/1] shutdown
    [RouterB-Serial2/1] undo shutdown
    [RouterB-Serial2/1] quit
    

    # Configure Serial 2/0.

    [RouterB] interface serial 2/0
    [RouterB-Serial2/0] link-protocol ppp
    [RouterB-Serial2/0] ppp authentication-mode pap domain system
    [RouterB-Serial2/0] ppp pap local-user rtb password simple rtb
    [RouterB-Serial2/0] ppp mp mp-group 1
    [RouterB-Serial2/0] shutdown
    [RouterB-Serial2/0] undo shutdown
    [RouterB-Serial2/0] quit
    

    # Configure local authentication for the PPP users in the default ISP domain system.

    [RouterB] domain system
    [RouterB-isp-system] authentication ppp local
    [RouterB-isp-system] quit
    
  3. Verify the configuration on Router A:

    [RouterA] display ppp mp
    Mp-group is Mp-group1
    Bundle Multilink, 2 member, Master link is Mp-group1
    0 lost fragments, 0 reordered, 0 unassigned, 0 interleaved,
    sequence 0/0 rcvd/sent
    The bundled member channels are:
          Serial2/1
          Serial2/0
    

    # Display the state of interface Mp-group 1.

    [RouterA] display interface Mp-group 1
    Mp-group1 current state : UP
    Line protocol current state : UP
    Description : Mp-group1 Interface
    The Maximum Transmit Unit is 1500, Hold timer is 10(sec)
    Internet Address is 111.1.1.1/24
    Link layer protocol is PPP
    LCP opened, MP opened, IPCP opened, MPLSCP opened
    Physical is MP
    Output queue : (Urgent queue : Size/Length/Discards)  0/500/0
    Output queue : (FIFO queuing : Size/Length/Discards)  0/75/0
        5 minutes input rate 0 bytes/sec, 0 packets/sec
        5 minutes output rate 0 bytes/sec, 0 packets/sec
        5 packets input, 58 bytes, 0 drops
    5 packets output, 54 bytes, 0 drops
    

    # Ping the IP address 111.1.1.2 on Router A.

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

In this approach, all the users are bound together to the MP-group interface and the concept of virtual access is not involved.