某银行在进行广域网的改造, SR88-3通过增加团体属性的方式将路由发布给SR88-1和SR88-2,SR88-3上原本是想将101:1到101:17的17个团体属性的路由都发布给SR88-1和SR88-2,但是配置完后在SR88-1和SR88-2上出现只能接收到部分路由的现象。
从配置上看,在SR88-3上配置的增加团体属性的配置如下:
ip community-list 105 permit 101:[1-17] 201:
ip community-list 105 permit 101:[1-17] 202:
ip community-list 105 permit 101:[1-17] 203:
ip community-list 105 permit 101:[1-17] 204:
ip community-list 105 permit 101:[1-17] 205:
ip community-list 105 permit 101:[1-17] 206:
ip community-list 105 permit 101:[1-17] 207:
ip community-list 105 permit 101:[1-17] 208:
ip community-list 105 permit 101:[1-17] 209:
ip community-list 105 permit 101:[1-17] 210:
ip community-list 105 permit 101:[1-17] 211:
ip community-list 105 permit 101:[1-17] 212:
ip community-list 105 permit 101:[1-17] 213:
ip community-list 105 permit 101:[1-17] 214:
ip community-list 105 permit 101:[1-17] 215:
ip community-list 105 permit 101:[1-17] 216:
ip community-list 105 permit 101:[1-17] 217:
#
route-policy RM_To_CoreNet permit node 30
if-match community 105
#
bgp 65xxx
peer x.x.x.x route-policy RM_To_CoreNet export
但是在SR88-3上使能该配置后,发现SR88-1和SR88-2上只能接收团体属性是101:1和101:7两种团体属性的路由,查看SR88-3上发现SR88-3上只发布了以上两种团体属性的路由,查看SR88-3上的正则表达式的内容发现,101:[1-17]只能表示101:1和101:7,并不能表示101:1-101:17,;
将团体属性所表示的正则表达式的内容变成如下方式解决:
ip community-list 105 permit 101:([1-9]|1[0-7]) 201:
ip community-list 105 permit 101:([1-9]|1[0-7]) 202:
ip community-list 105 permit 101:([1-9]|1[0-7]) 203:
ip community-list 105 permit 101:([1-9]|1[0-7]) 204:
ip community-list 105 permit 101:([1-9]|1[0-7]) 205:
ip community-list 105 permit 101:([1-9]|1[0-7]) 206:
ip community-list 105 permit 101:([1-9]|1[0-7]) 207:
ip community-list 105 permit 101:([1-9]|1[0-7]) 208:
ip community-list 105 permit 101:([1-9]|1[0-7]) 209:
ip community-list 105 permit 101:([1-9]|1[0-7]) 210:
ip community-list 105 permit 101:([1-9]|1[0-7]) 211:
ip community-list 105 permit 101:([1-9]|1[0-7]) 212:
ip community-list 105 permit 101:([1-9]|1[0-7]) 213:
ip community-list 105 permit 101:([1-9]|1[0-7]) 214:
ip community-list 105 permit 101:([1-9]|1[0-7]) 215:
ip community-list 105 permit 101:([1-9]|1[0-7]) 216:
ip community-list 105 permit 101:([1-9]|1[0-7]) 217:
在进行正则表达式的配置时,不要想当然的进行配置,需要结构正则表达式的符号含义进行配置,例如本例中的0-9可以表示,但是10-17就不能表示,只能换其他的方式表达
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作