CẤU HÌNH FRAME-RELAY VÀ BGP
Page 1 of 1 • Share •
CẤU HÌNH FRAME-RELAY VÀ BGP
1. Mô hình triển khai:

2. Cấu hình các interface trên router và Frame Relay:
Cấu hình trên FR1:

Cấu hình trên R1:
R1(config)# interface s1/0
R1(config-if)# no shutdown
R1(config-if)# encapsulation frame-relay
R1(config)# interface s1/0.102 point-to-point
R1(conifg-subif)# ip address 192.168.12.1 255.255.255.252
R1(config-subif)# frame-relay interface-dlci 102
R1(config)# interface s1/0.103 point-to-point
R1(conifg-subif)# ip address 192.168.13.1 255.255.255.252
R1(config-subif)# frame-relay interface-dlci 103
Cấu hình trên R2:
R2(config)# interface s1/0
R2(config-if)# no shutdown
R2(config-if)# encapsulation frame-relay
R2(config)# interface s1/0.201 point-to-point
R2(conifg-subif)# ip address 192.168.12.2 255.255.255.252
R2(config-subif)# frame-relay interface-dlci 201
R2(config)# interface s1/0.204 point-to-point
R2(conifg-subif)# ip address 192.168.24.1 255.255.255.252
R2(config-subif)# frame-relay interface-dlci 204
Cấu hình trên R3:
R3(config)# interface s1/0
R3(config-if)# no shutdown
R3(config-if)# encapsulation frame-relay
R3(config)# interface s1/0.301 point-to-point
R3(conifg-subif)# ip address 192.168.13.2 255.255.255.252
R3(config-subif)# frame-relay interface-dlci 301
R3(config)# interface s1/0.304 point-to-point
R3(conifg-subif)# ip address 192.168.34.1 255.255.255.252
R3(config-subif)# frame-relay interface-dlci 304
Cấu hình trên R4:
R4(config)# interface s1/0
R4(config-if)# no shutdown
R4(config-if)# encapsulation frame-relay
R4(config)# interface s1/0.402 point-to-point
R4(conifg-subif)# ip address 192.168.24.2 255.255.255.252
R4(config-subif)# frame-relay interface-dlci 402
R4(config)# interface s1/0.403 point-to-point
R4(conifg-subif)# ip address 192.168.34.2 255.255.255.252
R4(config-subif)# frame-relay interface-dlci 403
R4(config)# interface s1/1
R4(config-if)# no shutdown
R4(config-if)# ip address 192.168.45.1 255.255.255.252
R4(config-if)# encapsulation ppp
R4(config)# interface s1/2
R4(config-if)# no shutdown
R4(config-if)# ip address 192.168.46.1 255.255.255.252
R4(config-if)# encapsulation ppp
Cấu hình trên R5:
R5(config)# interface s1/1
R5(config-if)# no shutdown
R5(config-if)# ip address 192.168.45.2 255.255.255.252
R5(config-if)# encapsulation ppp
R5(config)# interface s1/2
R5(config-if)# no shutdown
R5(config-if)# ip address 192.168.46.2 255.255.255.252
R5(config-if)# encapsulation ppp
3. Cấu hình routing OSPF 10 trong vùng Frame Relay:
Cấu hình trên R1:
R1(config)# router ospf 10
R1(config-router)# network 192.168.12.2 0.0.0.0 area 0
R1(config-router)# network 192.168.13.2 0.0.0.0 area 0
Cấu hình trên R2:
R2(config)# router ospf 10
R2(config-router)# network 192.168.12.2 0.0.0.0 area 0
R2(config-router)# network 192.168.24.1 0.0.0.0 area 0
Cấu hình trên R3:
R3(config)# router ospf 10
R3(config-router)# network 192.168.13.2 0.0.0.0 area 0
R3(config-router)# network 192.168.34.1 0.0.0.0 area 0
Cấu hình trên R4:
R4(config)# router ospf 10
R4(config-router)# network 192.168.24.2 0.0.0.0 area 0
R4(config-router)# network 192.168.34.2 0.0.0.0 area 0
4. Cấu hình external routing BGP:
Cấu hình trên R4:
R4(config)# interface loopback 0
R4(config-if)# ip address 4.4.4.4 255.255.255.255
R4(config)# router bgp 45700
R4(config-router)# neighbor 5.5.5.5 remote-as 35700
R4(config-router)# neighbor 5.5.5.5 update-source loopback 0
R4(config-router)# neighbor 5.5.5.5 ebgp-multihop 5
Kiểm tra cấu hình bgp:
R4# show ip bgp summary
Kiểm tra ping tới 5.5.5.5 chưa được, bước tiếp theo ta cấu hình static route.
R4(config)# ip route 5.5.5.5 255.255.255.255 192.168.45.2
R4(config)# ip route 5.5.5.5 255.255.255.255 192.168.46.2
Cấu hình trên R5:
R5(config)# interface loopback 0
R5(config-if)# ip address 5.5.5.5 255.255.255.255
R5(config)# router bgp 35700
R5(config-router)# neighbor 4.4.4.4 remote-as 45700
R5(config-router)# neighbor 4.4.4.4 update-source loopback 0
R5(config-router)# neighbor 4.4.4.4 ebgp-multihop 5
Thực hiện debug tcp transactions để kiểm tra cấu hình bgp thì thấy IDB chưa up:
R5# debug ip tcp transactions
Cấu hình static route:
R5(config)# ip route 4.4.4.4 255.255.255.255 192.168.45.1
R5(config)# ip route 4.4.4.4 255.255.255.255 192.168.46.1
Bây giờ R5 đã thấy neighbor 4.4.4.4 và trạng thái đã up
Chúng ta tắt chế độ debug:
R5# undebug all
Kiểm tra lại cấu hình:
R5# show ip bgp summary
5. Cấu hình external BGP và internal BGP update cho R1:
Cấu hình trên R1:
R1(config)# interface loopback 0
R1(config-if)# ip address 1.1.1.1 255.255.255.255
R1(config)# router ospf 10
R1(config-router)# network 1.1.1.1 0.0.0.0 area 0
Cấu hình internal bgp:
R1(config)# router bgp 45700
R1(config-router)# neighbor 8.8.8.8 remote-as 45700
R1(config-router)# neighbor 8.8.8.8 update-source loopback 0
Kiểm tra thông tin bgp:
R1# show ip bgp summary
Disable chế độ bgp synchronization
R1(config)# router bgp 45700
R1(config-router)# no synchronization
Sau khi disable chế độ bgp synchronization trên cả R1 và R4 ta kiểm tra lại bảng định tuyến thì thấy đã update các tuyến đường bgp.
R1# show ip route
Cấu hình trên R4:
R4(config)# interface loopback 1
R4(config-if)# ip address 8.8.8.8 255.255.255.255
R4(config)# router ospf 10
R4(config-router)# network 8.8.8.8 0.0.0.0 area 0
Cấu hình internal bgp:
R4(config)# router bgp 45700
R4(config-router)# neighbor 1.1.1.1 remote-as 45700
R4(config-router)# neighbor 1.1.1.1 update-source loopback 1
Kiểm tra thông tin bgp:
R4# show ip bgp summary
Disable chế độ bgp synchronization và chỉ ra next-hop để router update chình là R4 (8.8.8.
thay vì R5 (5.5.5.5):
R4(config)# router bgp 45700
R4(config-router)# no synchronization
R4(config-router)# neighbor 1.1.1.1 next-hop-self
Cấu hình trên R5:
R5(config)# interface loopback 1
R5(config-if)# ip address 10.1.1.1 255.255.255.0
R5(config)# interface loopback 2
R5(config-if)# ip address 10.2.1.1 255.255.255.0
R5(config)# interface loopback 3
R5(config-if)# ip address 10.3.1.1 255.255.255.0
R5(config)# interface loopback 4
R5(config-if)# ip address 123.1.1.1 255.255.255.0
R5(config)# router bgp 35700
R5(config-router)# network 123.1.1.0 mask 255.255.255.0
Tới đây các bạn xem thông tin bgp ở trên cả ba router R1, R4 và R5 đều thấy nhưng tuyến đường bgp không được update trong bảng định tuyến của R1. Vấn đề đó ta giải quyết ở internal bgp trên R1 và R4.
Cấu hình redistribute bgp:
R5(config)# ip access-list standard BGP_REDISTRIBUTE
R5(config-std-nacl)# permit 10.1.1.0 0.0.0.255
R5(config-std-nacl)# permit 10.2.1.0 0.0.0.255
R5(config-std-nacl)# permit 10.3.1.0 0.0.0.255
R5(config)# route-map BGP_MAP
R5(config-route-map)# match ip address BGP_REDISTRIBUTE
R5(config)# router bgp 35700
R5(config-router)# redistribute connected route-map BGP_MAP
Kiểm tra cấu hình access-list:
R5# show ip access-list
Kiểm tra route-map:
R5# show route-map
Kiểm tra thông tin bgp:
R5# show ip bgp summary
Bây giờ ta kiểm tra bảng định tuyến của R4 sẽ có thêm hai tuyến đường bgp từ quá trình bgp redistribution.

2. Cấu hình các interface trên router và Frame Relay:
Cấu hình trên FR1:

Cấu hình trên R1:
R1(config)# interface s1/0
R1(config-if)# no shutdown
R1(config-if)# encapsulation frame-relay
R1(config)# interface s1/0.102 point-to-point
R1(conifg-subif)# ip address 192.168.12.1 255.255.255.252
R1(config-subif)# frame-relay interface-dlci 102
R1(config)# interface s1/0.103 point-to-point
R1(conifg-subif)# ip address 192.168.13.1 255.255.255.252
R1(config-subif)# frame-relay interface-dlci 103
Cấu hình trên R2:
R2(config)# interface s1/0
R2(config-if)# no shutdown
R2(config-if)# encapsulation frame-relay
R2(config)# interface s1/0.201 point-to-point
R2(conifg-subif)# ip address 192.168.12.2 255.255.255.252
R2(config-subif)# frame-relay interface-dlci 201
R2(config)# interface s1/0.204 point-to-point
R2(conifg-subif)# ip address 192.168.24.1 255.255.255.252
R2(config-subif)# frame-relay interface-dlci 204
Cấu hình trên R3:
R3(config)# interface s1/0
R3(config-if)# no shutdown
R3(config-if)# encapsulation frame-relay
R3(config)# interface s1/0.301 point-to-point
R3(conifg-subif)# ip address 192.168.13.2 255.255.255.252
R3(config-subif)# frame-relay interface-dlci 301
R3(config)# interface s1/0.304 point-to-point
R3(conifg-subif)# ip address 192.168.34.1 255.255.255.252
R3(config-subif)# frame-relay interface-dlci 304
Cấu hình trên R4:
R4(config)# interface s1/0
R4(config-if)# no shutdown
R4(config-if)# encapsulation frame-relay
R4(config)# interface s1/0.402 point-to-point
R4(conifg-subif)# ip address 192.168.24.2 255.255.255.252
R4(config-subif)# frame-relay interface-dlci 402
R4(config)# interface s1/0.403 point-to-point
R4(conifg-subif)# ip address 192.168.34.2 255.255.255.252
R4(config-subif)# frame-relay interface-dlci 403
R4(config)# interface s1/1
R4(config-if)# no shutdown
R4(config-if)# ip address 192.168.45.1 255.255.255.252
R4(config-if)# encapsulation ppp
R4(config)# interface s1/2
R4(config-if)# no shutdown
R4(config-if)# ip address 192.168.46.1 255.255.255.252
R4(config-if)# encapsulation ppp
Cấu hình trên R5:
R5(config)# interface s1/1
R5(config-if)# no shutdown
R5(config-if)# ip address 192.168.45.2 255.255.255.252
R5(config-if)# encapsulation ppp
R5(config)# interface s1/2
R5(config-if)# no shutdown
R5(config-if)# ip address 192.168.46.2 255.255.255.252
R5(config-if)# encapsulation ppp
3. Cấu hình routing OSPF 10 trong vùng Frame Relay:
Cấu hình trên R1:
R1(config)# router ospf 10
R1(config-router)# network 192.168.12.2 0.0.0.0 area 0
R1(config-router)# network 192.168.13.2 0.0.0.0 area 0
Cấu hình trên R2:
R2(config)# router ospf 10
R2(config-router)# network 192.168.12.2 0.0.0.0 area 0
R2(config-router)# network 192.168.24.1 0.0.0.0 area 0
Cấu hình trên R3:
R3(config)# router ospf 10
R3(config-router)# network 192.168.13.2 0.0.0.0 area 0
R3(config-router)# network 192.168.34.1 0.0.0.0 area 0
Cấu hình trên R4:
R4(config)# router ospf 10
R4(config-router)# network 192.168.24.2 0.0.0.0 area 0
R4(config-router)# network 192.168.34.2 0.0.0.0 area 0
4. Cấu hình external routing BGP:
Cấu hình trên R4:
R4(config)# interface loopback 0
R4(config-if)# ip address 4.4.4.4 255.255.255.255
R4(config)# router bgp 45700
R4(config-router)# neighbor 5.5.5.5 remote-as 35700
R4(config-router)# neighbor 5.5.5.5 update-source loopback 0
R4(config-router)# neighbor 5.5.5.5 ebgp-multihop 5
Kiểm tra cấu hình bgp:
R4# show ip bgp summary
Kiểm tra ping tới 5.5.5.5 chưa được, bước tiếp theo ta cấu hình static route.
R4(config)# ip route 5.5.5.5 255.255.255.255 192.168.45.2
R4(config)# ip route 5.5.5.5 255.255.255.255 192.168.46.2
Cấu hình trên R5:
R5(config)# interface loopback 0
R5(config-if)# ip address 5.5.5.5 255.255.255.255
R5(config)# router bgp 35700
R5(config-router)# neighbor 4.4.4.4 remote-as 45700
R5(config-router)# neighbor 4.4.4.4 update-source loopback 0
R5(config-router)# neighbor 4.4.4.4 ebgp-multihop 5
Thực hiện debug tcp transactions để kiểm tra cấu hình bgp thì thấy IDB chưa up:
R5# debug ip tcp transactions
Cấu hình static route:
R5(config)# ip route 4.4.4.4 255.255.255.255 192.168.45.1
R5(config)# ip route 4.4.4.4 255.255.255.255 192.168.46.1
Bây giờ R5 đã thấy neighbor 4.4.4.4 và trạng thái đã up
Chúng ta tắt chế độ debug:
R5# undebug all
Kiểm tra lại cấu hình:
R5# show ip bgp summary
5. Cấu hình external BGP và internal BGP update cho R1:
Cấu hình trên R1:
R1(config)# interface loopback 0
R1(config-if)# ip address 1.1.1.1 255.255.255.255
R1(config)# router ospf 10
R1(config-router)# network 1.1.1.1 0.0.0.0 area 0
Cấu hình internal bgp:
R1(config)# router bgp 45700
R1(config-router)# neighbor 8.8.8.8 remote-as 45700
R1(config-router)# neighbor 8.8.8.8 update-source loopback 0
Kiểm tra thông tin bgp:
R1# show ip bgp summary
Disable chế độ bgp synchronization
R1(config)# router bgp 45700
R1(config-router)# no synchronization
Sau khi disable chế độ bgp synchronization trên cả R1 và R4 ta kiểm tra lại bảng định tuyến thì thấy đã update các tuyến đường bgp.
R1# show ip route
Cấu hình trên R4:
R4(config)# interface loopback 1
R4(config-if)# ip address 8.8.8.8 255.255.255.255
R4(config)# router ospf 10
R4(config-router)# network 8.8.8.8 0.0.0.0 area 0
Cấu hình internal bgp:
R4(config)# router bgp 45700
R4(config-router)# neighbor 1.1.1.1 remote-as 45700
R4(config-router)# neighbor 1.1.1.1 update-source loopback 1
Kiểm tra thông tin bgp:
R4# show ip bgp summary
Disable chế độ bgp synchronization và chỉ ra next-hop để router update chình là R4 (8.8.8.
R4(config)# router bgp 45700
R4(config-router)# no synchronization
R4(config-router)# neighbor 1.1.1.1 next-hop-self
Cấu hình trên R5:
R5(config)# interface loopback 1
R5(config-if)# ip address 10.1.1.1 255.255.255.0
R5(config)# interface loopback 2
R5(config-if)# ip address 10.2.1.1 255.255.255.0
R5(config)# interface loopback 3
R5(config-if)# ip address 10.3.1.1 255.255.255.0
R5(config)# interface loopback 4
R5(config-if)# ip address 123.1.1.1 255.255.255.0
R5(config)# router bgp 35700
R5(config-router)# network 123.1.1.0 mask 255.255.255.0
Tới đây các bạn xem thông tin bgp ở trên cả ba router R1, R4 và R5 đều thấy nhưng tuyến đường bgp không được update trong bảng định tuyến của R1. Vấn đề đó ta giải quyết ở internal bgp trên R1 và R4.
Cấu hình redistribute bgp:
R5(config)# ip access-list standard BGP_REDISTRIBUTE
R5(config-std-nacl)# permit 10.1.1.0 0.0.0.255
R5(config-std-nacl)# permit 10.2.1.0 0.0.0.255
R5(config-std-nacl)# permit 10.3.1.0 0.0.0.255
R5(config)# route-map BGP_MAP
R5(config-route-map)# match ip address BGP_REDISTRIBUTE
R5(config)# router bgp 35700
R5(config-router)# redistribute connected route-map BGP_MAP
Kiểm tra cấu hình access-list:
R5# show ip access-list
Kiểm tra route-map:
R5# show route-map
Kiểm tra thông tin bgp:
R5# show ip bgp summary
Bây giờ ta kiểm tra bảng định tuyến của R4 sẽ có thêm hai tuyến đường bgp từ quá trình bgp redistribution.

chantroitinhoc- Admin
- Posts: 126
Join date: 2008-01-16

Similar topics» CẤU HÌNH FRAME-RELAY POINT-TO-MULTIPOINT
» CẤU HÌNH FRAME-RELAY VÀ BGP
» CẤU HÌNH FRAME-RELAY POINT-TO-POINT
» CẤU HÌNH ROUTER NHƯ MỘT FRAME RELAY SWITCH
» gold frame amatsu mix plan
» CẤU HÌNH FRAME-RELAY VÀ BGP
» CẤU HÌNH FRAME-RELAY POINT-TO-POINT
» CẤU HÌNH ROUTER NHƯ MỘT FRAME RELAY SWITCH
» gold frame amatsu mix plan
Page 1 of 1
Permissions in this forum:
You can reply to topics in this forum

