1. Trang chủ
  2. » Thể loại khác

CẤU HÌNH LOAD BALANCE TRÊN NHIỀU ĐƯỜNG HẦM pps

14 356 0

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

THÔNG TIN TÀI LIỆU

Nội dung

CẤU HÌNH LOAD BALANCE TRÊN NHIỀU ĐƯỜNG HẦM CHI PHÍ BẰNG NHAU Mô tả: Thực hiện - Các bước cấu hình đường đi động và đường đi tường minh trong MPLS TE: (1) Cấu hình một giao tiếp loopback cho đường hầm tương ứng. Địa chỉ IP này có thể sử dụng làm router ID trong các tiến trình xử lý trên bộ định tuyến. PE1-AS1(config)#interface loopback 0 PE1-AS1(config-if)# ip address 10.10.10.101 255.255.255.25 (2) Cho phép TE toàn cục trên bộ định tuyến và trên giao tiếp. PE1-AS1(config)#mpls traffic-eng tunnels PE1-AS1(config)#interface serial 1/0 PE1-AS1(config-if)#mpls traffic-eng tunnels PE1-AS1(config-if)#interface serial /1 PE1-AS1(config-if)#mpls traffic-eng tunnels PE1-AS1(config-if)#interface serial 1/2 PE1-AS1(config-if)#mpls traffic-eng tunnels (3) Cấu hình các thông số RSVP Vì chúng ta chọn mọi giao tiếp trong cấu trúc mạng thể thiết lập LSP, cấu hình này thực hiện trên mọi giao tiếp. PE1-AS1(config)#interface serial 1/0 PE1-AS1(config-if)#ip rsvp bandwidth 256 256 PE1-AS1(config-if)#interface serial 1/1 PE1-AS1(config-if)#ip rsvp bandwidth 256 256 PE1-AS1(config-if)#interface serial 1/2 PE1-AS1(config-if)#ip rsvp bandwidth 256 256 (4) Cấu hình các thông số giao tiếp đường hầm trên bộ định tuyến đầu đường hầm. Bộ định tuyến PE1-AS1, đích đến của đường hầm là địa chỉ loopback trên bộ định tuyến PE2-AS1 (10.10.10.103). Đầu tiên, các đường hầm động được cấu hình để IGP thực hiện thuật toán CSPF và xác định đường đi tương ứng. Do đó, tùy chọn đường đi cho việc tạo đường hầm này là động (dymamic). Đường hầm được xác định với độ ưu tiên là 1 và băng thông yêu cầu là 100 K. Đường hầm cũng được xác định độ ưu tiên thiết lập (setup) và lưu giữ (hold) bằng 1 để xác định nó được ưu tiên hơn các đường hầm LSP khác trong miền. PE1-AS1(config)#interface Tunnel0 PE1-AS1(config-if)# ip unnumbered Loopback0 PE1-AS1(config-if)# tunnel destination 10.10.10.103 PE1-AS1(config-if)# tunnel mode mpls traffic-en PE1-AS1(config-if)# tunnel mpls traffic-eng priority 1 1 PE1-AS1(config-if)# tunnel mpls traffic-eng bandwidth 100 PE1-AS1(config-if)# tunnel mpls traffic-eng path-option 1 dynamic (5) Cấu hình các đường hầm động quảng bá vào IGP. Giao tiếp đường hầm được cấu hình thêm vào bảng định tuyến IGP cho phép chuyển tiếp lưu lượng dọc đường hầm. PE1-AS1(config)#interface Tunnel0 PE1-AS1(config-if)#tunnel mpls traffic-eng autoroute announce (6) Cấu hình các đường hầm tường minh (explicit-path tunnel). Đường hầm tường minh, LSP1, được cấu hình qua P2-AS1 giữa PE1-AS1 và PE2-AS1. Cấu hình giao tiếp đường hầm với các thông số tương ứng. Đường hầm này được cấu hình với cùng địa chỉ loopback và cùng địa chỉ đích trên PE2-AS1. Các yêu cầu tài nguyên của đường hầm cũng được duy trì. Tuy nhiên độ ưu tiên đường hầm là 2 để nó không được chọn làm LSP chính. Cấu hình tùy chọn đường ánh xạ tên của một đường tường minh được cấu hình ở đầu đường hầm ánh xạ tới các địa chỉ trạm kế trên đường LSP. PE1-AS1(config)#interface Tunnel1 PE1-AS1(config-if)# ip unnumbered Loopback0 PE1-AS1(config-if)# tunnel destination 10.10.10.103 PE1-AS1(config-if)# tunnel mode mpls traffic-eng PE1-AS1(config-if)# tunnel mpls traffic-eng priority 2 2 PE1-AS1(config-if)# tunnel mpls traffic-eng bandwidth 100 PE1-AS1(config-if)# tunnel mpls traffic-eng path-option 1 explicit name LSP1 (7) Cấu hình đường tường minh với các địa chỉ IP trạm kế của bộ định tuyến trên đường LSP. PE1-AS1(config)#ip explicit-path name LSP1 PE1-AS1(cfg-ip-expl-path)#next-address 10.10.10.10 Explicit Path name LSP1: 1: next-address 10.10.10.10 PE1-AS1(cfg-ip-expl-path)#next-address 10.10.10.14 Explicit Path name LSP1: 1: next-address 10.10.10.10 2: next-address 10.10.10.14 PE1-AS1(cfg-ip-expl-path)#next-address 10.10.10.103 Explicit Path name LSP1: 1: next-address 10.10.10.10 2: next-address 10.10.10.14 3: next-address 10.10.10.103 (8) Cấu hình giao tiếp đường hầm được quảng bá vào IGP để chọn đường đi cho luồng lưu lượng được điều khiển trong miền. PE1-AS1(config)#interface Tunnel1 PE1-AS1(config-if)# tunnel mpls traffic-eng autoroute announce (9) Cho phép IGP trên MPLS TE. Cấu hình này cần thực hiện trên mọi bộ định tuyến trong miền TE. PE1-AS1(config)#router ospf 100 PE1-AS1(config-router)#mpls traffic-eng area 0 PE1-AS1(config-router)#mpls traffic-eng router-id loopback 0 CẤU HÌNH: Router PE1-AS1 ! version 12.2 ! hostname PE1-AS1 ! enable password cisco ! ip subnet-zero ! ip cef mpls ldp logging neighbor-changes mpls traffic-eng tunnels ! interface Loopback0 ip address 10.10.10.101 255.255.255.255 ! interface Tunnel0 ip unnumbered Loopback0 tunnel destination 10.10.10.103 tunnel mode mpls traffic-eng tunnel mpls traffic-eng autoroute announce tunnel mpls traffic-eng priority 1 1 tunnel mpls traffic-eng bandwidth 100 tunnel mpls traffic-eng path-option 1 dynamic ! interface Tunnel1 ip unnumbered Loopback0 tunnel destination 10.10.10.103 tunnel mode mpls traffic-eng tunnel mpls traffic-eng autoroute announce tunnel mpls traffic-eng priority 2 2 tunnel mpls traffic-eng bandwidth 100 tunnel mpls traffic-eng path-option 1 explicit name LSP1 ! interface Serial1/0 description Connected to P1-AS1 ip address 10.10.10.1 255.255.255.252 mpls traffic-eng tunnels tag-switching ip ip rsvp bandwidth 1000 ! interface Serial1/1 description Connected to P2-AS1 ip address 10.10.10.9 255.255.255.252 mpls traffic-eng tunnels tag-switching ip fair-queue 64 256 48 ip rsvp bandwidth 1000 ! interface Serial1/2 description Connected to P3-AS1 ip address 10.10.10.17 255.255.255.252 mpls traffic-eng tunnels tag-switching ip clockrate 64000 ip rsvp bandwidth 1000 ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 log-adjacency-changes network 10.0.0.0 0.255.255.255 area 0 ! ip http server ip classless ! ip explicit-path name LSP1 enable next-address 10.10.10.10 next-address 10.10.10.14 next-address 10.10.10.103 ! call rsvp-sync ! line con 0 line aux 0 line vty 0 4 no login ! end Router PE2-AS1 ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname PE2-AS1 ! logging queue-limit 100 enable password cisco ! ip subnet-zero ! no ip domain lookup ! ip cef mpls ldp logging neighbor-changes mpls traffic-eng tunnels ! interface Loopback0 ip address 10.10.10.103 255.255.255.255 ! interface Ethernet0/0 description Connected to P1-AS1 ip address 10.10.10.6 255.255.255.252 half-duplex mpls traffic-eng tunnels tag-switching ip ip rsvp bandwidth 1000 ! interface Serial0/0 description Connected to P2-AS1 ip address 10.10.10.14 255.255.255.252 no ip mroute-cache mpls traffic-eng tunnels tag-switching ip no fair-queue ip rsvp bandwidth 1000 ! interface Serial0/1 description Connected to P3-AS1 ip address 10.10.10.22 255.255.255.252 mpls traffic-eng tunnels tag-switching ip ip rsvp bandwidth 1000 ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 log-adjacency-changes network 10.0.0.0 0.255.255.255 area 0 ! no ip http server ip classless ! line con 0 line aux 0 line vty 0 4 no login ! end Router P1-AS1 ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname P1-AS1 ! logging queue-limit 100 no logging buffered enable password cisco ! memory-size iomem 10 ip subnet-zero ! ip cef mpls ldp logging neighbor-changes mpls traffic-eng tunnels ! interface Loopback0 ip address 10.10.10.102 255.255.255.255 ! interface Ethernet0/0 description Connected to PE2-AS1 ip address 10.10.10.5 255.255.255.252 half-duplex mpls traffic-eng tunnels tag-switching ip ip rsvp bandwidth 1000 ! interface Serial0/0 description Connected to PE1-AS1 ip address 10.10.10.2 255.255.255.252 mpls traffic-eng tunnels tag-switching ip clockrate 64000 no fair-queue ip rsvp bandwidth 1000 ! interface Serial0/1 description Connected to P3-AS1 ip address 10.10.10.26 255.255.255.252 mpls traffic-eng tunnels tag-switching ip ip rsvp bandwidth 1000 ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 log-adjacency-changes network 10.0.0.0 0.255.255.255 area 0 ! no ip http server ip classless ! line con 0 line aux 0 line vty 0 4 no login ! ! end Router P2-AS1 ! version 12.2 service timestamps debug uptime service timestamps log uptime no service password-encryption ! hostname P2-AS1 ! logging queue-limit 100 no logging buffered enable password cisco ! ip subnet-zero ! ip cef mpls ldp logging neighbor-changes mpls traffic-eng tunnels ! interface Loopback0 ip address 10.10.10.104 255.255.255.255 ! interface Ethernet0/0 ip address 192.168.2.2 255.255.255.0 half-duplex ! interface Serial0/0 description Connected to PE1-AS1 ip address 10.10.10.10 255.255.255.252 mpls traffic-eng tunnels tag-switching ip clockrate 64000 no fair-queue ip rsvp bandwidth 1000 ! interface Serial0/1 description Connected to PE2-AS1 ip address 10.10.10.13 255.255.255.252 mpls traffic-eng tunnels tag-switching ip clockrate 64000 ip rsvp bandwidth 1000 ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 log-adjacency-changes network 10.0.0.0 0.255.255.255 area 0 ! no ip http server ip classless ! line con 0 line aux 0 line vty 0 4 no login ! end Router P3-AS1 ! version 12.2 service timestamps debug datetime msec service timestamps log datetime msec no service password-encryption ! hostname P3-AS1 ! logging queue-limit 100 enable password cisco ! memory-size iomem 10 ip subnet-zero ! ip cef mpls ldp logging neighbor-changes mpls traffic-eng tunnels ! interface Loopback0 ip address 10.10.10.105 255.255.255.255 ! ! interface Serial1/0 description Connected to P1-AS1 ip address 10.10.10.25 255.255.255.252 mpls traffic-eng tunnels tag-switching ip clockrate 64000 ip rsvp bandwidth 1000 ! interface Serial1/1 description Connected to PE1-AS1 ip address 10.10.10.18 255.255.255.252 mpls traffic-eng tunnels tag-switching ip ip rsvp bandwidth 1000 ! interface Serial1/2 description Connected to PE2-AS1 ip address 10.10.10.21 255.255.255.252 mpls traffic-eng tunnels tag-switching ip clockrate 64000 ip rsvp bandwidth 1000 ! router ospf 100 mpls traffic-eng router-id Loopback0 mpls traffic-eng area 0 log-adjacency-changes network 10.0.0.0 0.255.255.255 area 0 ! ip http server ip classless ! line con 0 line aux 0 line vty 0 4 no login ! end KIỂM TRA (1) Kiểm tra trạng thái của đường hầm: PE1-AS1#show mpls traffic-eng tunnels brief Signalling Summary: LSP Tunnels Process: running RSVP Process: running Forwarding: enabled Periodic reoptimization: every 3600 seconds, next in 800 seconds Periodic auto-bw collection: disabled TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT PE1-AS1_t0 10.10.10.103 - Se1/0 up/up PE1-AS1_t1 10.10.10.103 - Se1/1 up/up Displayed 2 (of 2) heads, 0 (of 0) midpoints, 0 (of 0) tails P1-AS1#show mpls traffic-eng tunnels brief Signalling Summary: LSP Tunnels Process: running RSVP Process: running Forwarding: enabled Periodic reoptimization: every 3600 seconds, next in 633 seconds Periodic auto-bw collection: disabled TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT PE1-AS1_t0 10.10.10.103 Se0/0 Et0/0 up/up Displayed 0 (of 0) heads, 1 (of 1) midpoints, 0 (of 0) tails PE2-AS1#show mpls traffic-eng tunnels brief Signalling Summary: LSP Tunnels Process: running RSVP Process: running Forwarding: enabled Periodic reoptimization: every 3600 seconds, next in 686 seconds Periodic auto-bw collection: disabled TUNNEL NAME DESTINATION UP IF DOWN IF STATE/PROT PE1-AS1_t0 10.10.10.103 Et0/0 - up/up PE1-AS1_t1 10.10.10.103 Se0/0 - up/up Displayed 0 (of 0) heads, 0 (of 0) midpoints, 2 (of 2) tails (2) Kiểm tra các thông số của đường hầm: PE1-AS1#show mpls traffic-eng tunnels destination 10.10.10.103 Name: PE1-AS1_t0 (Tunnel0) Destination: 10.10.10.103 Status: Admin: up Oper: up Path: valid Signalling: connected path option 1, type dynamic (Basis for Setup, path weight 791) [...]... Uptime: 27 minutes, 39 seconds (3) Kiểm tra trạm kế để tới địa chỉ đích trong bảng định tuyến IGP: - Vì cấu hình 2 đường hầm trên bộ định tuyến PE1-AS1 (động và tường minh) với cùng các thông số, lưu lượng tới địa chỉ đích 10.10.10.103 được cân bằng tải bằng nhau (equally load balanced) qua hai đường PE1-AS1#show ip route 10.10.10.103 Routing entry for 10.10.10.103/32 Known via "ospf 100", distance... Tunnel0 Route metric is 792, traffic share count is 1 directly connected, via Tunnel1 Route metric is 792, traffic share count is 1 (4) Thực hiện ping mở rộng để thấy các gói được cân bằng tải qua hai đường hầm: PE1-AS1#ping Protocol [ip]: Target IP address: 10.10.10.103 Repeat count [5]: 2 Datagram size [100]: Timeout in seconds [2]: Extended commands [n]: y Source address or interface: 10.10.10.101 Type... option 1, type dynamic (Basis for Setup, path weight 791) Config Parameters: Bandwidth: 100 kbps (Global) Priority: 1 1 Affinity: 0x0/0xFFFF Metric Type: TE (default) AutoRoute: enabled LockDown: disabled Loadshare: 100 bwbased auto-bw: disabled InLabel : OutLabel : Serial1/0, 16 RSVP Signalling Info: Src 10.10.10.101, Dst 10.10.10.103, Tun_Id 0, Tun_Instance 43 RSVP Path Info: My Address: 10.10.10.101...Config Parameters: Bandwidth: 100 kbps (Global) Priority: 1 1 Affinity: 0x0/0xFFFF Metric Type: TE (default) AutoRoute: enabled LockDown: disabled Loadshare: 100 bwbased auto-bw: disabled InLabel : OutLabel : Serial1/0, 16 RSVP Signalling Info: Src 10.10.10.101, Dst 10.10.10.103, Tun_Id 0, Tun_Instance 43 RSVP Path Info: My Address: 10.10.10.101... type explicit LSP1 (Basis for Setup, path weight 845) Config Parameters: Bandwidth: 100 kbps (Global) Priority: 2 2 Affinity: 0x0/0xFFFF Metric Type: TE (default) AutoRoute: enabled LockDown: disabled Loadshare: 100 bwbased auto-bw: disabled InLabel : OutLabel : Serial1/1, 16 RSVP Signalling Info: Src 10.10.10.101, Dst 10.10.10.103, Tun_Id 1, Tun_Instance 38 RSVP Path Info: My Address: 10.10.10.101 . CẤU HÌNH LOAD BALANCE TRÊN NHIỀU ĐƯỜNG HẦM CHI PHÍ BẰNG NHAU Mô tả: Thực hiện - Các bước cấu hình đường đi động và đường đi tường minh trong MPLS TE: (1) Cấu hình một giao tiếp. announce (6) Cấu hình các đường hầm tường minh (explicit-path tunnel). Đường hầm tường minh, LSP1, được cấu hình qua P2-AS1 giữa PE1-AS1 và PE2-AS1. Cấu hình giao tiếp đường hầm với các thông. tiên, các đường hầm động được cấu hình để IGP thực hiện thuật toán CSPF và xác định đường đi tương ứng. Do đó, tùy chọn đường đi cho việc tạo đường hầm này là động (dymamic). Đường hầm được

Ngày đăng: 25/07/2014, 08:20

TỪ KHÓA LIÊN QUAN

TÀI LIỆU CÙNG NGƯỜI DÙNG

TÀI LIỆU LIÊN QUAN

w