MPLS Traffic Engineering Tunnel Configuration
假設網路架構為:R1(Loopback0:1.1.1.1/32)-[10.0.0.0/30]-R2-[10.0.0.4/30]-R3(Loopback0:3.3.3.3/32),另外一條路徑為R1(Loopback0:1.1.1.1/32)-[10.0.0.8/30]-R4-[10.0.0.12/30]-R3(Loopback0:3.3.3.3/32),我們要在R1,R3上各設定一個unidirectional TE tunnel,每一個tunnel都分別有explicit & dynamic redundant path,同時啟用RSVP保留頻寬512K:
R1(config)#mpls traffic-eng tunnels
R1(config)#router isis
R1(config-router)#metric-style wide
R1(config-router)#mpls traffic-eng router-id loopback0
R1(config-router)#mpls traffic-eng level-2
R1(config)#int s0/0/0
R1(config-if)#mpls traffic-eng tunnels
R1(config)#int s0/0/1
R1(config-if)#mpls traffic-eng tunnels
R1(config)#ip explicit-path name 1TO2TO3
R1(cfg-ip-expl-path)#next-address 10.0.0.2
R1(cfg-ip-expl-path)#next-address 10.0.0.6
!強制由R1->R2->R3
R1(config)#int tunnel1
R1(config-if)#ip unnumber loopback0
R1(config-if)#tunnel destination 3.3.3.3
R1(config-if)#tunnel mode mpls traffic-eng
R1(config-if)#tunnel mpls traffic-eng path-option 1 explicit name 1TO2TO3
R1(config-if)#tunnel mpls traffic-eng path-option 2 dynamic
R1(config-if)#tunnel mpls traffic-eng bandwidth 512
R1(config)#int s0/0/0
R1(config-if)#ip rsvp bandwidth 512
R1(config)#int s0/0/1
R1(config-if)#ip rsvp bandwidth 512
R3(config)#mpls traffic-eng tunnels
R3(config)#router isis
R3(config-router)#metric-style wide
R3(config-router)#mpls traffic-eng router-id loopback0
R3(config-router)#mpls traffic-eng level-2
R3(config)#int s0/0/0
R3(config-if)#mpls traffic-eng tunnels
R3(config)#int s0/0/1
R3(config-if)#mpls traffic-eng tunnels
R3(config)#ip explicit-path name 3TO4TO1
R3(cfg-ip-expl-path)#next-address 10.0.0.13
R3(cfg-ip-expl-path)#next-address 10.0.0.9
!強制由R3->R4->R1
R3(config)#int tunnel1
R3(config-if)#ip unnumber loopback0
R3(config-if)#tunnel destination 1.1.1.1
R3(config-if)#tunnel mode mpls traffic-eng
R3(config-if)#tunnel mpls traffic-eng path-option 1 explicit name 3TO4TO1
R3(config-if)#tunnel mpls traffic-eng path-option 2 dynamic
R3(config-if)#tunnel mpls traffic-eng bandwidth 512
R3(config)#int s0/0/0
R3(config-if)#ip rsvp bandwidth 512
R3(config)#int s0/0/1
R3(config-if)#ip rsvp bandwidth 512
R2(config)#mpls traffic-eng tunnels
R2(config)#int s0/0/0
R2(config-if)#mpls traffic-eng tunnels
R2(config-if)#ip rsvp bandwidth 512
R2(config)#int s0/0/1
R2(config-if)#mpls traffic-eng tunnels
R2(config-if)#ip rsvp bandwidth 512
R4(config)#mpls traffic-eng tunnels
R4(config)#int s0/0/0
R4(config-if)#mpls traffic-eng tunnels
R4(config-if)#ip rsvp bandwidth 512
R4(config)#int s0/0/1
R4(config-if)#mpls traffic-eng tunnels
R4(config-if)#ip rsvp bandwidth 512
Comments