
hostname R1
int l0
ip add 1.1.1.1 255.255.255.255
ip ospf 1 area 0
ip ospf net point-to-point
int f0/0
ip add 192.168.16.1 255.255.255.0
no shut
ip ospf 1 area 6
int f0/1
ip add 192.168.12.1 255.255.255.0
no shut
ip ospf 1 area 0
router ospf 1
area 6 stub no-sum
mpls label range 100 199
int f0/1
mpls ip
exit
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id l0
mpls traffic-eng area 0
int f0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 100000 100000
hostname R2
int l0
ip add 2.2.2.2 255.255.255.255
ip ospf 1 area 0
ip ospf net point-to-point
int f0/0
ip add 192.168.12.2 255.255.255.0
no shut
ip ospf 1 area 0
int f0/1
ip add 192.168.23.2 255.255.255.0
no shut
ip ospf 1 area 0
int f1/0
ip add 192.168.24.2 255.255.255.0
no shut
ip ospf 1 area 0
router ospf 1
mpls label range 200 299
int range f0/0-1,f1/0
mpls ip
exit
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id l0
mpls traffic-eng area 0
int range f0/0-1,f1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 100000 100000
hostname R3
int l0
ip add 3.3.3.3 255.255.255.255
ip ospf 1 area 0
ip ospf net point-to-point
int f0/0
ip add 192.168.23.3 255.255.255.0
no shut
ip ospf 1 area 0
int f0/1
ip add 192.168.34.3 255.255.255.0
no shut
ip ospf 1 area 0
router ospf 1
mpls label range 300 399
int range f0/0-1
mpls ip
exit
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id l0
mpls traffic-eng area 0
int range f0/0-1
mpls traffic-eng tunnels
ip rsvp bandwidth 100000 100000
hostname R4
int l0
ip add 4.4.4.4 255.255.255.255
ip ospf 1 area 0
ip ospf net point-to-point
int f0/0
ip add 192.168.45.4 255.255.255.0
no shut
ip ospf 1 area 0
int f0/1
ip add 192.168.34.4 255.255.255.0
no shut
ip ospf 1 area 0
int f1/0
ip add 192.168.24.4 255.255.255.0
no shut
ip ospf 1 area 0
router ospf 1
mpls label range 400 499
int range f0/0-1,f1/0
mpls ip
exit
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id l0
mpls traffic-eng area 0
int range f0/0-1,f1/0
mpls traffic-eng tunnels
ip rsvp bandwidth 100000 100000
hostname R5
int l0
ip add 5.5.5.5 255.255.255.255
ip ospf 1 area 0
ip ospf net point-to-point
int f0/0
ip add 192.168.57.5 255.255.255.0
no shut
ip ospf 1 area 7
int f0/1
ip add 192.168.45.5 255.255.255.0
no shut
ip ospf 1 area 0
router ospf 1
area 7 stub no-sum
mpls label range 500 599
int f0/1
mpls ip
exit
mpls traffic-eng tunnels
router ospf 1
mpls traffic-eng router-id l0
mpls traffic-eng area 0
int f0/1
mpls traffic-eng tunnels
ip rsvp bandwidth 100000 100000
Configure in R1 a tunnel R1 to R5 via R3
R1(config)#
ip explicit-path name VIA_P3 enable
index 10 next 2.2.2.2
index 20 next 3.3.3.3
index 30 next 4.4.4.4
index 40 next 5.5.5.5
int tunnel1
ip unnumbered Loopback0
tunnel mode mpls traffic-eng
tunnel destination 5.5.5.5
tunnel mpls traffic-eng autoroute announce
tunnel mpls traffic-eng priority 3 3
tunnel mpls traffic-eng bandwidth 10000
tunnel mpls traffic-eng path-option 1 explicit name VIA_P3
Configure R6 and R7 in stub networks
hostname R6
int l0
ip add 6.6.6.6 255.255.255.255
ip ospf 1 area 6
ip ospf net point-to-point
int f0/0
ip add 192.168.16.6 255.255.255.0
ip ospf 1 area 6
no shut
router ospf 1
area 6 stub
hostname R7
int l0
ip add 7.7.7.7 255.255.255.255
ip ospf 1 area 7
ip ospf net point-to-point
int f0/0
ip add 192.168.57.7 255.255.255.0
ip ospf 1 area 7
no shut
router ospf 1
area 7 stub