H3C S9500 Series Command Manual

Type
Command Manual
Command Manual – BGP
H3C S9500 Series Routing Switches Table of Contents
i
Table of Contents
Chapter 1 BGP Configuration Commands..................................................................................1-1
1.1 BGP Configuration Commands .........................................................................................1-1
1.1.1 aggregate................................................................................................................1-1
1.1.2 balance (BGP/BGP-VPN instance view).................................................................1-3
1.1.3 bestroute as-path-neglect (BGP/BGP-VPN instance view)....................................1-4
1.1.4 bestroute compare-med (BGP/BGP-VPN instance view).......................................1-4
1.1.5 bestroute med-confederation (BGP/BGP-VPN instance view)...............................1-5
1.1.6 bgp ..........................................................................................................................1-6
1.1.7 compare-different-as-med (BGP/BGP-VPN instance view)....................................1-7
1.1.8 confederation id.......................................................................................................1-8
1.1.9 confederation nonstandard .....................................................................................1-9
1.1.10 confederation peer-as.........................................................................................1-10
1.1.11 dampening (BGP/BGP-VPN instance view) .......................................................1-11
1.1.12 debugging bgp.....................................................................................................1-12
1.1.13 default ipv4-unicast.............................................................................................1-14
1.1.14 default local-preference (BGP/BGP-VPN instance view) ...................................1-15
1.1.15 default med (BGP/BGP-VPN instance view) ......................................................1-15
1.1.16 default-route imported (BGP/BGP-VPN instance view)......................................1-16
1.1.17 display bgp group................................................................................................1-17
1.1.18 display bgp network ............................................................................................1-19
1.1.19 display bgp paths................................................................................................1-20
1.1.20 display bgp peer..................................................................................................1-21
1.1.21 display bgp routing-table.....................................................................................1-23
1.1.22 display bgp routing-table as-path-acl..................................................................1-25
1.1.23 display bgp routing-table cidr..............................................................................1-26
1.1.24 display bgp routing-table community ..................................................................1-27
1.1.25 display bgp routing-table community-list.............................................................1-28
1.1.26 display bgp routing-table dampened...................................................................1-28
1.1.27 display bgp routing-table dampening parameter.................................................1-29
1.1.28 display bgp routing-table different-origin-as........................................................1-30
1.1.29 display bgp routing-table flap-info.......................................................................1-31
1.1.30 display bgp routing-table peer.............................................................................1-32
1.1.31 display bgp routing-table regular-expression......................................................1-33
1.1.32 display bgp routing-table statistic........................................................................ 1-34
1.1.33 ebgp-interface-sensitive......................................................................................1-35
1.1.34 filter-policy export (BGP/BGP-VPN instance view)............................................. 1-36
1.1.35 filter-policy import (BGP/BGP-VPN instance view).............................................1-37
1.1.36 group (BGP/BGP-VPN instance view)................................................................1-38
Command Manual – BGP
H3C S9500 Series Routing Switches Table of Contents
ii
1.1.37 import-route (BGP/BGP-VPN instance view)......................................................1-39
1.1.38 log-peer-change..................................................................................................1-40
1.1.39 network (BGP/BGP-VPN instance view).............................................................1-41
1.1.40 peer advertise-community (BGP/BGP-VPN instance view)................................1-42
1.1.41 peer advertise-ext-community (BGP/BGP-VPN instance view)..........................1-43
1.1.42 peer allow-as-loop (BGP/BGP-VPN instance view)............................................ 1-44
1.1.43 peer as-number (BGP/BGP-VPN instance view)................................................1-45
1.1.44 peer as-path-acl (BGP/BGP-VPN instance view)...............................................1-46
1.1.45 peer capability-advertise conventional................................................................1-47
1.1.46 peer capability-advertise route-refresh ...............................................................1-47
1.1.47 peer connect-interface (BGP/BGP-VPN instance view).....................................1-48
1.1.48 peer default-route-advertise (BGP/BGP-VPN instance view)............................. 1-49
1.1.49 peer description (BGP/BGP-VPN instance view)................................................1-50
1.1.50 peer ebgp-max-hop (BGP/BGP-VPN instance view)..........................................1-51
1.1.51 peer enable (BGP view)......................................................................................1-52
1.1.52 peer fake-as (BGP/BGP-VPN instance view).....................................................1-53
1.1.53 peer filter-policy (BGP/BGP-VPN instance view)................................................1-54
1.1.54 peer group (BGP/BGP-VPN instance view)........................................................1-55
1.1.55 peer ignore (BGP/BGP-VPN instance view).......................................................1-56
1.1.56 peer ip-prefix .......................................................................................................1-57
1.1.57 peer keep-all-routes (BGP/BGP-VPN instance view).........................................1-58
1.1.58 peer log-change (BGP/BGP-VPN instance view)...............................................1-59
1.1.59 peer next-hop-local (BGP/BGP-VPN instance view) ..........................................1-60
1.1.60 peer password.....................................................................................................1-61
1.1.61 peer preferred-value (BGP/BGP-VPN instance view).........................................1-62
1.1.62 peer public-as-only (BGP/BGP-VPN instance view)...........................................1-63
1.1.63 peer reflect-client (BGP view) .............................................................................1-64
1.1.64 peer route-limit (BGP/BGP-VPN instance view).................................................1-65
1.1.65 peer route-policy (BGP/BGP-VPN instance view) ..............................................1-66
1.1.66 peer route-update-interval (BGP/BGP-VPN instance view)................................1-67
1.1.67 peer substitute-as (BGP/BGP-VPN instance view).............................................1-68
1.1.68 peer timer (BGP/BGP-VPN instance view).........................................................1-69
1.1.69 preference (BGP/BGP-VPN instance view)........................................................1-70
1.1.70 reflect between-clients (BGP view).....................................................................1-71
1.1.71 reflector cluster-id (BGP view) ............................................................................1-71
1.1.72 refresh bgp..........................................................................................................1-72
1.1.73 reset bgp .............................................................................................................1-73
1.1.74 reset bgp dampening ..........................................................................................1-74
1.1.75 reset bgp flap-info ...............................................................................................1-74
1.1.76 reset bgp ipv4 all.................................................................................................1-75
1.1.77 router-id...............................................................................................................1-76
1.1.78 summary automatic.............................................................................................1-77
Command Manual – BGP
H3C S9500 Series Routing Switches Table of Contents
iii
1.1.79 synchronization (BGP view)................................................................................1-78
1.1.80 timer (BGP/BGP-VPN instance view).................................................................1-78
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-1
Chapter 1 BGP Configuration Commands
1.1 BGP Configuration Commands
Note:
For routing policy configuration commands, refer to Routing Policy Commands.
1.1.1 aggregate
Syntax
aggregate ip-address { mask | mask-length } [ as-set | attribute-policy
route-policy-name | detail-suppressed | origin-policy route-policy-name |
suppress-policy route-policy-name ] *
undo aggregate ip-address { mask | mask-length }
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
ip-address: Summary address.
mask: Summary address mask, in dotted decimal notation.
mask-length: Summary address mask length.
as-set: Creates a summary with AS set.
attribute-policy route-policy-name: References a routing policy to set the attributes of
the summary route. Note that, when the routing policy is used, the apply as-path
clause of the routing policy cannot set the AS_PATH attribute of the summary route.
detail-suppressed: Only advertises the summary route.
suppress-policy route-policy-name: Suppresses specific routes defined in the routing
policy.
origin-policy route-policy-name: References the routing policy to specify routes for
summarization.
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-2
Table 1-1 describes the functions of the above-mentioned keywords.
Table 1-1 Functions of the keywords
Keywords Function
as-set
Used to create a summary route, whose AS path contains
the AS path information of summarized routes. Use this
keyword carefully when many AS paths need to be
summarized, because the frequent changes of routes may
lead to route oscillation.
detail-suppressed
This keyword does not suppress the summary route, but it
suppresses the advertisement of all the more specific routes.
To summarize only some specific routes, use the peer
filter-policy command.
suppress-policy
Used to create a summary route and suppress the
advertisement of some summarized routes. If you want to
suppress some routes selectively and leave other routes still
advertised, use the if-match clause of the route-policy
command.
origin-policy
Selects only routes satisfying the routing policy for route
summarization
attribute-policy
Sets attributes except the AS-PATH attribute for the
summary route. The same work can be done by using the
peer route-policy command.
Description
Use the aggregate command to create a summary route in the BGP routing table.
Use the undo aggregate command to remove a summary route.
By default, no summary route is configured.
Note:
The suppress-policy keyword takes priority over the keyword detail-suppressed.
Examples
# In BGP view, create a summary of 192.213.0.0/16 in the BGP routing table.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] aggregate 192.213.0.0 255.255.0.0
# In BGP-VPN instance view, create a summary of 192.213.0.0/16 in BGP routing table
(the VPN has been created).
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-3
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] aggregate 192.213.0.0 255.255.0.0
1.1.2 balance (BGP/BGP-VPN instance view)
Syntax
balance number
undo balance
View
BGP view, VPN instance view
Default Level
2: System level
Parameters
number: Number of BGP routes for load balancing. When it is set to 1, load balancing is
disabled.
Description
Use the balance command to configure the number of BGP routes for load balancing.
Use the undo balance command to disable load balancing.
By default, no load balancing is configured.
Unlike IGP, BGP has no explicit metric for making load balancing decision. Instead, it
implements load balancing using route selection rules.
Related commands: display bgp routing-table.
Examples
# In BGP view, set the number of routes participating in BGP load balancing to 2.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] balance 2
# In BGP-VPN instance view, set the number of routes participating in BGP load
balancing to 2 (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] balance 2
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-4
1.1.3 bestroute as-path-neglect (BGP/BGP-VPN instance view)
Syntax
bestroute as-path-neglect
undo bestroute as-path-neglect
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the bestroute as-path-neglect command to ignore the AS_PATH attribute during
best route selection.
Use the undo bestroute as-path-neglect command to take the AS_PATH as a factor
during best route selection.
By default, the device takes AS_PATH as a factor when selecting the best route.
Examples
# In BGP view, ignore AS_PATH in route selection.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] bestroute as-path-neglect
# In BGP-VPN instance view, ignore AS_PATH in route selection (the VPN has been
created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] bestroute as-path-neglect
1.1.4 bestroute compare-med (BGP/BGP-VPN instance view)
Syntax
bestroute compare-med
undo bestroute compare-med
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-5
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the bestroute compare-med command to enable the comparison of the MED for
paths from each AS.
Use the undo bestroute compare-med command to disable this comparison.
This comparison is not enabled by default.
Caution:
After the bestroute compare-med command is executed, the balance command does
not take effect.
Examples
# In BGP view, enable the comparison of MEDs for paths from each AS when selecting
the best route.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] bestroute compare-med
# In BGP-VPN instance view, enable the comparison of MED for paths from each AS
when selecting the best route. (The VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] bestroute compare-med
1.1.5 bestroute med-confederation (BGP/BGP-VPN instance view)
Syntax
bestroute med-confederation
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-6
undo bestroute med-confederation
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the bestroute med-confederation command to enable the comparison of the
MED for paths from confederation peers to select the optimal route.
Use the undo bestroute med-confederation command to disable the comparison.
The comparison is not enabled by default.
The system only compares MED values for paths from peers within the confederation.
Paths from external ASs are advertised throughout the confederation without MED
comparison.
Examples
# In BGP view, enable the comparison of the MED for paths from peers within the
confederation.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] bestroute med-confederation
# In BGP-VPN instance view, enable the comparison of the MED for paths from peers
within the confederation. (The VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] bestroute med-confederation
1.1.6 bgp
Syntax
bgp as-number
undo bgp [ as-number ]
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-7
View
System view
Default Level
2: System level
Parameters
as-number: Local AS number.
Description
Use the bgp command to enable BGP and enter the BGP view.
Use the undo bgp command to disable BGP.
By default, BGP is not enabled.
Examples
# Enable BGP and set local AS number to 100.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp]
1.1.7 compare-different-as-med (BGP/BGP-VPN instance view)
Syntax
compare-different-as-med
undo compare-different-as-med
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the compare-different-as-med command to enable the comparison of the MED
for paths from peers in different ASs.
Use the undo compare-different-as-med command to disable the comparison.
The comparison is disabled by default.
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-8
If there are several paths for one destination available, the path with the smallest MED
is selected.
Do not use this command unless associated ASs adopt the same IGP protocol and
routing selection method.
Examples
# In BGP view, enable to compare the MED for paths from peers in different ASs.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] compare-different-as-med
# In BGP-VPN instance view, enable to compare the MED for paths from peers in
different ASs (The VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] compare-different-as-med
1.1.8 confederation id
Syntax
confederation id as-number
undo confederation id
View
BGP view
Default Level
2: System level
Parameters
as-number: Number of the AS that contains multiple sub-ASs.
Description
Use the confederation id command to configure a confederation ID.
Use the undo confederation id command to remove a specified confederation.
By default, no confederation ID is configured.
Configuring a confederation can reduce IBGP connections in a large AS. You can split
the AS into several sub-ASs, and each sub-AS remains fully meshed. These sub-ASs
form a confederation. Key IGP attributes of a route, such as the next hop, MED, local
preference, are not discarded when crossing each sub-AS. The sub-ASs still look like a
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-9
whole from the perspective of other ASs. This can ensure the integrity of the former AS,
and solve the problem of too many IBGP connections in the AS.
Related commands: confederation nonstandard, confederation peer-as.
Examples
# Confederation 9 consists of four sub-ASs, namely, 38, 39, 40 and 41. The peer
10.1.1.1 is a member of the confederation while the peer 200.1.1.1 is outside of the
confederation. Take sub AS 41 as an example.
<Sysname> system-view
[Sysname] bgp 41
[Sysname-bgp] confederation id 9
[Sysname-bgp] confederation peer-as 38 39 40
[Sysname-bgp] group Confed38 external
[Sysname-bgp] peer Confed38 as-number 38
[Sysname-bgp] peer 10.1.1.1 group Confed38
[Sysname-bgp] group Remote98 external
[Sysname-bgp] peer Remote98 as-number 98
[Sysname-bgp] peer 200.1.1.1 group Remote98
1.1.9 confederation nonstandard
Syntax
confederation nonstandard
undo confederation nonstandard
View
BGP view
Default Level
2: System level
Parameters
None
Description
Use the confederation nonstandard command to make the device compatible with
devices not compliant with RFC3065 in the confederation.
Use the undo confederation nonstandard command to restore the default.
By default, all devices in the confederation comply with RFC3065.
All devices should be configured with this command to interact with those nonstandard
devices in the confederation.
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-10
Related commands: confederation id, confederation peer-as.
Examples
# AS100 contains devices not compliant with RFC3065 and comprises two sub-ASs,
64000 and 65000.
<Sysname> system-view
[Sysname] bgp 64000
[Sysname-bgp] confederation id 100
[Sysname-bgp] confederation peer-as 65000
[Sysname-bgp] confederation nonstandard
1.1.10 confederation peer-as
Syntax
confederation peer-as as-number-list
undo confederation peer-as [ as-number-list ]
View
BGP view
Default Level
2: System level
Parameters
as-number-list: Sub-AS number list. Up to 32 sub-ASs can be configured in one
command line. The expression is as-number-list = as-number &<1-32>, in which
as-number specifies a sub-AS number, and &<1-32> indicates up to 32 numbers can
be specified.
Description
Use the confederation peer-as command to specify confederation peer sub-ASs.
Use the undo confederation peer-as command to remove specified confederation
peer sub-ASs.
By default, no confederation peer sub-ASs are configured.
Before this configuration, the confederation id command must be used to specify the
confederation for the sub-ASs.
If the undo confederation peer-as command without the as-number-list argument is
used, all confederation peer sub-ASs are removed.
Related commands: confederation nonstandard, confederation id.
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-11
Examples
# Specify confederation peer sub ASs 2000 and 2001.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] confederation id 10
[Sysname-bgp] confederation peer-as 2000 2001
1.1.11 dampening (BGP/BGP-VPN instance view)
Syntax
dampening [ half-life-reachable half-life-unreachable reuse suppress ceiling |
route-policy route-policy-name ] *
undo dampening
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
half-life-reachable: Half-life for reachable routes in minutes. By default, the value is 15
minutes.
half-life-unreachable: Half-life for unreachable routes in minutes. By default, the value
is 15 minutes.
reuse: Reuse threshold value for suppressed routes. A suppressed route whose
penalty value decreases under the value is reused. By default, the reuse value is 750.
suppress: Suppression threshold. The route with a penalty value higher than the
threshold is suppressed. The default value is 2000.
ceiling: Ceiling penalty value, which must be bigger than the suppress value. By default,
the value is 16000.
route-policy-name: Routing policy name.
half-life-reachable, half-life-unreachable, reuse, suppress and ceiling are mutually
dependent. Once any one is configured, all the others should also be specified
accordingly.
Description
Use the dampening command to enable BGP route dampening and/or configure
dampening parameters.
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-12
Use the undo dampening command to disable route dampening.
By default, no route dampening is configured.
The command dampens only EBGP routes rather than IBGP routes.
Related commands: reset bgp dampening, reset bgp flap-info, display bgp
routing-table dampened, display bgp routing-table dampening parameter,
display bgp routing-table flap-info.
Examples
# In BGP view, enable BGP route dampening and configure dampening parameters.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] dampening 15 15 1000 2000 10000
# In BGP-VPN instance view, enable BGP route dampening and configure dampening
parameters. (the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] dampening 15 15 1000 2000 10000
1.1.12 debugging bgp
Syntax
debugging bgp [ ip-address ] { all | detail | event | graceful-restart | timer |
{ keepalive | open | packet | raw-packet | route-refresh } [ receive | send ]
[ verbose ] }
debugging bgp update [ acl acl-number | ip-prefix ip-prefix-name | ipv4 | l2vpn |
label-route | vpn-instance vpn-instance-name | vpnv4 ] [ peer { ip-address |
group-name } ] [ receive | send ] [ verbose ]
undo debugging bgp [ ip-address ] { all | detail | event | graceful-restart | timer |
{ keepalive | open | packet | raw-packet | route-refresh } [ receive | send ]
[ verbose
] }
undo debugging bgp update [ acl acl-number | ip-prefix ip-prefix-name | ipv4 | l2vpn
| label-route | vpn-instance vpn-instance-name | vpnv4 ] [ peer { ip-address |
group-name } ] [ receive | send ] [ verbose ]
View
User view
Default Level
1: Monitor level
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-13
Parameters
ip-address: IP address of a peer.
all: Enables all BGP debugging.
detail: Enables BGP detailed information debugging.
event: Enables BGP event debugging.
graceful-restart: Enables BGP GR debugging.
timer: Enables BGP timer debugging.
keepalive: Enables BGP keepalive packets debugging.
open: Enables BGP open packets debugging.
packet: Enables BGP packets debugging.
raw-packet: Enables BGP raw packets debugging.
route-refresh: Enables BGP route-refresh packets debugging.
receive: Received BGP packets.
send: Sent BGP packets.
Verbose: Displays detailed debugging information.
update: Enables BGP update packets debugging.
acl acl-number: Uses an ACL to filter output packet debugging information.
ip-prefix ip-prefix-name: Uses an IP prefix list to filter output packet debugging
information.
ipv4: Enables IPv4 packet debugging.
l2vpn: Enables L2VPN packet debugging.
label-route: Enables labeled BGP route debugging.
vpnv4: Enables VPNv4 packet debugging.
vpn-instance vpn-instance-name: Enables packet debugging for the VPN instance.
peer ip-address/group-name: Enables BGP packet debugging with the BGP peer or
peer group.
Description
Use the debugging bgp command to enable specified BGP debugging.
Use the undo debugging bgp command to disable specified BGP debugging.
Enabling any debugging will decrease system performance; therefore, disable the
debugging timely after debugging.
Examples
# Enable BGP detailed debugging when a BGP peer relationship is being established.
<Sysname> debugging bgp detail
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-14
*Aug 24 14:12:13:674 2006 Sysname RM/6/RMDEBUG:
BGP_L3VPN: Recv UPDATE with following RD 100:1 destination 11.1.1.1 - Received
New VPNv4 Route with Ext-Community NULL..Ignoring Route
// BGP received an UPDATE message with RD 100:1, destination address 11.1.1.1.
The Ext-Community of the new VPNv4 route is NULL and therefore the route was
ignored.
DeLocRemCross: Deleting route From Target Instance.
// The route was deleted from the instance.
1.1.13 default ipv4-unicast
Syntax
default ipv4-unicast
undo default ipv4-unicast
View
BGP view
Default Level
2: System level
Parameters
None
Description
Use the default ipv4-unicast command to enable the use of IPv4 unicast address
family for all peers.
Use the undo default ipv4-unicast command to disable the use of IPv4 unicast
address family for all peers.
The use of IPv4 unicast address family is enabled by default.
Examples
# Enable IPv4 unicast address family for all neighbors.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] default ipv4-unicast
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-15
1.1.14 default local-preference (BGP/BGP-VPN instance view)
Syntax
default local-preference value
undo default local-preference
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
value: Default local preference. The larger the value, the higher the preference.
Description
Use the default local-preference command to configure the default local preference.
Use the undo default local-preference command to restore the default value.
The default local preference is 100.
Using this command can affect BGP route selection.
Examples
# In BGP view, set the default local preference to 180.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] default local-preference 180
# In BGP-VPN instance view, set the default local preference to 180 (the VPN has been
created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] default local-preference 180
1.1.15 default med (BGP/BGP-VPN instance view)
Syntax
default med med-value
undo default med
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-16
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
med-value: Default MED value.
Description
Use the default med command to specify a default MED value.
Use the undo default med command to restore the default.
By default, the default med-value is 0.
Multi-exit discriminator (MED) is an external metric for routes. Different from local
preference, MED is exchanged between ASs and will stay in the AS once it enters the
AS. The route with a lower MED is preferred. When a device running BGP obtains
several routes with an identical destination but different next-hops from various external
peers, it will select the best route depending on the MED value. In the case that all other
conditions are the same, the system first selects the route with the smallest MED as the
best external route.
Examples
# In BGP view, configure the default MED as 25.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] default med 25
# In BGP-VPN instance view, configure the default MED as 25 (the VPN has been
created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] default med 25
1.1.16 default-route imported (BGP/BGP-VPN instance view)
Syntax
default-route imported
undo default-route imported
Command Manual – BGP
H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands
1-17
View
BGP view, BGP-VPN instance view
Default Level
2: System level
Parameters
None
Description
Use the default-route imported command to allow default route redistribution into the
BGP routing table.
Use the undo default-route imported command to disallow the redistribution.
By default, default route redistribution is not allowed.
Using the default-route imported command cannot redistribute default routes. To do
so, use the import-route command.
Related commands: import-route.
Examples
# In BGP view, allow default route redistribution from OSPF into BGP.
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] default-route imported
[Sysname-bgp] import-route ospf 1
# In BGP-VPN instance view, enable redistributing default route from OSPF into BGP
(the VPN has been created).
<Sysname> system-view
[Sysname] bgp 100
[Sysname-bgp] ipv4-family vpn-instance vpn1
[Sysname-bgp-vpn1] default-route imported
[Sysname-bgp-vpn1] import-route ospf 1
1.1.17 display bgp group
Syntax
display bgp group [ group-name ]
View
Any view
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18
  • Page 19 19
  • Page 20 20
  • Page 21 21
  • Page 22 22
  • Page 23 23
  • Page 24 24
  • Page 25 25
  • Page 26 26
  • Page 27 27
  • Page 28 28
  • Page 29 29
  • Page 30 30
  • Page 31 31
  • Page 32 32
  • Page 33 33
  • Page 34 34
  • Page 35 35
  • Page 36 36
  • Page 37 37
  • Page 38 38
  • Page 39 39
  • Page 40 40
  • Page 41 41
  • Page 42 42
  • Page 43 43
  • Page 44 44
  • Page 45 45
  • Page 46 46
  • Page 47 47
  • Page 48 48
  • Page 49 49
  • Page 50 50
  • Page 51 51
  • Page 52 52
  • Page 53 53
  • Page 54 54
  • Page 55 55
  • Page 56 56
  • Page 57 57
  • Page 58 58
  • Page 59 59
  • Page 60 60
  • Page 61 61
  • Page 62 62
  • Page 63 63
  • Page 64 64
  • Page 65 65
  • Page 66 66
  • Page 67 67
  • Page 68 68
  • Page 69 69
  • Page 70 70
  • Page 71 71
  • Page 72 72
  • Page 73 73
  • Page 74 74
  • Page 75 75
  • Page 76 76
  • Page 77 77
  • Page 78 78
  • Page 79 79
  • Page 80 80
  • Page 81 81
  • Page 82 82

H3C S9500 Series Command Manual

Type
Command Manual

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI