When the access and aggregation layers belong to one AS, and the core layer belongs to another AS, inter-AS seamless MPLS can be configured to implement the service connectivity between a NodeB and an MME or SGW.

Networking Requirements

In Figure 1, the access and aggregation layers belong to one AS, and the core layer belongs to another AS. NodeBs need to communicate with an MME or SGW over a VPN. To meet this requirement, inter-AS seamless MPLS can be configured.
Figure 1 Inter-AS seamless MPLS networking (1)
Addresses of interfaces are planned for the CSGs, AGGs, AGG ASBRs, core ASBRs, and MASGs shown in Figure 2.
Figure 2 Inter-AS seamless MPLS networking (2)

Configuration Roadmap

The configuration roadmap is as follows:
  1. Configure IGP protocols at the access, aggregation, and core layers to implement network connectivity at each layer.
  2. Configure MPLS and MPLS LDP and establish MPLS LSPs at the access, aggregation, and core layers.
  3. Establish IBGP peer relationships at each layer and enable devices to exchange labeled routes.
  4. Configure an EBGP peer relationship between each pair of an AGG ASBR and core ASBR and enable these devices to exchange labeled routes across ASs.
  5. Configure each AGG as an RR to help the CSG and MASG obtain the route destined for each other’s loopback interface.
  6. Configure a routing policy to control label distribution for a BGP LSP to be established on each device. The egress of the BGP LSP to be established needs to assign an MPLS label to the route advertised to an upstream node. If a transit node receives a labeled IPv4 route from downstream, the downstream node must re-assign an MPLS label to the transit node.

Data Preparation

To complete the configuration, you need the following data:
  • OSPF process ID (1) at the access layer, IS-IS process ID (1) at the aggregation layer, and OSPF process ID (2) at the core layer
  • MPLS LSR IDs: 1.1.1.1 for the CSG, 2.2.2.2 for the AGG, 3.3.3.3 for the AGG ASBR, 4.4.4.4 for the core ASBR, and 5.5.5.5 for the MASG.
  • Name of a routing policy (policy1)

