540
BGP configuration mode
bgp always-compare-med
no bgp always-compare-med
bgp bestpath as-path ignore
no bgp bestpath as-path ignore
bgp bestpath compare-confed-aspath
no bgp bestpath
compare-confed-aspath
bgp bestpath compare-routerid
no bgp bestpath compare-routerid
bgp bestpath med {[confed]
[missing-is-worst]}
no bgp bestpath med {[confed]
[missing-is-worst]}
BGP may change some path-select rules
by configuration to change the best
selection and compare MED under EBGP
environment through these command,
ignore the AS-PATH length, compare the
confederation as-path length, compare
the route identifier and compare the
confederation MED etc. Its format “no”
recovers the default route path-selected
rules.
14.8.3 Command For BGP
14.8.3.1 address-family
Command: address-family <AFI> <SAFI>
Function:
Enter address-family mode
Parameter: <AFI>
: address-family, such as IPv4
、
IPv6
、
VPNv4, etc
<SAFI>
: sub address-family, such as unicast
、
multicast.
Default:
None
Command Mode:
BGP routing mode
Usage Guide:
Since the BGP-4 supports multi-protocol, it is available to get different
configuration for each address-family. Actually the configuration outside address-family
mode is configuring the default address-family (normally IPv4 unicast). To configure non
default mode, enter this address-family mode
Example:
Switch(config-router)#
address-family ipv4 unicast
14.8.3.2 address-family ipv4
Command: address-family ipv4 {
multicast | unicast |
vrf<vrf-name>}
no address-family ipv4 vrf <vrf-name>
Function:
Enter BGP VRF address-family mode. The “
no address-family ipv4 vrf
<vrf-name>
“ command deletes the configuration of the address-family
Parameter: <vrf-name>
specifies the name of VPN routing/forwarding instances.
Command Mode:
BGP routing mode