- 1、本文档共5页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
BGP团体属性和策略
实验:BGP中路由策略的一些应用
要求:
192.168.20.1/24?? COST?101??团体属性值200:100?
??????? 21.1/24??过滤
????????22.1/24?COST100???
R3的收到的20.1 附加一个AS号1000和团体属性100:100
AS100过滤AS200的流量不传给AS300 (r3没有2.2.2.2)
发送BGP更新报文时,可以携带私有自治系统号不携带私有自治系统号(peer 192.168.1.2 public-as-only )
?
配置如下:
AR1
#
sysname r1
#
interface Ethernet0/0/0
ip address 192.168.1.1 255.255.255.252
#
interface Ethernet0/0/1
ip address 192.168.1.5 255.255.255.252
#
interface LoopBack20
ip address 192.168.20.1 255.255.255.0
#
interface LoopBack21
ip address 192.168.21.1 255.255.255.0
#
interface LoopBack22
ip address 192.168.22.1 255.255.255.0
#
bgp 100
peer 192.168.1.2 as-number 200
peer 192.168.1.6 as-number 300
#
ipv4-family unicast
? undo synchronization
? import-route direct
? peer 192.168.1.2 enable
? peer 192.168.1.6 enable
? peer 192.168.1.6 route-policy a export
? peer 192.168.1.2 route-policy a export
? peer 192.168.1.6 advertise-community
? peer 192.168.1.2 advertise-community
#
route-policy a permit node 10
if-match ip-prefix a
apply cost 101
apply community 200:100
#
route-policy a deny node 20
if-match ip-prefix b
#
route-policy a permit node 30
if-match ip-prefix c
apply cost 100
#
route-policy a permit node 200
#
ip ip-prefix a index 10 permit 192.168.20.0 24 greater-equal 24 less-equal 32
ip ip-prefix b index 10 permit 192.168.21.0 24 greater-equal 24 less-equal 32
ip ip-prefix c index 10 permit 192.168.22.0 24 greater-equal 24 less-equal 32
#
return
?
?
AR2
#
sysname r2
#
interface Ethernet0/0/0
ip address 192.168.1.2 255.255.255.252
#
interface Serial0/0/3
link-protocol ppp
#
interface GigabitEthernet0/0/0
#
interface GigabitEthernet0/0/1
#
interface GigabitEthernet0/0/2
#
interface GigabitEthernet0/0/3
#
interface NULL0
#
interface LoopBack0
ip address 2.2.2.2 255.255.255.255
#
bgp 200
peer 192.168.1.1 as-number 100
#
ipv4-family unicast
? undo synchronization
? import-route direct
? peer 192.168.1.1 enable
? peer 192.168.1.1 route-policy a export
#
route-policy a permit node 10
if-match
您可能关注的文档
- Analytical Modeling and Evaluation of Affective Product Ecosystems.pdf
- Analytical Model for Risk Analysis of Economic Benefits of Investment Projects and its Application.pdf
- Analyzing Call Center Performance A Data Mining Approach.pdf
- Analyzing FD inference in relational databases.pdf
- Analyzing interaction orderings with model checking.pdf
- Analyzing Routers with Parallel Slower Memories.doc
- Analyzing Local Community TowAway Policies through AgentBased Simulation.pdf
- Analyzing risk factors.pdf
- Analyzing software systems using combinations of metric.pdf
- Analyzing security interoperability during components integration.pdf
- 2024_2025学年高中历史专题七近代以来科学技术的辉煌课时作业23向“距离”挑战含解析人民版必修第三册.doc
- 单位住房借款合同.docx
- 2025至2031年中国电镀电解电源行业投资前景及策略咨询研究报告.docx
- 2025至2031年中国电镀板行业投资前景及策略咨询研究报告.docx
- 2024_2025学年新教材高中物理第三章相互作用__力1.2实验:探究弹簧弹力与形变量的关系学案新人教版必修第一册.docx
- 2025至2031年中国电镀锌跑道形弹簧钩行业投资前景及策略咨询研究报告.docx
- 2025至2031年中国电镀组装哑铃行业投资前景及策略咨询研究报告.docx
- 2025至2031年中国电阻器基板行业投资前景及策略咨询研究报告.docx
- 2024_2025学年新教材高中生物高效作业19光合作用在叶绿体中进行__含光合色素的提取与分离实验含解析浙科版必修第一册.docx
- 2024年新教材高中地理第三章大气的运动第一节第2课时气压带风带季节移动与季风环流学案湘教版选择性必修1.doc
文档评论(0)