5-BGP.note

noteId: WEB4968d8a33909f365bbb8e4860050dd45 · 原始路径:/ALL/网络 - C模块/1-韩国专家拓扑/5-BGP.note · 图片:2 · 附件待处理:0

 
 
 
 
6. 对于9.9.9.9/32网络,为了在AS 65001内部优选R4作为路径,需将Local Preference设置为200。
# R4:
access-list 1 permit 9.9.9.9
route-map R9 permit 10
 match ip address 1
 set local-preference 200
route-map R9 permit 20
 
router bgp 65001
 neighbor 1.1.1.1 route-map R9 out
 neighbor 2.2.2.2 route-map R9 out
 
 
7. 100.1.3.0/24、100.1.4.0/24、100.2.3.0/24、100.2.4.0/24网络必须在R3上通过Community属性传播至R9。此时,Community值需设置为65001:100。
# R3:
access-list 10 permit 100.1.3.0 0.0.0.255
access-list 10 permit 100.1.4.0 0.0.0.255
access-list 10 permit 100.2.3.0 0.0.0.255
access-list 10 permit 100.2.4.0 0.0.0.255
 
route-map COM permit 10
 match ip address 10
 set community 4259905636
 # set community 65001:100
route-map COM permit 20
 
router bgp 65001
 neighbor 5.5.5.5 send-community both
 neighbor 5.5.5.5 route-map COM out
 
# R5:
router bgp 65005
 neighbor 9.9.9.9 send-community both