Cisco Guard BGP流量牵引配置

网络拓扑

Guard BGP 配置模板

router(config)# router bgp <Guard-AS-number>

router(config-router)# bgp router-id <Guard-IP-address>

router(config-router)# redistribute guard

router(config-router)# neighbor <Router-IP-address> remote-as <Router-AS-number>

router(config-router)# neighbor <Router-IP-address> description <description>

router(config-router)# neighbor <Router-IP-address> soft-reconfiguration inbound

router(config-router)# neighbor <Router-IP-address> distribute-list nothing-in in

router(config-router)# neighbor <Router-IP-address> route-map Guard-out out

router(config-router)# exit

router(config)# access-list nothing-in deny any

router(config)# route-map Guard-out permit 10

router(config-route-map)# set community no-export no-advertise

Example

router# show running-config

... ... ...

router bgp 64555

bgp router-id 192.168.8.8

redistribute guard

neighbor 192.168.8.1 remote-as 100

neighbor 192.168.8.1 description divert-from router

neighbor 192.168.8.1 soft-reconfiguration inbound

neighbor 192.168.8.1 distribute-list nothing-in in

neighbor 192.168.8.1 route-map Guard-out out

!

access-list nothing-in deny any

!

route-map Guard-out permit 10

set community 100:64555 no-export no-advertise

牵引路由器BGP配置模板

R7200(config)# router bgp <Router-AS>

R7200(config-router)# bgp log-neighbor-changes

R7200(config-router)# neighbor <Guard-IP-address> remote-as GuardAS

R7200(config-router)# neighbor <Guard-IP-address> description <description>

R7200(config-router)# neighbor <Guard-IP-address> soft-reconfiguration inbound

R7200(config-router)# neighbor <Guard-IP-address> distribute-list routesToGuard out

R7200(config-router)# neighbor <Guard-IP-address> route-map Guard-in in

R7200(config-router)# no synchronization

R7200(config-router)# exit

R7200(config)# ip bgp-community new-format

R7200(config)# ip community-list expanded <Guard-community-name> permit no-export

no-advertise

R7200(config)# route-map Guard-in permit 10

R7200(config-route-map)# match community <Guard-community-name> exact match

R7200(config-route-map)# exit

R7200(config)# ip access-list standard routestoGuard

R7200(config-std-nacl)# deny any

Example

R7200# show running-config

... ... ...

router bgp 100

bgp log-neighbor-changes

neighbor 192.168.8.8 remote-as 64555

neighbor 192.168.8.8 description Guard

neighbor 192.168.8.8 soft-reconfiguration inbound

neighbor 192.168.8.8 distribute-list routesToGuard out

neighbor 192.168.8.8 route-map Guard-in in

no synchronization

!

ip bgp-community new-format

ip community-list expanded Guard permit 100:64555 no-export no- advertise

!

route-map Guard-in permit 10

match community Guard exact match

ip access-list standard routesToGuard

deny any

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值