
190
Function:
Set the BGP defaults, the “
no bgp default {ipv4-unicast|local-preference
[<0-4294967295>]}
” command cancels this configuration.
Parameter: <0-4294967295>
: Default local priority.
Default:
The IPv4 unicast is default enabled when BGP is enabled. The default priority is 100.
Command Mode:
BGP route mode.
Usage Guide:
IPv4 unicast address-family is default enabled in BGP. Cancel this setting with no
bgp default ipv4-unicast command so to not enable this address-family in default. Default local
priority can be configured through bgp default local-preference command.
Example:
Switch(config)#router bgp 200
Switch(config-router)# bgp default local-preference 500
1.8.3.16 bgp deterministic-med
Command: bgp deterministic-med
no bgp deterministic-med
Function:
Use the best MED for the same prefix in the AS to compare with other AS. The “
no
bgp deterministic-med
” cancels this configuration.
Parameter:
None.
Default:
Not configured.
Command Mode:
BGP route mode.
Usage Guide:
Normally if same prefix routes from several paths, each path will be compared.
With this configuration, the system will only use the path with the smallest MED in the AS (when
other main attributes equal) to compare with other AS. After the best one is elected, select the
path among AS with no regard to MED value.
Example:
Switch(config-router)#bgp deterministic-med
1.8.3.17 bgp enforce-first-as
Command: bgp enforce-first-as
no bgp enforce-first-as
Function:
Enforces the first AS position of the route AS-PATH contain the neighbor AS number
or else disconnect this peer when the BGP is reviving the external routes. The “
no bgp
enforce-first-as
” command cancels this configuration.
Parameter:
None.
Default:
Not configured.
Command Mode:
BGP route mode.
Usage Guide:
This command is usually for avoiding unsafe or unauthenticated routes.
Example:
Switch(config-router)#bgp enforce-first-as