no ip community-list 11 ip community-list 11 permit internet //全部匹配 ! R3 ip community-list 11 permit no-export route-map test permit 10 match community 11 exact-match //严格匹配no-export ,多一点少一点都不行 set metric 1111 ! route-map test permit 20 ! router bgp 300 neighbor 23....
将community发送给下一个BGP路由器 R4#neighbor 24.0.0.2 send-community R2#neighbor 1.1.1.1 send-community R1#neighbor 3.3.3.3 send-community R2#show ip bgp community R5#show ip bgp community show ip bgp community no-advertise show ip
配置BGP团体属性:neighbor <neighbor-ip> send-community该命令将允许将Community属性发送给邻居。 配置路由映射和Community设置:route-map permit <sequence-number> match <match-criteria> set community <community-value>其中,是路由映射的名称,<sequence-number>是序列号,<match-criteria>是路由匹配的条件,<communit...
一条路由可以设置多个团体属性,也就是说可以同时打上多个标记,还可以利用团体属性实现一些扩展的功能,比如在MPLS-VPN中RT属性; 默认情况下团体属性不会传递给邻居,必须有以下命令才行:neighbor 1.1.1.1 send-community;团体属性只会传给指定的邻居,并且只在该邻居上生效 Community值可以自己定义,此外有几个已经定义好...
match community 10 router ospf 23 redistribute bgp 12 subnets route-map match-community-ospf14 6.最后,还有一个重要的小细节不能忘:想peer传递community属性 R1: Router b 12 neighbor 2.2.2.2 send-community R2: Router b 12 neighbor 1.1.1.1 send-community ...
--- Configures to send community attribute to R2 neighbor 10.10.23.2 route-map Peer-R2 out !--- Configures outbound policy as defined by !--- route-map "Peer-R2" when peering with R2. no auto-summary ! ip classless ip bgp-community new-format !--- Allows you to configure the BGP ...
(config)# route-map test permit20R2(config-route-map)# exitR2(config)# router bgp200`R2(config-router)# neighbor 20.1.1.2 route-map test out``R2(config-router)# neighbor 20.1.1.2 send-community`---!!在R3上可以看到,1.1.1.0的BGP路由传递过来的 community 值有所改变R3#show ip b1.1.1.0BG...
Additive 增加,一个条目可以携带多个community属性值 ,但是需要在设置的时候添加上后面的关键字,这也充分说明了community属性有多么的灵活,当起始设备对其设置了属性值,到下游的某一台设备上都可以对其进行修改,如果配置时不加additive,那么将把原有的属性覆盖。
address-family ipv4 vrf 1 redistribute omp propagate-aspath neighbor 192.168.140.10 remote-as 65300 neighbor 192.168.140.10 activate neighbor 192.168.140.10 send-community both neighbor 192.168.160.215 remote-as 65400 neighbor 192.168.160.215 activate exit-address-family ! sdwan omp no shutdown send-pat...
r2(config-router)#neighbor 23.0.0.3 send-community 在R2上配置让R3继承该属性 r4#sh ip bgp Network Next Hop Metric LocPrf Weight Path *> 2.2.2.0/24 34.0.0.3 0 100 0 (64512) 100 i *> 222.222.222.0 34.0.0.3 0 100 0 (64512) 100 i ...