08-20-2012 07:38 PM - edited 03-04-2019 05:19 PM
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.
08-20-2012 07:44 PM
Never mind! I'm an idiot. It's 4am and I am very tired.
I typed neighbor 101.101.101.1 prefix-list SET_METRIC_78 in and should have typed neighbor 101.101.101.1 route-map SET_METRIC_78 in
R1#conf t
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#router bgp 50
R1(config-router)#no neighbor 101.101.101.1 prefix-list SET_METRIC_78 in
R1(config-router)#neighbor 101.101.101.1 route-map SET_METRIC_78 in
R1(config-router)#^Z
R1#
*Mar 1 01:38:07.011: %SYS-5-CONFIG_I: Configured from console by console
R1#clear ip bgp 101.101.101.1
R1#
*Mar 1 01:38:28.623: %BGP-5-ADJCHANGE: neighbor 101.101.101.1 Down User reset
R1#
*Mar 1 01:39:02.551: %BGP-5-ADJCHANGE: neighbor 101.101.101.1 Up
R1#show ip bgp
BGP table version is 11, 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 100 27 i
* i 22.22.22.2 0 100 40 4569 i
R1#
I'm going to bed.
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: