I am trying to change the local prefrence of my prefix 18.104.22.168/24 advertising to my ISP AS100 to 150.when I check on my router it showing me LF150 on default route which I am recieving from ISP, instead of on my prefix ,is this is correct or my config below is incorrect?router bgp 200
network 22.214.171.124 mask 255.255.255.0
neighbor 126.96.36.199 remote-as 100
neighbor 188.8.131.52 route-map LOCAL_PREF in
ip route 184.108.40.206 255.255.255.0 Null0
ip http server
ip as-path access-list 10 permit ^$
ip access-list standard PREF
permit 220.127.116.11 0.0.0.255
route-map LOCAL_PREF permit 10
match ip address name PREF
set local-preference 150
route-map LOCAL_PREF permit 20
3750#sh ip bgp
BGP table version is 3, local router ID is 172.16.1.1
Status codes: s suppressed, d damped, h history, * valid, > best, i - internal,
The IOS is doing exactly what you have asked it to do: it is assigning local pref of 150 to routes received from that neighbor. Note that the route map which is assigning local pref is assigned as "in" which is routes that you receive from the neighbor. An "out" route map would control what you advertise TO the neighbor.
Unfortunately you can not do what you apparently want to do: you can not set the local preference on routes that you advertise to your external neighbor. Local preference is used in deciding which routes that you have learned are the routes that you will prefer to use. Local pref is set by the router that is receiving the routes and can not be set on routes that you are sending to an external neighbor.
When you say LF is that supposed to be local preference?
Perhaps you did not understand my first post: you do not advertise local preference to external peers.
Let me try to explain it slightly differently: Local preference is assigned by you to routes that you learn from neighbors. Local preference will help to control how you send outbound traffic.
What you advertise to external neighbors will control how traffic is sent to you (your inbound traffic). The neighbor may assign local preference to your routes, but they do the assignment and you do not advertise local preference to them.
So remember this: routes that you learn from a neighbor will control how you send outbound traffic. Routes that you advertise to an neighbor will help to control inbound traffic.
We are pleased to announce availability of Beta software for 16.6.3. 16.6.3 will be the second rebuild on the 16.6 release train targeted towards Catalyst 9500/9400/9300/3850/3650 switching platforms. We are looking for early feedback from custome...