拓扑:
R1配置:
mpls label range 100 199
mpls traffic-eng tunnels interface Loopback0 ip address 1.1.1.1 255.255.255.255 ! interface Tunnel1 ip unnumbered Loopback0 tunnel destination 6.6.6.6 tunnel mode mpls traffic-eng tunnel mpls traffic-eng autoroute announce tunnel mpls traffic-eng priority 7 7 tunnel mpls traffic-eng bandwidth 1000 tunnel mpls traffic-eng path-option 10 dynamic no routing dynamic ! interface FastEthernet0/0 ip address 12.1.1.1 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! interface FastEthernet0/1 ip address 14.1.1.1 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 1.1.1.1 log-adjacency-changes network 1.1.1.1 0.0.0.0 area 0 network 12.1.1.0 0.0.0.255 area 0 network 14.1.1.0 0.0.0.255 area 0R2配置:
mpls label range 200 299
mpls traffic-eng tunnels interface Loopback0 ip address 2.2.2.2 255.255.255.255 ! interface FastEthernet0/0 ip address 12.1.1.2 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! interface FastEthernet0/1 ip address 23.1.1.2 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 2.2.2.2 log-adjacency-changes network 2.2.2.2 0.0.0.0 area 0 network 12.1.1.0 0.0.0.255 area 0 network 23.1.1.0 0.0.0.255 area 0 R3配置:mpls label range 300 399
mpls traffic-eng tunnels interface Loopback0 ip address 3.3.3.3 255.255.255.255 ! interface FastEthernet0/0 ip address 36.1.1.3 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! interface FastEthernet0/1 ip address 23.1.1.3 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 3.3.3.3 log-adjacency-changes network 3.3.3.3 0.0.0.0 area 0 network 23.1.1.0 0.0.0.255 area 0 network 36.1.1.0 0.0.0.255 area 0R4配置:
mpls label range 400 499
mpls traffic-eng tunnels interface Loopback0 ip address 4.4.4.4 255.255.255.255 ! interface FastEthernet0/0 ip address 45.1.1.4 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! interface FastEthernet0/1 ip address 14.1.1.4 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 4.4.4.4 log-adjacency-changes network 4.4.4.4 0.0.0.0 area 0 network 14.1.1.0 0.0.0.255 area 0 network 45.1.1.0 0.0.0.255 area 0R5配置:
mpls label range 500 599
mpls traffic-eng tunnels ! interface Loopback0 ip address 5.5.5.5 255.255.255.255 ! interface FastEthernet0/0 ip address 45.1.1.5 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! interface FastEthernet0/1 ip address 56.1.1.5 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 5.5.5.5 log-adjacency-changes network 5.5.5.5 0.0.0.0 area 0 network 45.1.1.0 0.0.0.255 area 0 network 56.1.1.0 0.0.0.255 area 0R6配置:
mpls label range 600 699
mpls traffic-eng tunnels interface Loopback0 ip address 6.6.6.6 255.255.255.255 ! interface Loopback1 ip address 66.6.6.6 255.255.255.0 ! interface FastEthernet0/0 ip address 36.1.1.6 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! interface FastEthernet0/1 ip address 56.1.1.6 255.255.255.0 duplex auto speed auto mpls traffic-eng tunnels ip rsvp bandwidth 5000 ip rsvp resource-provider none ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 6.6.6.6 log-adjacency-changes network 6.6.6.6 0.0.0.0 area 0 network 36.1.1.0 0.0.0.255 area 0 network 56.1.1.0 0.0.0.255 area 0 network 66.6.6.0 0.0.0.255 area 0验证:
从上图可以看出TE已经正常工作了。
另外可以使用下面的命令确认MPLS TE支持
说明:
MPLS TE的命令和理论会在以后的问题给出。