Establishing an inter-AS MPLS TE tunnel with RSVP-TE

Network requirements

Switch A and Switch B are in AS 100. Switch C and Switch D are in AS 200. AS 100 and AS 200 use OSPF as the IGP.

Establish an EBGP connection between ASBRs Switch B and Switch C. Redistribute BGP routes into OSPF and OSPF routes into BGP, so that a route is available between AS 100 and AS 200.

Use RSVP-TE to establish an MPLS TE tunnel from Switch A to Switch D to transmit data between the two IP networks. The tunnel requires a bandwidth of 2000 kbps. The maximum bandwidth of the link that the tunnel traverses is 10000 kbps and the maximum reservable bandwidth of the link is 5000 kbps.

Figure 31: Network diagram

Table 4: Interface and IP address assignment

Device

Interface

IP address

Device

Interface

IP address

Switch A

Loop0

1.1.1.9/32

Switch D

Loop0

4.4.4.9/32

Vlan-int1

10.1.1.1/24

Vlan-int3

30.1.1.2/24

Vlan-int10

100.1.1.1/24

Vlan-int10

100.1.2.1/24

Switch B

Loop0

2.2.2.9/32

Switch C

Loop0

3.3.3.9/32

Vlan-int1

10.1.1.2/24

Vlan-int3

30.1.1.1/24

Vlan-int2

20.1.1.1/24

Vlan-int2

20.1.1.2/24