Procedure

  1. Assign an IP address to each interface.
    Assign an IP address and its mask to every physical interface; configure a loopback interface address as an LSR ID on every device shown in Figure 2; configure OSPF and IS-IS to advertise the route to the network segment of each interface and a host route to each loopback interface address (LSR ID).
  2. Enable MPLS and LDP globally on each device.
    # Configure the CSG.
    [~CSG] mpls lsr-id 1.1.1.1
    [*CSG] mpls
    [*CSG-mpls] quit
    [*CSG] mpls ldp
    [*CSG-mpls-ldp] quit
    [*CSG] interface GigabitEthernet 0/1/0
    [*CSG-GigabitEthernet0/1/0] mpls
    [*CSG-GigabitEthernet0/1/0] mpls ldp
    [*CSG-GigabitEthernet0/1/0] quit
    [*CSG] commit
    # Configure the AGG.
    <AGG> system-view 
    [~AGG] mpls lsr-id 2.2.2.2
    [*AGG] mpls
    [*AGG-mpls] quit
    [*AGG] mpls ldp
    [*AGG-mpls-ldp] quit
    [*AGG] interface GigabitEthernet 0/1/0
    [*AGG-GigabitEthernet0/1/0] mpls
    [*AGG-GigabitEthernet0/1/0] mpls ldp
    [*AGG-GigabitEthernet0/1/0] quit
    [*AGG] interface GigabitEthernet 0/2/0
    [*AGG-GigabitEthernet0/2/0] mpls
    [*AGG-GigabitEthernet0/2/0] mpls ldp
    [*AGG-GigabitEthernet0/2/0] quit
    [*AGG] commit
    # Configure the AGG ASBR.
    [~AGG ASBR] mpls lsr-id 3.3.3.3
    [*AGG ASBR] mpls
    [*AGG ASBR-mpls] quit
    [*AGG ASBR] mpls ldp
    [*AGG ASBR-mpls-ldp] quit
    [*AGG ASBR] interface GigabitEthernet 0/1/0
    [*AGG ASBR-GigabitEthernet0/1/0] mpls
    [*AGG ASBR-GigabitEthernet0/1/0] mpls ldp
    [*AGG ASBR-GigabitEthernet0/1/0] quit
    [*AGG ASBR] commit
    # Configure the core ASBR.
    [~Core ASBR] mpls lsr-id 4.4.4.4
    [*Core ASBR] mpls
    [*Core ASBR-mpls] quit
    [*Core ASBR] mpls ldp
    [*Core ASBR-mpls-ldp] quit
    [*Core ASBR] interface GigabitEthernet 0/2/0
    [*Core ASBR-GigabitEthernet0/2/0] mpls
    [*Core ASBR-GigabitEthernet0/2/0] mpls ldp
    [*Core ASBR-GigabitEthernet0/2/0] quit
    [*Core ASBR] commit
    # Configure the MASG.
    [~MASG] mpls lsr-id 5.5.5.5
    [*MASG] mpls
    [*MASG-mpls] quit
    [*MASG] mpls ldp
    [*MASG-mpls-ldp] quit
    [*MASG] interface GigabitEthernet 0/1/0
    [*MASG-GigabitEthernet0/1/0] mpls
    [*MASG-GigabitEthernet0/1/0] mpls ldp
    [*MASG-GigabitEthernet0/1/0] quit
    [*MASG] commit
  3. Establish IBGP peer relationships at each layer and enable devices to exchange labeled routes.
    # Configure the CSG.
    [~CSG] bgp 100
    [*CSG-bgp] peer 2.2.2.2 as-number 100
    [*CSG-bgp] peer 2.2.2.2 connect-interface LoopBack 1
    [*CSG-bgp] peer 2.2.2.2 label-route-capability
    [*CSG-bgp] network 1.1.1.1 32
    [*CSG-bgp] quit
    [*CSG] commit
    # Configure the AGG.
    [~AGG] bgp 100
    [*AGG-bgp] peer 1.1.1.1 as-number 100
    [*AGG-bgp] peer 1.1.1.1 connect-interface LoopBack 1
    [*AGG-bgp] peer 1.1.1.1 label-route-capability
    [*AGG-bgp] peer 3.3.3.3 as-number 100
    [*AGG-bgp] peer 3.3.3.3 connect-interface LoopBack 1
    [*AGG-bgp] peer 3.3.3.3 label-route-capability
    [*AGG-bgp] quit
    [*AGG] commit
    # Configure the AGG ASBR.
    <AGG ASBR> system-view 
    [~AGG ASBR] bgp 100
    [*AGG ASBR-bgp] peer 2.2.2.2 as-number 100
    [*AGG ASBR-bgp] peer 2.2.2.2 connect-interface LoopBack 1
    [*AGG ASBR-bgp] peer 2.2.2.2 label-route-capability
    [*AGG ASBR-bgp] quit
    [*AGG ASBR] commit
    # Configure the core ASBR.
    <Core ASBR> system-view 
    [~Core ASBR] bgp 200
    [*Core ASBR-bgp] peer 5.5.5.5 as-number 200
    [*Core ASBR-bgp] peer 5.5.5.5 connect-interface LoopBack 1
    [*Core ASBR-bgp] peer 5.5.5.5 label-route-capability
    [*Core ASBR-bgp] quit
    [*Core ASBR] commit
    # Configure the MASG.
    [~MASG] bgp 200
    [*MASG-bgp] peer 4.4.4.4 as-number 200
    [*MASG-bgp] peer 4.4.4.4 connect-interface LoopBack 1
    [*MASG-bgp] peer 4.4.4.4 label-route-capability
    [*MASG-bgp] network 5.5.5.5 32
    [*MASG-bgp] quit
    [*MASG] commit
  4. Establish an EBGP peer relationship between each pair of an AGG ASBR and core ASBR and enable these devices to exchange labeled routes.
    # Configure the AGG ASBR.
    [~AGG ASBR] interface GigabitEthernet 0/2/0
    [~AGG ASBR-GigabitEthernet0/2/0] ip address 20.3.1.1 24
    [*AGG ASBR-GigabitEthernet0/2/0] mpls
    [*AGG ASBR-GigabitEthernet0/2/0] quit
    [*AGG ASBR] bgp 100
    [*AGG ASBR-bgp] peer 20.3.1.2 as-number 200
    [*AGG ASBR-bgp] peer 20.3.1.2 label-route-capability check-tunnel-reachable
    [*AGG ASBR-bgp] quit
    [*AGG ASBR] commit
    # Configure the core ASBR.
    [~Core ASBR] interface GigabitEthernet 0/1/0
    [~Core ASBR-GigabitEthernet0/1/0] ip address 20.3.1.2 24
    [*Core ASBR-GigabitEthernet0/1/0] mpls
    [*Core ASBR-GigabitEthernet0/1/0] quit
    [*Core ASBR] bgp 200
    [*Core ASBR-bgp] peer 20.3.1.1 as-number 100
    [*Core ASBR-bgp] peer 20.3.1.1 label-route-capability check-tunnel-reachable
    [*Core ASBR-bgp] quit
    [*Core ASBR] commit
  5. Configure each AGG as an RR to help the CSG and MASG obtain the route destined for each other’s loopback interface.
    # Configure the AGG.
    [~AGG] bgp 100
    [~AGG-bgp] peer 1.1.1.1 reflect-client
    [*AGG-bgp] peer 1.1.1.1 next-hop-local
    [*AGG-bgp] peer 3.3.3.3 reflect-client
    [*AGG-bgp] peer 3.3.3.3 next-hop-local
    [*AGG-bgp] quit
    [*AGG] commit
  6. Configure a routing policy on each device to establish a BGP LSP.
    # Configure a routing policy for advertising routes matching Route-Policy conditions to the CSG’s BGP peer.
    [~CSG] route-policy policy1 permit node 1
    [*CSG-route-policy] apply mpls-label
    [*CSG-route-policy] quit
    [*CSG] bgp 100
    [*CSG-bgp] peer 2.2.2.2 route-policy policy1 export
    [*CSG-bgp] quit
    [*CSG] commit
    [~CSG] quit
    Repeat this step for the MASG. For configuration details, see Configuration Files in this section.
    # Configure a routing policy for advertising routes matching Route-Policy conditions to the AGG’s BGP peer.
    [~AGG] route-policy policy1 permit node 1
    [*AGG-route-policy] if-match mpls-label
    [*AGG-route-policy] apply mpls-label
    [*AGG-route-policy] quit
    [*AGG] bgp 100
    [*AGG-bgp] peer 1.1.1.1 route-policy policy1 export
    [*AGG-bgp] peer 3.3.3.3 route-policy policy1 export
    [*AGG-bgp] quit
    [*AGG] commit
    Repeat this step for the AGG ASBR and core ASBR. For configuration details, see Configuration Files in this section.
  7. Verify the configuration.
    After completing the configuration, run the display ip routing-table command on a CSG or MASG to view information about a route to the BGP peer’s loopback interface.
    The following example uses the command output on the CSG.
    <CSG> display ip routing-table
    Route Flags: R - relay, D - download to fib
    ------------------------------------------------------------------------------
    Routing Table : _public_
             Destinations : 10       Routes : 10
    
    Destination/Mask    Proto   Pre  Cost        Flags NextHop         Interface
    
            1.1.1.1/32  Direct  0    0             D  127.0.0.1       LoopBack1
            2.2.2.2/32  OSPF    10   1             D  20.1.1.2        GigabitEthernet0/1/0
            5.5.5.5/32  IBGP    255  0             RD 2.2.2.2         LDP LSP
           20.1.1.0/24  Direct  0    0             D  20.1.1.1        GigabitEthernet0/1/0
           20.1.1.1/32  Direct  0    0             D  127.0.0.1       GigabitEthernet0/1/0
         20.1.1.255/32  Direct  0    0             D  127.0.0.1       GigabitEthernet0/1/0
          127.0.0.0/8   Direct  0    0             D  127.0.0.1       InLoopBack0
          127.0.0.1/32  Direct  0    0             D  127.0.0.1       InLoopBack0
    127.255.255.255/32  Direct  0    0             D  127.0.0.1       InLoopBack0
    255.255.255.255/32  Direct  0    0             D  127.0.0.1       InLoopBack0
    Run the display mpls lsp command on the CSG or MASG to view LSP information.
    The following example uses the command output on the CSG.
    <CSG> display mpls lsp
    -------------------------------------------------------------------------------
                     LSP Information: LDP LSP
    -------------------------------------------------------------------------------
    FEC                In/Out Label    In/Out IF                      Vrf Name
    1.1.1.1/32         3/NULL          -/-
    2.2.2.2/32         NULL/3          -/GE0/1/0
    2.2.2.2/32         32828/3         -/GE0/1/0
    -------------------------------------------------------------------------------
                     LSP Information: BGP LSP
    -------------------------------------------------------------------------------
    FEC                In/Out Label    In/Out IF                      Vrf Name
    1.1.1.1/32         32830/NULL      -/-
    5.5.5.5/32         NULL/32835      -/-
    Run the ping lsp command on the CSG or MASG to check BGP LSP connectivity.
    The following example uses the command output on the CSG.
    <CSG> ping lsp bgp 5.5.5.5 32
      LSP PING FEC: IPV4 PREFIX 5.5.5.5/32/ : 100  data bytes, press CTRL_C to break
        Reply from 5.5.5.5: bytes=100 Sequence=1 time=94 ms
        Reply from 5.5.5.5: bytes=100 Sequence=2 time=4 ms
        Reply from 5.5.5.5: bytes=100 Sequence=3 time=4 ms
        Reply from 5.5.5.5: bytes=100 Sequence=4 time=4 ms
        Reply from 5.5.5.5: bytes=100 Sequence=5 time=4 ms
    
      --- FEC: BGP LABLED IPV4 PREFIX 5.5.5.5/32 ping statistics ---
        5 packet(s) transmitted
        5 packet(s) received
        0.00% packet loss
        round-trip min/avg/max = 4/22/94 ms

