bgp团体属性和策略

bgp团体属性和策略

ID:15783567

大小:85.59 KB

页数:5页

时间:2018-08-05

bgp团体属性和策略_第1页
bgp团体属性和策略_第2页
bgp团体属性和策略_第3页
bgp团体属性和策略_第4页
bgp团体属性和策略_第5页
资源描述:

《bgp团体属性和策略》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、实验:BGP中路由策略的一些应用要求:192.168.20.1/24  COST 101  团体属性值200:100        21.1/24  过滤        22.1/24 COST100   R3的收到的20.1附加一个AS号1000和团体属性100:100AS100过滤AS200的流量不传给AS300(r3没有2.2.2.2)发送BGP更新报文时,可以携带私有自治系统号不携带私有自治系统号(peer192.168.1.2public-as-only) 配置如下:AR1#sysnamer1#interfaceEther

2、net0/0/0ipaddress192.168.1.1255.255.255.252#interfaceEthernet0/0/1ipaddress192.168.1.5255.255.255.252#interfaceLoopBack20ipaddress192.168.20.1255.255.255.0#interfaceLoopBack21ipaddress192.168.21.1255.255.255.0#interfaceLoopBack22ipaddress192.168.22.1255.255.255.0#bgp10

3、0peer192.168.1.2as-number200peer192.168.1.6as-number300#ipv4-familyunicast undosynchronization import-routedirect peer192.168.1.2enable peer192.168.1.6enable peer192.168.1.6route-policyaexport peer192.168.1.2route-policyaexport peer192.168.1.6advertise-community peer19

4、2.168.1.2advertise-community#route-policyapermitnode10if-matchip-prefixaapplycost101applycommunity200:100#route-policyadenynode20if-matchip-prefixb#route-policyapermitnode30if-matchip-prefixcapplycost100#route-policyapermitnode200#ipip-prefixaindex10permit192.168.20.02

5、4greater-equal24less-equal32ipip-prefixbindex10permit192.168.21.024greater-equal24less-equal32ipip-prefixcindex10permit192.168.22.024greater-equal24less-equal32#return  AR2#sysnamer2#interfaceEthernet0/0/0ipaddress192.168.1.2255.255.255.252#interfaceSerial0/0/3link-pro

6、tocolppp#interfaceGigabitEthernet0/0/0#interfaceGigabitEthernet0/0/1#interfaceGigabitEthernet0/0/2#interfaceGigabitEthernet0/0/3#interfaceNULL0#interfaceLoopBack0ipaddress2.2.2.2255.255.255.255#bgp200peer192.168.1.1as-number100#ipv4-familyunicast undosynchronization im

7、port-routedirect peer192.168.1.1enable peer192.168.1.1route-policyaexport#route-policyapermitnode10if-matchcommunity-filter1#ipcommunity-filter1permitno-export#return AR3sysnamer3#interfaceEthernet0/0/0#interfaceEthernet0/0/1ipaddress192.168.1.6255.255.255.252#bgp300pe

8、er192.168.1.5as-number100#ipv4-familyunicast undosynchronization peer192.168.1.5enable peer192.168.1.5route-policyaim

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。