In our example, you can assign a higher local preference value to 13.100.0.0/16 in US West than in US East, and similarly, a higher local preference value to 23.100.0.0/16 in US East than in US West. Paths that the router originates have a weight of 32,768 by default, and other paths have a weight of 0. The weight attribute is not advertised to neighboring routers. Consider a scenario where the Palo Alto Networks firewall has EBGP connectivity with a peer of an External Autonomous System and has IBGP connectivity with peers within the same Autonomous System that it is part of. Because we use the BGP to exchange routing info, you can use BGP's Local Preference to influence routing. The weight can be a number from 0 to 65,535. A route without assigned WEIGHT have a default value of 0. The default Local Preference value is 100. The attribute is local and will not be propagated to other routers in the network within the BGP update messages.
By increasing the local preference to 800 we can make AS 1 …
Weight: Weight is a Cisco-defined attribute that is local to a router. Prefer the path with the highest WEIGHT. The BGP Local Preference attribute is used to manipulate the best outbound path and applied on inbound external routes.Unlike the Weight attribute, Local Preference is passed on to iBGP peers. Local Pref - in both locations I would use a route-map again and again match the default route then set the local pref to be 150. These IBGP Peers also have EBGP connectivity with other routers, outside of the Autonomous System. The weight is not a BGP attribute; it’s a local parameter that is not communicated between routers. A path without LOCAL_PREF attribute have a value of 100 by default. There are instances where the traffic destined for networks outside of the Autonomous System should egress out via the Palo Alto firewall instead of the IBGP peers. BGP weight attribute is a Cisco proprietary path attribute that is local to the router and is used to influence local path selection on a certain router.. BGP weight is the first in the list: BGP weight is the first tie breaker for best path selection on a Cisco router, the attribute is not propagated to other routers in the BGP updates and only found on Cisco routers. Weight is neve advertised to any BGP neighbor. R3(config)#router bgp 123 R3(config-router)#neighbor 13.13.13.1 weight 150 R3(config-router)#neighbor 23.23.23.2 weight 200 R3#sh ip bgp BGP table version is 25, local router ID is 3.3.3.3 Status codes: s suppressed, d damped, h history, * valid, > best, i - internal, r RIB-failure, S Stale Origin codes: i - IGP, e - EGP, ?
.