1、MPLS TE简单配置MPLS TE简单配置TOPOLOGY:R1#show runBuilding configuration.Current configuration : 1919 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R1!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip
2、 cefno ip domain lookup!ip vrf a rd 100:1 route-target export 100:1 route-target import 100:1! !mpls label range 100 199! ! interface Loopback0 ip address 10.1.1.1 255.255.255.255 ip ospf 100 area 0!interface Serial0/0 ip vrf forwarding a ip address 192.168.18.1 255.255.255.0 serial restart-delay 0!
3、interface Serial0/1 no ip address shutdown serial restart-delay 0!interface Serial0/2 no ip address shutdown serial restart-delay 0!interface Serial0/3 no ip address shutdown serial restart-delay 0!interface Ethernet1/0 ip address 10.0.12.1 255.255.255.0 half-duplex mpls ip!interface Ethernet1/1 no
4、ip address shutdown half-duplex!interface Ethernet1/2 no ip address shutdown half-duplex!interface Ethernet1/3 no ip address shutdown half-duplex!router ospf 1 vrf a router-id 10.1.1.1 log-adjacency-changes redistribute bgp 100 subnets network 192.168.18.1 0.0.0.0 area 0!router ospf 100 router-id 1.
5、1.1.1 log-adjacency-changes network 10.0.0.0 0.0.255.255 area 0!router bgp 100 bgp router-id 1.1.1.1 no bgp default ipv4-unicast bgp log-neighbor-changes neighbor 10.6.6.6 remote-as 100 neighbor 10.6.6.6 update-source Loopback0 ! address-family vpnv4 neighbor 10.6.6.6 activate neighbor 10.6.6.6 send
6、-community extended exit-address-family ! address-family ipv4 vrf a redistribute ospf 1 vrf a match internal external 1 external 2 no synchronization exit-address-family!ip http serverno ip http secure-server!mpls ldp router-id Loopback0 force!control-plane! line con 0 exec-timeout 0 0 logging synch
7、ronousline aux 0line vty 0 4!endR1# R2#show runBuilding configuration.Current configuration : 2275 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R2!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem
8、 5!ip cefno ip domain lookup!mpls label range 200 299mpls traffic-eng tunnels! !interface Loopback0 ip address 10.2.2.2 255.255.255.255 ip ospf 100 area 0!interface Tunnel6 ip unnumbered Loopback0 tunnel destination 10.6.6.6 tunnel mode mpls traffic-eng tunnel mpls traffic-eng autoroute announce tun
9、nel mpls traffic-eng priority 7 7 tunnel mpls traffic-eng bandwidth 1000 tunnel mpls traffic-eng path-option 1 dynamic no routing dynamic!interface Tunnel7 ip unnumbered Loopback0 tunnel destination 10.7.7.7 tunnel mode mpls traffic-eng tunnel mpls traffic-eng priority 7 7 tunnel mpls traffic-eng ba
10、ndwidth 800 tunnel mpls traffic-eng path-option 1 explicit name R7 no routing dynamic!interface Serial0/0 ip address 10.0.25.2 255.255.255.0 mpls ip mpls traffic-eng tunnels serial restart-delay 0 ip rsvp bandwidth 800!interface Serial0/1 ip address 10.0.24.2 255.255.255.0 mpls ip mpls traffic-eng t
11、unnels serial restart-delay 0 ip rsvp bandwidth 1200!interface Serial0/2 no ip address shutdown serial restart-delay 0!interface Serial0/3 no ip address shutdown serial restart-delay 0! interface Ethernet1/0 ip address 10.0.12.2 255.255.255.0 half-duplex mpls ip mpls traffic-eng tunnels!interface Et
12、hernet1/1 ip address 10.0.23.2 255.255.255.0 half-duplex mpls ip mpls traffic-eng tunnels ip rsvp bandwidth 800!interface Ethernet1/2 no ip address shutdown half-duplex!interface Ethernet1/3 no ip address shutdown half-duplex! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng are
13、a 0 router-id 2.2.2.2 log-adjacency-changes network 10.0.0.0 0.0.255.255 area 0!ip http serverno ip http secure-serverip route 10.7.7.7 255.255.255.255 Tunnel7!ip explicit-path name R7 enable next-address 10.0.24.4 next-address 10.0.45.5 next-address 10.0.57.7 !mpls ldp router-id Loopback0 force!con
14、trol-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!endR2# R3#show runBuilding configuration.Current configuration : 1456 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R3!boot-start-mar
15、kerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup!mpls label range 300 399mpls traffic-eng tunnels! !interface Loopback0 ip address 10.3.3.3 255.255.255.255 ip ospf 100 area 0!interface Serial0/0 no ip address shutdown serial restart-delay 0!interface Serial0/1 no ip a
16、ddress shutdown serial restart-delay 0!interface Serial0/2 no ip address shutdown serial restart-delay 0!interface Serial0/3 no ip address shutdown serial restart-delay 0! interface Ethernet1/0 ip address 10.0.35.3 255.255.255.0 half-duplex mpls ip mpls traffic-eng tunnels ip rsvp bandwidth 800!inte
17、rface Ethernet1/1 ip address 10.0.23.3 255.255.255.0 half-duplex mpls ip mpls traffic-eng tunnels ip rsvp bandwidth 800!interface Ethernet1/2 no ip address shutdown half-duplex!interface Ethernet1/3 no ip address shutdown half-duplex! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic
18、-eng area 0 router-id 3.3.3.3 log-adjacency-changes network 10.0.0.0 0.0.255.255 area 0!ip http serverno ip http secure-server!mpls ldp router-id Loopback0 force!control-plane! !line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!endR3# R4#show runBuilding configuration.Current con
19、figuration : 1458 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-encryption!hostname R4!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup!mpls label range 400 499mpls traffic-eng tunnels! !i
20、nterface Loopback0 ip address 10.4.4.4 255.255.255.255 ip ospf 100 area 0!interface Serial0/0 no ip address shutdown serial restart-delay 0!interface Serial0/1 ip address 10.0.24.4 255.255.255.0 mpls ip mpls traffic-eng tunnels serial restart-delay 0 ip rsvp bandwidth 1200!interface Serial0/2 ip add
21、ress 10.0.45.4 255.255.255.0 mpls ip mpls traffic-eng tunnels serial restart-delay 0 ip rsvp bandwidth 1200!interface Serial0/3 no ip address shutdown serial restart-delay 0!interface Ethernet1/0 no ip address shutdown half-duplex!interface Ethernet1/1 no ip address shutdown half-duplex!interface Et
22、hernet1/2 no ip address shutdown half-duplex!interface Ethernet1/3 no ip address shutdown half-duplex!router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 4.4.4.4 log-adjacency-changes network 10.0.0.0 0.0.255.255 area 0!ip http serverno ip http secure-server!mpls l
23、dp router-id Loopback0 force!control-plane! !line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!endR4# R5#show runBuilding configuration.Current configuration : 1666 bytes!version 12.4service timestamps debug datetime msecservice timestamps log datetime msecno service password-enc
24、ryption!hostname R5!boot-start-markerboot-end-marker!no aaa new-modelmemory-size iomem 5!ip cefno ip domain lookup!mpls label range 500 599mpls traffic-eng tunnels! !interface Loopback0 ip address 10.5.5.5 255.255.255.255 ip ospf 100 area 0!interface Serial0/0 ip address 10.0.25.5 255.255.255.0 mpls
25、 ip mpls traffic-eng tunnels serial restart-delay 0 ip rsvp bandwidth 800!interface Serial0/1 no ip address shutdown serial restart-delay 0!interface Serial0/2 ip address 10.0.45.5 255.255.255.0 mpls ip mpls traffic-eng tunnels serial restart-delay 0 ip rsvp bandwidth 1200!interface Serial0/3 no ip
26、address shutdown serial restart-delay 0!interface Ethernet1/0 ip address 10.0.35.5 255.255.255.0 half-duplex mpls ip mpls traffic-eng tunnels ip rsvp bandwidth 800!interface Ethernet1/1 ip address 10.0.56.5 255.255.255.0 half-duplex mpls ip mpls traffic-eng tunnels ip rsvp bandwidth 1500!interface E
27、thernet1/2 ip address 10.0.57.5 255.255.255.0 half-duplex mpls ip mpls traffic-eng tunnels ip rsvp bandwidth 1200!interface Ethernet1/3 no ip address shutdown half-duplex!router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 router-id 5.5.5.5 log-adjacency-changes network 10.0.0.0 0.0.255.255 area 0!ip http serverno ip http secure-server!mpls ldp router-id Loopback0 force!control-plane!line con 0 exec-timeout 0 0 logging synchronousline aux 0line vty 0 4!endR5#R6#show runBuilding configuration.Current configuration : 2249 bytes!vers
copyright@ 2008-2022 冰豆网网站版权所有
经营许可证编号:鄂ICP备2022015515号-1