Dell S5148F-ON OS10 Enterprise Edition User Guide Release 10.3.2E-R2 - Page 209
MED attributes, Local preference attribute
View all Dell S5148F-ON manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 209 highlights
1 Assign an AS number in CONFIGURATION mode. router bgp as-number 2 Enter a neighbor and IP address (A.B.C.D) in ROUTER-BGP mode. neighbor ip-address 3 Enter Address Family mode in ROUTER-NEIGHBOR mode. address-family {[ipv4 | ipv6] [unicast]) 4 Allow the specified neighbor to send or receive multiple path advertisements in ROUTER-BGP mode. The count parameter controls the number of paths that are advertised - not the number of paths received. add-path [both | received | send] count Enable additional paths OS10(config)# router bgp 102 OS10(conf-router-bgp-102)# neighbor 32.1.1.2 OS10(conf-router-neighbor)# address-family ipv4 unicast OS10(conf-router-bgp-neighbor-af)# add-path both 3 MED attributes OS10 uses the MULTI_EXIT_DISC or MED attribute when comparing EBGP paths from the same AS. MED comparison is not performed in paths from neighbors with different AS numbers. 1 Enable MED comparison in the paths from neighbors with different AS in ROUTER-BGP mode. always-compare-med 2 Change the best path MED selection in ROUTER-BGP mode. bestpath med {confed | missing-as-best} • confed-Selects the best path MED comparison of paths learned from BGP confederations. • missing-as-best-Treats a path missing an MED as the most preferred one. • missing-as-worst-Treats a path missing an MED as the least preferred one. Modify MED attributes OS10(config)# router bgp 100 OS10(conf-router-bgp-100)# always-compare-med OS10(conf-router-bgp-100)# bestpath med confed Local preference attribute You can change the value of the LOCAL_PREFERENCE attributes for all routes the router receives. To change the LOCAL_PREF value in ROUTER-BGP mode from 0 to 4294967295 with default 100, use the default local preference value command. To view the BGP configuration, use the show running-configuration command. A more flexible method for manipulating the LOCAL_PREF attribute value is to use a route-map. 1 Assign a name to a route map in CONFIGURATION mode. route-map map-name {permit | deny | sequence-number} 2 Change the LOCAL_PREF value for routes meeting the criteria of this route map in ROUTE-MAP mode, then return to CONFIGURATION mode. set local-preference value exit 3 Enter ROUTER-BGP mode. router bgp as-number Layer 3 209