拓扑:

 

跨区域MPLS TE

R1配置:

mpls label range 100 199
mpls traffic-eng tunnels
interface Loopback0
ip address 192.168.1.1 255.255.255.255
!
interface Tunnel1
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 192.168.1.4
tunnel mpls traffic-eng path-option 10 explicit name r14
!
interface FastEthernet0/0
ip address 12.1.1.1 255.255.255.0
speed auto
duplex auto
mpls traffic-eng tunnels
ip rsvp bandwidth 2048
!
router ospf 100
router-id 1.1.1.1
network 12.1.1.0 0.0.0.255 area 1
network 192.168.1.1 0.0.0.0 area 1
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 1
!
ip route 192.168.1.4 255.255.255.255 Tunnel1
!
ip explicit-path name r14 enable
next-address loose 192.168.1.2
next-address loose 192.168.1.3
next-address loose 192.168.1.4

R3配置:

mpls label range 300 399
mpls traffic-eng tunnels
interface Loopback0
ip address 192.168.1.3 255.255.255.255
!
interface FastEthernet0/0
ip address 34.1.1.3 255.255.255.0
speed auto
duplex auto
mpls traffic-eng tunnels
ip rsvp bandwidth 2048
!
interface FastEthernet0/1
ip address 23.1.1.3 255.255.255.0
speed auto
duplex auto
mpls traffic-eng tunnels
ip rsvp bandwidth 2048
!
router ospf 100
router-id 3.3.3.3
network 23.1.1.0 0.0.0.255 area 0
network 34.1.1.0 0.0.0.255 area 2
network 192.168.1.3 0.0.0.0 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
mpls traffic-eng area 2

R2配置:

mpls label range 200 299
mpls traffic-eng tunnels
!
interface Loopback0
ip address 192.168.1.2 255.255.255.255
!
interface FastEthernet0/0
ip address 12.1.1.2 255.255.255.0
speed auto
duplex auto
mpls traffic-eng tunnels
ip rsvp bandwidth 2048
!
interface FastEthernet0/1
ip address 23.1.1.2 255.255.255.0
speed auto
duplex auto
mpls traffic-eng tunnels
ip rsvp bandwidth 2048
!
router ospf 100
router-id 2.2.2.2
network 12.1.1.0 0.0.0.255 area 1
network 23.1.1.0 0.0.0.255 area 0
network 192.168.1.2 0.0.0.0 area 0
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 0
mpls traffic-eng area 1

R4配置:

mpls label range 400 499
mpls traffic-eng tunnels
interface Loopback0
ip address 192.168.1.4 255.255.255.255
!
interface Loopback1
ip address 4.4.4.4 255.255.255.0
!
interface FastEthernet0/0
ip address 34.1.1.4 255.255.255.0
speed auto
duplex auto
mpls traffic-eng tunnels
ip rsvp bandwidth 2048
!
interface FastEthernet0/1
no ip address
shutdown
speed auto
duplex auto
!
router ospf 100
router-id 4.4.4.4
network 4.4.4.0 0.0.0.255 area 2
network 34.1.1.0 0.0.0.255 area 2
network 192.168.1.4 0.0.0.0 area 2
mpls traffic-eng router-id Loopback0
mpls traffic-eng area 2

验证:

跨区域MPLS TE