cancel
Showing results for 
Search instead for 
Did you mean: 
cancel

Who Me Too'd this topic

Setting BGP weight not working

I am trying to set the weight for route 78.15.1.192/26 that Router1 learns from ISP1-R1 to 100.

I have created a prefix-list, applied it inside a route-map setting the weight, applied it to the neighbour (inbound) and reset all neighborships. But it is not working and I don't know why. Below is output from Router 1. Can anyone help?

R1#show ip prefix-list

ip prefix-list MATCH_78: 1 entries

seq 5 permit 78.15.1.192/26  <<<<<<<<<<<<matching prefix. implicit deny blocks all others.

ip prefix-list SET_METRIC_78: 0 entries

R1#show route-map

route-map SET_METRIC_78, permit, sequence 10
  Match clauses:
    ip address prefix-lists: MATCH_78  <<<<<<<<<<<<<<<matching the prefix-list
  Set clauses:
    weight 100  <<<<<<<<<<<<<<<<<<setting weight
  Policy routing matches: 0 packets, 0 bytes  <<<<<<<<<<no matches. Maybe the problem is here?


R1#show run | s bgp
router bgp 50
no synchronization
bgp router-id 1.1.1.1
bgp log-neighbor-changes
network 11.11.11.0 mask 255.255.255.0
neighbor 22.22.22.2 remote-as 50
neighbor 22.22.22.2 update-source Loopback1
neighbor 22.22.22.2 next-hop-self
neighbor 22.22.22.2 weight 40
neighbor 33.33.33.3 remote-as 50
neighbor 33.33.33.3 ebgp-multihop 2
neighbor 33.33.33.3 update-source Loopback1
neighbor 33.33.33.3 next-hop-self
neighbor 44.44.44.4 remote-as 50
neighbor 44.44.44.4 ebgp-multihop 2
neighbor 44.44.44.4 update-source Loopback1
neighbor 44.44.44.4 next-hop-self
neighbor 101.101.101.1 remote-as 27
neighbor 101.101.101.1 ebgp-multihop 2
neighbor 101.101.101.1 update-source Loopback1
neighbor 101.101.101.1 prefix-list SET_METRIC_78 in <<<<<<<<< applying inbound filter
no auto-summary


R1#show ip bgp
BGP table version is 8, local router ID is 1.1.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
              r RIB-failure, S Stale
Origin codes: i - IGP, e - EGP, ? - incomplete

   Network          Next Hop            Metric LocPrf Weight Path
*> 11.11.11.0/24    0.0.0.0                  0         32768 i
*>i22.22.22.0/24    22.22.22.2               0    100     40 i
*>i33.33.33.0/24    33.33.33.3               0    100      0 i
*>i44.44.44.0/24    44.44.44.4               0    100      0 i
*  78.15.1.192/26   101.101.101.1            0             0 27 i     <<<<<<Internal and external sources. But weight shows as 0.
*>i                          22.22.22.2               0    100     40 4569 i

*> 150.1.70.64/28   101.101.101.1            0             0 27 i
*> 190.36.21.0/24   101.101.101.1            0             0 27 i

Thanks in advance.

Who Me Too'd this topic