Các Bro cho mình hỏi sự khác nhau giữa Route-map và IP Policy list trong BGP. Thanks! :-B
Announcement
Collapse
No announcement yet.
Route-map & IP Policy list
Collapse
X
-
Chao ban,
- IP Policy list chi la co match khong co set.
- IP policy list co the tham chieu vao trong route-map.
Router(config)# ip policy-list POLICY-LIST-NAME-1 permitRouter(config-policy-list)# match as-path 1Router(config)# route-map MAP-NAME-1 10
Router(config-policy-list)# match metric 10
Router(config-policy-list)# end
Router(config)# ip policy-list POLICY-LIST-NAME-2 permitRouter(config-policy-list)# match community 20
Router(config-policy-list)# match metric 10
Router(config-policy-list)# ip community-list 20 permit 20:1
Router(config-policy-list)# endRouter(config-route-map)# match ip-address 1---> This feature adds the capability for a network operator to group route map match clauses into named lists called policy lists. A policy list functions like a macro
Router(config-route-map)# match policy-list POLICY-LIST-NAME-1
Router(config-route-map)# match policy-list POLICY-LIST-NAME-2
Router(config-route-map)# set community 10:1
Router(config-route-map)# set local-preference 140
Router(config-route-map)# end
Comment