- internet - Advertise this route to the Internet community. All routers belong to it.
- no-export - Do not advertise this route to eBGP peers (real BGP peers).
- no-advertise - Do not advertise this route to any peer (internal or external).
- local-as - Do not advertise this route to peers outside the local autonomous system. This route will not be advertised to other autonomous systems or sub-autonomous systems when confederations are configured.
- BGP communities + no-export
- no-export - Do not advertise this route to eBGP peers (real BGP peers) //nếu cấu hình BGP confedertion thì không thực hiện
- BGP communities + no-advertise.
- no-advertise - Do not advertise this route to any peer (internal or external).
- BGP communities +local-as.
- local-as - Do not advertise this route to peers outside the local autonomous system. This route will not be advertised to other autonomous systems or sub-autonomous systems when confederations are configured.
- This route will not be advertised to other autonomous systems or sub-autonomous systems when confederations are configured.
Ví dụ: R1 advertise 1.0.0.0/8 vào BGP. Cấu
 hình trên R2, không sử dụng filter sao cho AS 400 không  nhận được mạng 1.0.0.0/8.
Config R1:
ip
 prefix-list l0 seq 5 permit 1.0.0.0/8
!
route-map
 SET_COMMUNITY permit 10
 match ip address prefix-list l0
 set community no-export
!
route-map
 SET_COMMUNITY permit 20
!
router
 bgp 100
 network 1.0.0.0
 neighbor 10.1.12.2 remote-as 200
 neighbor 10.1.12.2 send-community
 neighbor 10.1.12.2 route-map SET_COMMUNITY
 out
Config R2:
 neighbor 10.1.24.4 remote-as 400
 neighbor 10.1.24.4 send-community    //test doi voi eBGP
 neighbor 10.1.23.3 send-community   //test doi voi iBGP
Sau khi cấu hình như trên. Show trên R4 và R3.
=
 > với no-export chỉ ảnh hưởng tới
 eBGP.
Chú ý:
Giả sử cấu hình trên R1 như sau:
ip
 prefix-list l0 seq 5 permit 1.0.0.0/8
!
route-map
 SET_COMMUNITY permit 10
 match ip address prefix-list l0
 set community no-export
!
route-map
 SET_COMMUNITY permit 20
!
router
 bgp 100
 network 1.0.0.0 mask 255.0.0.0 route-map SET_COMMUNITY 
 neighbor 10.1.12.2 remote-as 200
 neighbor 10.1.12.2 send-community
2 cách trên đã thể hiện điểm khác nhau. Quá trình
 diễn ra của nó như sau:
Cách 1. R1 send 1.0.0.0/24 rồi mới apply
 community, nên R2 vẫn có thể học được 
Cách 2. R1 apply commnity rồi mới send sang
 R2, nên R2 k học được
=>
 thấy như chúng giống nhau, nhưng bản chất khác nhau hoàn toàn. Vậy khi áp
 dụng, cần lưu ý trường hợp này  :D.
Ví
 dụ: R1 adver 1.0.0.0/24 sang R2. câu hình sao cho R2 không adver sang các
 router khác.
Config R1:
ip
 prefix-list l0 seq 5 permit 1.0.0.0/8
!
route-map
 SET_COMMUNITY permit 10
 match ip address prefix-list l0
 set community no-advertise
!
route-map
 SET_COMMUNITY permit 20
!
router
 bgp 100
 network 1.0.0.0
 neighbor 10.1.12.2 remote-as 200
 neighbor 10.1.12.2 send-community
 neighbor 10.1.12.2 route-map SET_COMMUNITY
 out
Tương tự như trường hợp 1. chú ý phân biệt các trường
 hợp, để sử dụng hợp lý.
Cách test tương tự cho các trường hợp trên. Chú ý : 
Quan trọng ^^









 
 
 
 
 
 
 
 
 
 
No comments:
Post a Comment