10-28-2024 03:53 AM
if want manage prefix by community Used tag XXX:YYY
and XXX:ZZZ
XXX must be as number set on my switch ??
I used Tag 65000:100
and Tag 65000:200
for bgp community for manage my prefix
see tag in ip show bgp 1.1.1.0/24
But tag not working in route-map
My question is Now XXX must be as number set on my switch ???
show ip bgp X.X.X.X/24
BGP routing table information for VRF default, address family IPv4 Unicast
BGP routing table entry for X.X.X.X/24, version 2765
Paths: (1 available, best #1)
Flags: (0x00001a) (high32 00000000) on xmit-list, is in urib, is best urib route, is in HW
Advertised path-id 1
Path type: internal, path is valid, is best path, no labeled nexthop, in rib
AS-Path: Customer-AS-Number , path sourced external to AS
172.18.20.2 (metric 0) from 172.18.20.2
Origin IGP, MED not set, localpref 100, weight 0
Community: 65000:100
Path-id 1 advertised to peers:
172.23.129.41
Now if used Community: 65000:100 Not working in route-map
Solved! Go to Solution.
10-28-2024 04:14 AM - edited 10-28-2024 04:15 AM
This is nexus config
route-map LF-To-DMZ permit 5
match community HQ-Community-DMZ
set local-preference 150
ip community-list standard HQ-Community-DMZ seq 5 permit 65520:100
router bgp 65521
neighbor 10.103.10.22
remote-as 65520
address-family ipv4 unicast
send-community
send-community extended
route-map LF-To-DMZ in
route-map DMZ-AGG-To-LF out
default-originate
soft-reconfiguration inbound always
######## sh ip bgp 10.154.194.0
BGP routing table information for VRF default, address family IPv4 Unicast
BGP routing table entry for 10.154.194.0/25, version 7789929
Paths: (3 available, best #2)
Flags: (0x8000001a) (high32 00000000) on xmit-list, is in urib, is best urib route, is in HW
Multipath: eBGP
Path type: internal, path is valid, received and used, not best reason: Internal path, no labeled nexthop
AS-Path: 65520 , path sourced external to AS
10.153.13.174 (metric 0) from 10.153.13.174 (10.153.11.36)
Origin incomplete, MED 0, localpref 150, weight 0
Community: 65520:100
10-28-2024 04:14 AM - edited 10-28-2024 04:15 AM
This is nexus config
route-map LF-To-DMZ permit 5
match community HQ-Community-DMZ
set local-preference 150
ip community-list standard HQ-Community-DMZ seq 5 permit 65520:100
router bgp 65521
neighbor 10.103.10.22
remote-as 65520
address-family ipv4 unicast
send-community
send-community extended
route-map LF-To-DMZ in
route-map DMZ-AGG-To-LF out
default-originate
soft-reconfiguration inbound always
######## sh ip bgp 10.154.194.0
BGP routing table information for VRF default, address family IPv4 Unicast
BGP routing table entry for 10.154.194.0/25, version 7789929
Paths: (3 available, best #2)
Flags: (0x8000001a) (high32 00000000) on xmit-list, is in urib, is best urib route, is in HW
Multipath: eBGP
Path type: internal, path is valid, received and used, not best reason: Internal path, no labeled nexthop
AS-Path: 65520 , path sourced external to AS
10.153.13.174 (metric 0) from 10.153.13.174 (10.153.11.36)
Origin incomplete, MED 0, localpref 150, weight 0
Community: 65520:100
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide