nsf area 1 stub passive-interface Loopback0 network 10.10.10.0 0.0.0.255 area 0 network 10.10.11.0 0.0.0.255 area 0 network 10.10.12.0 0.0.0.255 area 0 network 10.10.13.0 0.0.0.255 area 0 network 10.10.15.0 0.0.0.255 area 1 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 ! router rip version 2 network 100.0.0.0 network 222.222.222.0 ! router bgp 100 no synchronization bgp log-neighbor-changes neighbor 10.10.20.2 remote-as 100 neighbor 10.10.20.2 update-source Loopback0 neighbor 10.10.30.3 remote-as 100 neighbor 10.10.30.3 update-source Loopback0 no auto-summary ! ip classless ip route 10.10.24.44 255.255.255.255 Tunnel2 ip route 10.10.40.4 255.255.255.255 Tunnel1 ! ! logging 10.10.3.99 access-list 101 permit ip 100.100.100.0 0.0.0.255 200.200.200.0 0.0.0.255 route-map MPLStunnel permit 10 match interface FastEthernet2/0/0 set interface Tunnel2 ! route-map MPLStunnel permit 20 match interface FastEthernet2/0/1 set interface Tunnel1 !
5. 确认:
1. OSPF 流量工程:
R1#sh ip rou Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2 E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area * - candidate default, U - per-user static route, o - ODR
Gateway of last resort is not set
222.222.222.0/24 is variably subnetted, 2 subnets, 2 masks C 222.222.222.2/32 is directly connected, Serial4/1/3 C 222.222.222.0/24 is directly connected, Serial4/1/3 100.0.0.0/24 is subnetted, 2 subnets C 100.100.100.0 is directly connected, FastEthernet10/0/0