设为首页收藏本站language→→ 语言切换

鸿鹄论坛

 找回密码
 论坛注册

QQ登录

先注册再绑定QQ

查看: 3368|回复: 0
收起左侧

[求助] bgp route-policy策略含义

[复制链接]
发表于 2022-11-9 15:29:50 | 显示全部楼层 |阅读模式
bgp 65021
router-id 192.1.27.13
group CCW-1 external
peer CCW-1 as-number 65031
peer CCW-1 route-update-interval 0
group CCW-2 external
peer CCW-2 as-number 65031
peer CCW-2 route-update-interval 0
group DCW-1 external
peer DCW-1 as-number 65011
peer DCW-1 route-update-interval 0
group DCW-2 external
peer DCW-2 as-number 65011
peer DCW-2 route-update-interval 0
group LCW-2 internal
peer LCW-2 route-update-interval 0
group OPC#1 external
peer OPC#1 as-number 65081
peer OPC#1 route-update-interval 0
peer OPC#1 password cipher $c$3$DElTlN/k2eQs6I1swKRXjapQEq2p5sJfJznSmIjh
group OPC#3 external
peer OPC#3 as-number 65082
peer OPC#3 route-update-interval 0
peer OPC#3 password cipher $c$3$QPXUHR6fTUUxb3BHE9Od0QSuZ7avI//DXhI2ai/a
group OPC#4 external
peer OPC#4 as-number 65082
peer OPC#4 route-update-interval 0
peer OPC#4 password cipher $c$3$2P6qewUnTtMX9YzhktFPKKXlN7B8TMHP3LQS0qpE
group SlbLvC external
peer SlbLvC as-number 65071
peer SlbLvC route-update-interval 0
peer SlbLvC password cipher $c$3$oFLvDWa1L6B2ZF5+SQUuqlfgGxXv/QDIu7hIHTGj
group SlbC external
peer SlbC as-number 65061
peer SlbC route-update-interval 0
peer SlbC password cipher $c$3$gQgyZlyUrYSrqbtQHzkICw3hBVnSsWor0gbl5toM
group XWw external
peer XWw as-number 65051
peer XWw route-update-interval 0
peer XWw password cipher $c$3$b2b53fl4b7RgcU94FmpOK54SkiFmz7aJfTZpsjo1
group bindServerRoleGroups external
peer bindServerRoleGroups as-number 65091
peer bindServerRoleGroups route-update-interval 0
peer bindServerRoleGroups password cipher $c$3$OGu5soRwEjnFFhGMUtlqnai7MfWU8Rw+Z70aHRyX
peer 192.1.30.2 group SlbLvC
peer 192.1.30.2 connect-interface Ten-GigabitEthernet1/0/1
peer 192.1.30.6 group SlbLvC
peer 192.1.30.6 connect-interface Ten-GigabitEthernet1/0/2
peer 192.1.30.10 group SlbC
peer 192.1.30.10 connect-interface Ten-GigabitEthernet1/0/3
peer 192.1.30.14 group SlbC
peer 192.1.30.14 connect-interface Ten-GigabitEthernet1/0/4
peer 192.1.30.50 group CCW-1
peer 192.1.30.50 connect-interface Ten-GigabitEthernet1/0/13
peer 192.1.30.54 group CCW-1
peer 192.1.30.54 connect-interface Ten-GigabitEthernet1/0/14
peer 192.1.30.58 group CCW-1
peer 192.1.30.58 connect-interface Ten-GigabitEthernet1/0/15
peer 192.1.30.62 group CSW-1
peer 192.1.30.62 connect-interface Ten-GigabitEthernet1/0/16
peer 192.1.30.66 group XWw
peer 192.1.30.66 connect-interface Ten-GigabitEthernet1/0/17
peer 192.1.30.70 group XWw
peer 192.1.30.70 connect-interface Ten-GigabitEthernet1/0/18
peer 192.1.30.74 group XWw
peer 192.1.30.74 connect-interface Ten-GigabitEthernet1/0/19
peer 192.1.30.78 group XWw
peer 192.1.30.78 connect-interface Ten-GigabitEthernet1/0/20
peer 192.1.30.114 group CCW-2
peer 192.1.30.114 connect-interface Ten-GigabitEthernet1/0/29
peer 192.1.30.118 group CCW-2
peer 192.1.30.118 connect-interface Ten-GigabitEthernet1/0/30
peer 192.1.30.122 group CCW-2
peer 192.1.30.122 connect-interface Ten-GigabitEthernet1/0/31
peer 192.1.30.126 group CCW-2
peer 192.1.30.126 connect-interface Ten-GigabitEthernet1/0/32
peer 192.1.30.130 group OPC#1
peer 192.1.30.130 connect-interface Ten-GigabitEthernet1/0/33
peer 192.1.30.134 group bindServerRoleGroups
peer 192.1.30.134 connect-interface Ten-GigabitEthernet1/0/35
peer 192.1.30.138 group bindServerRoleGroups
peer 192.1.30.138 connect-interface Ten-GigabitEthernet1/0/36
peer 192.1.30.142 group OPC#3
peer 192.1.30.142 connect-interface Ten-GigabitEthernet1/0/37
peer 192.1.30.146 group OPC#4
peer 192.1.30.146 connect-interface Ten-GigabitEthernet1/0/38
peer 192.1.30.150 group LCW-2
peer 192.1.30.150 connect-interface FortyGigE1/0/53
peer 192.1.30.154 group LCW-2
peer 192.1.30.154 connect-interface FortyGigE1/0/54
peer 192.1.33.17 group DCW-1
peer 192.1.33.17 connect-interface FortyGigE1/0/49
peer 192.1.33.57 group DCW-1
peer 192.1.33.57 connect-interface FortyGigE1/0/50
peer 192.1.33.113 group DCW-2
peer 192.1.33.113 connect-interface FortyGigE1/0/51
peer 192.1.33.153 group DCW-2
peer 192.1.33.153 connect-interface FortyGigE1/0/52
#
address-family ipv4 unicast
  balance 32
  preference 20 200 10
  network 192.1.27.13 255.255.255.255
  network 192.1.30.0 255.255.254.0
  peer CSW-1 enable
  peer CSW-2 enable
  peer DSW-1 enable
  peer DSW-1 route-policy LSW2DSW export
  peer DSW-2 enable
  peer DSW-2 route-policy LSW2DSW export
  peer LSW-2 enable
  peer LSW-2 route-policy LSW2LSW import
  peer LSW-2 next-hop-local
  peer OPS#1 enable
  peer OPS#1 route-policy LSW2GW export
  peer OPS#1 default-route-advertise
  peer OPS#3 enable
  peer OPS#3 route-policy LSW2GW export
  peer OPS#3 default-route-advertise
  peer OPS#4 enable
  peer OPS#4 route-policy LSW2GW export
  peer OPS#4 default-route-advertise
  peer SlbLvs enable
  peer SlbLvs route-policy LSW2GW export
  peer SlbLvs default-route-advertise
  peer SlbProxy enable
  peer SlbProxy route-policy LSW2GW export
  peer SlbProxy default-route-advertise
  peer Xgw enable
  peer Xgw route-policy LSW2GW export
  peer Xgw default-route-advertise
  peer bindServerRoleGroups enable
  peer bindServerRoleGroups route-policy LSW2GW export
  peer bindServerRoleGroups default-route-advertise
#
multicast routing
#
route-policy LSW2DSW deny node 5
if-match ip address prefix-list DenyIPtoDSW
#
route-policy LSW2DSW permit node 10
if-match community name LSW2DSW
apply cost 100
#
route-policy LSW2DSW permit node 20
#
route-policy LSW2GW permit node 10
if-match ip address prefix-list default
#
route-policy LSW2LSW permit node 0
if-match ip address prefix-list LSW2LSW
apply community 65021:65021
#
route-policy LSW2LSW permit node 10
#
ip prefix-list ALL_BUT_DEFAULT index 10 deny 0.0.0.0 0
ip prefix-list ALL_BUT_DEFAULT index 20 permit 0.0.0.0 0 less-equal 32
ip prefix-list DenyIPtoDSW index 10 permit 192.1.23.0 24 less-equal 32
ip prefix-list DenyIPtoDSW index 20 permit 192.1.22.0 24 less-equal 32
ip prefix-list DenyIPtoDSW index 30 permit 0.0.0.0 0
ip prefix-list LSW2LSW index 10 permit 193.1.0.0 24 less-equal 32
ip prefix-list LSW2LSW index 20 permit 10.42.132.0 23 less-equal 32
ip prefix-list LSW2LSW index 30 permit 192.1.15.0 24 less-equal 32
ip prefix-list LSW2LSW index 40 permit 192.1.16.0 24 less-equal 32
ip prefix-list LSW2LSW index 50 permit 192.1.17.0 24 less-equal 32
ip prefix-list LSW2LSW index 60 permit 10.42.134.0 23 less-equal 32
ip prefix-list LSW2LSW index 70 permit 10.42.136.0 23 less-equal 32
ip prefix-list default index 10 permit 0.0.0.0 0
#
ip community-list basic LSW2DSW permit 65021:65021
----------------------------------------------------------------

route-policy LSW2LSW permit node 0
if-match ip address prefix-list LSW2LSW
apply community 65021:65021
#
ip community-list basic LSW2DSW permit 65021:65021
配置里边这两条命令是否有关联,第二个是在这里边是什么意思




您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2024-11-21 16:39 , Processed in 0.057647 second(s), 9 queries , Redis On.  

  Powered by Discuz!

  © 2001-2024 HH010.COM

快速回复 返回顶部 返回列表