Configuration Files

  • CSG configuration file
    #
    sysname CSG
    #
    mpls lsr-id 1.1.1.1
    #
    mpls
    #
    mpls ldp
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 20.1.1.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface LoopBack1
     ip address 1.1.1.1 255.255.255.255
    #
    bgp 100
     peer 2.2.2.2 as-number 100
     peer 2.2.2.2 connect-interface LoopBack1
     #
     ipv4-family unicast
      undo synchronization
      network 1.1.1.1 255.255.255.255
      peer 2.2.2.2 enable
      peer 2.2.2.2 route-policy policy1 export
      peer 2.2.2.2 label-route-capability
    #
    ospf 1
     area 0.0.0.0
      network 1.1.1.1 0.0.0.0
      network 20.1.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     apply mpls-label
    #
    return
  • AGG configuration file
    #
    sysname AGG
    #
    mpls lsr-id 2.2.2.2
    #
    mpls
    #
    mpls ldp
    #
    isis 1
     network-entity 10.0000.0000.0000.0010.00
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 20.1.1.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface GigabitEthernet0/2/0
     undo shutdown
     ip address 20.2.1.1 255.255.255.0
     isis enable 1
     mpls
     mpls ldp
    #
    interface LoopBack1
     ip address 2.2.2.2 255.255.255.255
     isis enable 1
    #
    bgp 100
     peer 1.1.1.1 as-number 100
     peer 1.1.1.1 connect-interface LoopBack1
     peer 3.3.3.3 as-number 100
     peer 3.3.3.3 connect-interface LoopBack1
     #
     ipv4-family unicast
      undo synchronization
      peer 1.1.1.1 enable
      peer 1.1.1.1 route-policy policy1 export
      peer 1.1.1.1 reflect-client
      peer 1.1.1.1 next-hop-local
      peer 1.1.1.1 label-route-capability
      peer 3.3.3.3 enable
      peer 3.3.3.3 route-policy policy1 export
      peer 3.3.3.3 reflect-client
      peer 3.3.3.3 next-hop-local
      peer 3.3.3.3 label-route-capability
    #
    ospf 1
     area 0.0.0.0
      network 2.2.2.2 0.0.0.0
      network 20.1.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     if-match mpls-label
     apply mpls-label
    #
    return
  • AGG ASBR configuration file
    #
    sysname AGG ASBR
    #
    mpls lsr-id 3.3.3.3
    #
    mpls
    #
    mpls ldp
    #
    isis 1
     network-entity 10.0000.0000.0000.0020.00
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 20.2.1.2 255.255.255.0
     isis enable 1
     mpls
     mpls ldp
    #
    interface GigabitEthernet0/2/0
     undo shutdown
     ip address 20.3.1.1 255.255.255.0
     mpls
    #
    interface LoopBack1
     ip address 3.3.3.3 255.255.255.255
     isis enable 1
    #
    bgp 100
     peer 2.2.2.2 as-number 100
     peer 2.2.2.2 connect-interface LoopBack1
     peer 20.3.1.2 as-number 200
     #
     ipv4-family unicast
      undo synchronization
      peer 2.2.2.2 enable
      peer 2.2.2.2 route-policy policy1 export
      peer 2.2.2.2 label-route-capability
      peer 20.3.1.2 enable
      peer 20.3.1.2 route-policy policy1 export
      peer 20.3.1.2 label-route-capability check-tunnel-reachable
    #
    route-policy policy1 permit node 1
     if-match mpls-label
     apply mpls-label
    #
    return
  • Core ASBR configuration file
    #
    sysname Core ASBR
    #
    mpls lsr-id 4.4.4.4
    #
    mpls
    #
    mpls ldp
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 20.3.1.2 255.255.255.0
     mpls
    #
    interface GigabitEthernet0/2/0
     undo shutdown
     ip address 20.4.1.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface LoopBack1
     ip address 4.4.4.4 255.255.255.255
    #
    bgp 200
     peer 5.5.5.5 as-number 200
     peer 5.5.5.5 connect-interface LoopBack1
     peer 20.3.1.1 as-number 100
     #
     ipv4-family unicast
      undo synchronization
      peer 5.5.5.5 enable
      peer 5.5.5.5 route-policy policy1 export
      peer 5.5.5.5 label-route-capability
      peer 20.3.1.1 enable
      peer 20.3.1.1 route-policy policy1 export
      peer 20.3.1.1 label-route-capability check-tunnel-reachable
    #
    ospf 2
     area 0.0.0.0
      network 4.4.4.4 0.0.0.0
      network 20.4.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     if-match mpls-label
     apply mpls-label
    #
    return
  • MASG configuration file
    #
    sysname MASG
    #
    mpls lsr-id 5.5.5.5
    #
    mpls
    #
    mpls ldp
    #
    interface GigabitEthernet0/1/0
     undo shutdown
     ip address 20.4.1.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface LoopBack1
     ip address 5.5.5.5 255.255.255.255
    #
    bgp 200
     peer 4.4.4.4 as-number 200
     peer 4.4.4.4 connect-interface LoopBack1
     #
     ipv4-family unicast
      undo synchronization
      network 5.5.5.5 255.255.255.255
      peer 4.4.4.4 enable
      peer 4.4.4.4 route-policy policy1 export
      peer 4.4.4.4 label-route-capability
    #
    ospf 2
     area 0.0.0.0
      network 5.5.5.5 0.0.0.0
      network 20.4.1.0 0.0.0.255
    #
    route-policy policy1 permit node 1
     apply mpls-label
    #
    return
(Visited 1,509 times, 1 visits today)

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.