Configuration procedure

  1. Configure IP addresses and masks for interfaces. (Details not shown.)

  2. Configure OSPF to advertise routes within the ASs, and redistribute the direct and BGP routes into OSPF on Switch B and Switch C:

    # Configure Switch A.

    <SwitchA> system-view
    [SwitchA] ospf
    [SwitchA-ospf-1] area 0
    [SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
    [SwitchA-ospf-1-area-0.0.0.0] network 1.1.1.9 0.0.0.0
    [SwitchA-ospf-1-area-0.0.0.0] quit
    [SwitchA-ospf-1] quit
    

    # Configure Switch B.

    <SwitchB> system-view
    [SwitchB] ospf
    [SwitchB-ospf-1] import-route direct
    [SwitchB-ospf-1] import-route bgp
    [SwitchB-ospf-1] area 0
    [SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
    [SwitchB-ospf-1-area-0.0.0.0] network 2.2.2.9 0.0.0.0
    [SwitchB-ospf-1-area-0.0.0.0] quit
    [SwitchB-ospf-1] quit
    

    # Configure Switch C.

    <SwitchC> system-view
    [SwitchC] ospf
    [SwitchC-ospf-1] import-route direct
    [SwitchC-ospf-1] import-route bgp
    [SwitchC-ospf-1] area 0
    [SwitchC-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
    [SwitchC-ospf-1-area-0.0.0.0] network 3.3.3.9 0.0.0.0
    [SwitchC-ospf-1-area-0.0.0.0] quit
    [SwitchC-ospf-1] quit
    

    # Configure Switch D.

    <SwitchD> system-view
    [SwitchD] ospf
    [SwitchD-ospf-1] area 0
    [SwitchD-ospf-1-area-0.0.0.0] network 30.1.1.0 0.0.0.255
    [SwitchD-ospf-1-area-0.0.0.0] network 4.4.4.9 0.0.0.0
    [SwitchD-ospf-1-area-0.0.0.0] quit
    [SwitchD-ospf-1] quit
    

    # Verify that the switches have learned the routes to one another, including the routes to the loopback interfaces. This example uses Switch A.

    [SwitchA] display ip routing-table
    
    Destinations : 6        Routes : 6
    
    Destination/Mask   Proto   Pre Cost        NextHop         Interface
    
    1.1.1.9/32         Direct  0   0           127.0.0.1       InLoop0
    2.2.2.9/32         O_INTRA 10  1           10.1.1.2        Vlan1
    10.1.1.0/24        Direct  0   0           10.1.1.1        Vlan1
    10.1.1.1/32        Direct  0   0           127.0.0.1       InLoop0
    127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
    127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
    
  3. Configure BGP on Switch B and Switch C to ensure that the ASs can communicate with each other:

    # Configure Switch B.

    [SwitchB] bgp 100
    [SwitchB-bgp] peer 20.1.1.2 as-number 200
    [SwitchB-bgp] address-family ipv4 unicast
    [SwitchB-bgp-ipv4] peer 20.1.1.2 enable
    [SwitchB-bgp-ipv4] import-route ospf
    [SwitchB-bgp-ipv4] import-route direct
    [SwitchB-bgp-ipv4] quit
    [SwitchB-bgp] quit
    

    # Configure Switch C.

    [SwitchC] bgp 200
    [SwitchC-bgp] peer 20.1.1.1 as-number 100
    [SwitchC-bgp] address-family ipv4 unicast
    [SwitchC-bgp-ipv4] peer 20.1.1.1 enable
    [SwitchC-bgp-ipv4] import-route ospf
    [SwitchC-bgp-ipv4] import-route direct
    [SwitchC-bgp-ipv4] quit
    [SwitchC-bgp] quit
    

    # Verify that the switches have learned AS-external routes.

    [SwitchA] display ip routing-table
    
    Destinations : 10       Routes : 10
    
    Destination/Mask   Proto   Pre Cost        NextHop         Interface
    
    1.1.1.9/32         Direct  0   0           127.0.0.1       InLoop0
    2.2.2.9/32         O_INTRA 10  1           10.1.1.2        Vlan1
    3.3.3.9/32         O_ASE   150 1           10.1.1.2        Vlan1
    4.4.4.9/32         O_ASE   150 1           10.1.1.2        Vlan1
    10.1.1.0/24        Direct  0   0           10.1.1.1        Vlan1
    10.1.1.1/32        Direct  0   0           127.0.0.1       InLoop0
    20.1.1.0/24        O_ASE   150 1           10.1.1.2        Vlan1
    30.1.1.0/24        O_ASE   150 1           10.1.1.2        Vlan1
    127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
    127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
    
  4. Configure an LSR ID, and enable MPLS, MPLS TE, and RSVP-TE:

    # Configure Switch A.

    [SwitchA] mpls lsr-id 1.1.1.9
    [SwitchA] mpls te
    [SwitchA-te] quit
    [SwitchA] rsvp
    [SwitchA-rsvp] quit
    [SwitchA] interface vlan-interface 1
    [SwitchA-Vlan-interface1] mpls enable
    [SwitchA-Vlan-interface1] mpls te enable
    [SwitchA-Vlan-interface1] rsvp enable
    [SwitchA-Vlan-interface1] quit
    

    # Configure Switch B.

    [SwitchB] mpls lsr-id 2.2.2.9
    [SwitchB] mpls te
    [SwitchB-te] quit
    [SwitchB] rsvp
    [SwitchB-rsvp] quit
    [SwitchB] interface vlan-interface 1
    [SwitchB-Vlan-interface1] mpls enable
    [SwitchB-Vlan-interface1] mpls te enable
    [SwitchB-Vlan-interface1] rsvp enable
    [SwitchB-Vlan-interface1] quit
    [SwitchB] interface vlan-interface 2
    [SwitchB-Vlan-interface2] mpls enable
    [SwitchB-Vlan-interface2] mpls te enable
    [SwitchB-Vlan-interface2] rsvp enable
    [SwitchB-Vlan-interface2] quit
    

    # Configure Switch C.

    [SwitchC] mpls lsr-id 3.3.3.9
    [SwitchC] mpls te
    [SwitchC-te] quit
    [SwitchC] rsvp
    [SwitchC-rsvp] quit
    [SwitchC] interface vlan-interface 2
    [SwitchC-Vlan-interface2] mpls enable
    [SwitchC-Vlan-interface2] mpls te enable
    [SwitchC-Vlan-interface2] rsvp enable
    [SwitchC-Vlan-interface2] quit
    [SwitchC] interface vlan-interface 3
    [SwitchC-Vlan-interface3] mpls enable
    [SwitchC-Vlan-interface3] mpls te enable
    [SwitchC-Vlan-interface3] rsvp enable
    [SwitchC-Vlan-interface3] quit
    

    # Configure Switch D.

    [SwitchD] mpls lsr-id 4.4.4.9
    [SwitchD] mpls te
    [SwitchD-te] quit
    [SwitchD] rsvp
    [SwitchD-rsvp] quit
    [SwitchD] interface vlan-interface 3
    [SwitchD-Vlan-interface3] mpls enable
    [SwitchD-Vlan-interface3] mpls te enable
    [SwitchD-Vlan-interface3] rsvp enable
    [SwitchD-Vlan-interface3] quit
    
  5. Configure OSPF TE:

    # Configure Switch A.

    [SwitchA] ospf
    [SwitchA-ospf-1] opaque-capability enable
    [SwitchA-ospf-1] area 0
    [SwitchA-ospf-1-area-0.0.0.0] mpls te enable
    [SwitchA-ospf-1-area-0.0.0.0] quit
    [SwitchA-ospf-1] quit
    

    # Configure Switch B.

    [SwitchB] ospf
    [SwitchB-ospf-1] opaque-capability enable
    [SwitchB-ospf-1] area 0
    [SwitchB-ospf-1-area-0.0.0.0] mpls te enable
    [SwitchB-ospf-1-area-0.0.0.0] quit
    [SwitchB-ospf-1] quit
    

    # Configure Switch C.

    [SwitchC] ospf
    [SwitchC-ospf-1] opaque-capability enable
    [SwitchC-ospf-1] area 0
    [SwitchC-ospf-1-area-0.0.0.0] mpls te enable
    [SwitchC-ospf-1-area-0.0.0.0] quit
    [SwitchC-ospf-1] quit
    

    # Configure Switch D.

    [SwitchD] ospf
    [SwitchD-ospf-1] opaque-capability enable
    [SwitchD-ospf-1] area 0
    [SwitchD-ospf-1-area-0.0.0.0] mpls te enable
    [SwitchD-ospf-1-area-0.0.0.0] quit
    [SwitchD-ospf-1] quit
    
  6. Configure an explicit path on Switch A. Specify Switch B and Switch D as loose nodes, and Switch C as a strict node.

    [SwitchA] explicit-path atod
    [SwitchA-explicit-path-atod] nexthop 10.1.1.2 include loose
    [SwitchA-explicit-path-atod] nexthop 20.1.1.2 include strict
    [SwitchA-explicit-path-atod] nexthop 30.1.1.2 include loose
    [SwitchA-explicit-path-atod] quit
    
  7. Configure MPLS TE attributes of links:

    # Set the maximum link bandwidth and maximum reservable bandwidth on Switch A.

    [SwitchA] interface vlan-interface 1
    [SwitchA-Vlan-interface1] mpls te max-link-bandwidth 10000
    [SwitchA-Vlan-interface1] mpls te max-reservable-bandwidth 5000
    [SwitchA-Vlan-interface1]  quit
    

    # Set the maximum link bandwidth and maximum reservable bandwidth on Switch B.

    [SwitchB] interface vlan-interface 1
    [SwitchB-Vlan-interface1]  mpls te max-link-bandwidth 10000
    [SwitchB-Vlan-interface1] mpls te max-reservable-bandwidth 5000
    [SwitchB-Vlan-interface1] quit
    [SwitchB] interface vlan-interface 2
    [SwitchB-Vlan-interface2] mpls te max-link-bandwidth 10000
    [SwitchB-Vlan-interface2] mpls te max-reservable-bandwidth 5000
    [SwitchB-Vlan-interface2] quit
    

    # Set the maximum link bandwidth and maximum reservable bandwidth on Switch C.

    [SwitchC] interface vlan-interface 2
    [SwitchC-Vlan-interface2] mpls te max-link-bandwidth 10000
    [SwitchC-Vlan-interface2] mpls te max-reservable-bandwidth 5000
    [SwitchC-Vlan-interface2] quit
    [SwitchC] interface vlan-interface 3
    [SwitchC-Vlan-interface3] mpls te max-link-bandwidth 10000
    [SwitchC-Vlan-interface3] mpls te max-reservable-bandwidth 5000
    [SwitchC-Vlan-interface3] quit
    

    # Set the maximum link bandwidth and maximum reservable bandwidth on Switch D.

    [SwitchD] interface vlan-interface 3
    [SwitchD-Vlan-interface3] mpls te max-link-bandwidth 10000
    [SwitchD-Vlan-interface3] mpls te max-reservable-bandwidth 5000
    [SwitchD-Vlan-interface3] quit
    
  8. Configure an MPLS TE tunnel on Switch A:

    # Configure MPLS TE tunnel interface Tunnel 1.

    [SwitchA] interface tunnel 1 mode mpls
    [SwitchA-Tunnel1] ip address 7.1.1.1 255.255.255.0
    

    # Specify the tunnel destination address as the LSR ID of Switch D.

    [SwitchA-Tunnel1] destination 4.4.4.9
    

    # Configure MPLS TE to use RSVP-TE to establish the tunnel.

    [SwitchA-Tunnel1] mpls te signaling rsvp-te
    

    # Assign 2000 kbps bandwidth to the tunnel.

    [SwitchA-Tunnel1] mpls te bandwidth 2000
    

    # Specify explicit path atod for the tunnel.

    [SwitchA-Tunnel1] mpls te path preference 5 explicit-path atod
    [SwitchA-Tunnel1] quit
    
  9. Configure a static route on Switch A to direct the traffic destined for subnet 100.1.2.0/24 to MPLS TE tunnel 1.

    [SwitchA] ip route-static 100.1.2.0 24 tunnel 1 preference 1
    

Verifying the configuration

# Verify that the tunnel interface is up on Switch A.

[SwitchA] display interface tunnel 1
Tunnel1
Current state: UP
Line protocol state: UP
Description: Tunnel1 Interface
Bandwidth: 64kbps
Maximum transmission unit: 1496
Internet address: 7.1.1.1/24 (primary)
Tunnel source unknown, destination 4.4.4.9
Tunnel TTL 255
Tunnel protocol/transport CR_LSP
Last clearing of counters: Never
Last 300 seconds input rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Last 300 seconds output rate: 0 bytes/sec, 0 bits/sec, 0 packets/sec
Input: 0 packets input, 0 bytes, 0 drops
Output: 3077 packets output, 197028 bytes, 0 drops

# Display detailed information about the MPLS TE tunnel on Switch A.

[SwitchA] display mpls te tunnel-interface
Tunnel Name            : Tunnel 1
Tunnel State           : Up (Main CRLSP up, Shared-resource CRLSP down)
Tunnel Attributes      :
  LSP ID               : 23549           Tunnel ID            : 1
  Admin State          : Normal
  Ingress LSR ID       : 1.1.1.9         Egress LSR ID        : 4.4.4.9
  Signaling            : RSVP-TE         Static CRLSP Name    : -
  Resv Style           : SE
  Tunnel mode          : -
  Reverse-LSP name     : -
  Reverse-LSP LSR ID   : -               Reverse-LSP Tunnel ID: -
  Class Type           : CT0             Tunnel Bandwidth     : 2000 kbps
  Reserved Bandwidth   : 2000 kbps
  Setup Priority       : 7               Holding Priority     : 7
  Affinity Attr/Mask   : 0/0
  Explicit Path        : atod
  Backup Explicit Path : -
  Metric Type          : TE
  Record Route         : Disabled        Record Label         : Disabled
  FRR Flag             : Disabled        Bandwidth Protection : Disabled
  Backup Bandwidth Flag: Disabled        Backup Bandwidth Type: -
  Backup Bandwidth     : -
  Bypass Tunnel        : No               Auto Created         : No
  Route Pinning        : Disabled
  Retry Limit          : 10              Retry Interval       : 2 sec
  Reoptimization       : Disabled        Reoptimization Freq  : -
  Backup Type          : None            Backup LSP ID        : -
  Auto Bandwidth       : Disabled        Auto Bandwidth Freq  : -
  Min Bandwidth        : -               Max Bandwidth        : -
  Collected Bandwidth  : -

# Verify that Switch A has a static route entry with interface Tunnel1 as the output interface.

[SwitchA] display ip routing-table

Destinations : 14       Routes : 14

Destination/Mask   Proto   Pre Cost        NextHop         Interface

1.1.1.9/32         Direct  0   0           127.0.0.1       InLoop0
2.2.2.9/32         O_INTRA 10  1           10.1.1.2        Vlan1
3.3.3.9/32         O_ASE   150 1           10.1.1.2        Vlan1
4.4.4.9/32         O_ASE   150 1           10.1.1.2        Vlan1
7.1.1.0/24         Direct  0   0           7.1.1.1         Tun1
7.1.1.1/32         Direct  0   0           127.0.0.1       InLoop0
10.1.1.0/24        Direct  0   0           10.1.1.1        Vlan1
10.1.1.1/32        Direct  0   0           127.0.0.1       InLoop0
20.1.1.0/24        O_ASE   150 1           10.1.1.2        Vlan1
100.1.2.0/24       Static  1   0           7.1.1.1         Tun1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0