H3C S9500 Series Command Manual
H3C S9500 Series Command Manual

H3C S9500 Series Command Manual

Routing switch bgp
Hide thumbs Also See for S9500 Series:
Table of Contents

Advertisement

Command Manual - BGP
H3C S9500 Series Routing Switches
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.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

Table of Contents

i
Table of Contents

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the S9500 Series and is the answer not in the manual?

Questions and answers

Summary of Contents for H3C S9500 Series

  • Page 1: Table Of Contents

    Command Manual – BGP H3C S9500 Series Routing Switches Table of Contents 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) ........
  • Page 2 Command Manual – BGP H3C S9500 Series Routing Switches Table of Contents 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)..........
  • Page 3 Command Manual – BGP H3C S9500 Series Routing Switches Table of Contents 1.1.79 synchronization (BGP view) ................1-78 1.1.80 timer (BGP/BGP-VPN instance view) ..............1-78...
  • Page 4: Chapter 1 Bgp Configuration Commands

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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...
  • Page 5 Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Table 1-1 describes the functions of the above-mentioned keywords. Table 1-1 Functions of the keywords Keywords Function Used to create a summary route, whose AS path contains the AS path information of summarized routes.
  • Page 6: Balance (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands <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...
  • Page 7: Bestroute As-Path-Neglect (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 8: Bestroute Med-Confederation (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 9: Bgp

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 10: Compare-Different-As-Med (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 11: Confederation Id

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 12: Confederation Nonstandard

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 13: Confederation Peer-As

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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...
  • Page 14: Dampening (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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)
  • Page 15: Debugging Bgp

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 16 Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 17: Default Ipv4-Unicast

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands *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.
  • Page 18: Default Local-Preference (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 19: Default-Route Imported (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 20: Display Bgp Group

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 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.
  • Page 21 Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 1: Monitor level Parameters group-name: Peer group name. Description Use the display bgp group command to display the information of the peer group. Examples # Display the information of the peer group aaa.
  • Page 22: Display Bgp Network

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Field Description Peer Preferred Value Preferred value of the routes from the peer No routing policy is No routing policy is configured for the peer configured...
  • Page 23: Display Bgp Paths

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands BGP Local Router ID is 10.1.4.2. Local AS Number is 400. Network Mask Route-policy Short-cut 100.1.2.0 255.255.255.0 100.1.1.0 255.255.255.0 Short-cut Table 1-3 Description on the fields of the display bgp network command...
  • Page 24: Display Bgp Peer

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Table 1-4 Description on the fields of the display bgp paths command Field Description Address Route address in local database, in dotted hexadecimal notation Hash Hash index...
  • Page 25 Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Examples # Display the detailed information of the peer 10.110.25.20. <Sysname> display bgp peer 10.110.25.20 verbose Peer: 10.110.25.20 Local: 2.2.2.2 Type: EBGP link BGP version 4, remote router ID 1.1.1.1...
  • Page 26: Display Bgp Routing-Table

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Field Description BGP current event Current event of the peer BGP last state Last state of the peer Port Port number of local router and its peer...
  • Page 27 Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands mask: Network mask, in dotted decimal notation. mask-length: Mask length, in the range 0 to 32. longer-prefixes: Matches the longest prefix. Description Use the display bgp routing-table command to display specified BGP routing information in the BGP routing table.
  • Page 28: Display Bgp Routing-Table As-Path-Acl

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Field Description Next Hop Next hop IP address MULTI_EXIT_DISC attribute LocPrf Local preference value PrefVal Preferred value of the route AS_PATH attribute, recording the ASs the packet has passed to...
  • Page 29: Display Bgp Routing-Table Cidr

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands BGP Local router ID is 20.20.20.1 Status codes: * - valid, > - best, d - damped, h - history, i - internal, s - suppressed, S - Stale...
  • Page 30: Display Bgp Routing-Table Community

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.24 display bgp routing-table community Syntax display bgp routing-table community [ aa:nn&<1-13> ] [ no-advertise | no-export | no-export-subconfed ]* [ whole-match ] View Any view...
  • Page 31: Display Bgp Routing-Table Community-List

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.25 display bgp routing-table community-list Syntax display routing-table community-list basic-community-list-number [ whole-match ] | adv-community-list-number }&<1-16> View Any view Default Level 1: Monitor level Parameters basic-community-list-number: Basic community-list number.
  • Page 32: Display Bgp Routing-Table Dampening Parameter

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands View Any view Default Level 1: Monitor level Parameters None Description Use the display bgp routing-table dampened command to display dampened BGP routes. Examples # Display dampened BGP routes.
  • Page 33: Display Bgp Routing-Table Different-Origin-As

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 1: Monitor level Parameters None Description Use the display bgp routing-table dampening parameter command to display BGP route dampening parameters. Related commands: dampening. Examples # Display BGP route dampening parameters.
  • Page 34: Display Bgp Routing-Table Flap-Info

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Parameters None Description Use the display bgp routing-table different-origin-as command to display BGP routes originating from different autonomous systems. Examples # Display BGP routes originating from different ASs.
  • Page 35: Display Bgp Routing-Table Peer

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands longer-match: Matches the longest prefix. Description Use the display bgp routing-table flap-info command to display BGP route flap statistics. If no parameter is specified, this command displays all BGP route flap statistics.
  • Page 36: Display Bgp Routing-Table Regular-Expression

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Parameters ip-address: IP address of a peer. advertised-routes: Displays routing information advertised to the specified peer. received-routes: Displays routing information received from the specified peer. network-address: IP address of the destination network.
  • Page 37: Display Bgp Routing-Table Statistic

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 1: Monitor level Parameters as-regular-expression: AS regular expression. Description Use the display bgp routing-table regular-expression command to display BGP routing information matching the specified AS regular expression.
  • Page 38: Ebgp-Interface-Sensitive

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Examples # Display BGP routing statistics. <Sysname> display bgp routing-table statistic Total Number of Routes: 4 Table 1-10 Description on the fields of the display bgp routing-table statistic...
  • Page 39: Filter-Policy Export (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands # In BGP-VPN instance view, enable the clearing of EBGP session on any interface that becomes down (the VPN has been created). <Sysname> system-view [Sysname] bgp 100...
  • Page 40: Filter-Policy Import (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Examples # In BGP view, reference ACL 2000 to filter all outgoing redistributed routes. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] filter-policy 2000 export # In BGP-VPN instance view, reference ACL 2000 to filter all outgoing redistributed routes (the VPN has been created).
  • Page 41: Group (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands # In BGP-VPN instance view, reference ACL 2000 to filter incoming routing information (the VPN has been created). <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] filter-policy 2000 import 1.1.36 group (BGP/BGP-VPN instance view)
  • Page 42: Import-Route (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands # In BGP-VPN instance view, create an EBGP peer group test with AS number 200, and add EBGP peers 10.1.1.1 and 10.1.2.1 into the group (the VPN has been created).
  • Page 43: Log-Peer-Change

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Examples # In BGP view, redistribute routes from RIP. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] import-route rip # In BGP-VPN instance view, redistribute routes from RIP (the VPN has been created).
  • Page 44: Network (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.39 network (BGP/BGP-VPN instance view) Syntax network ip-address [ mask | mask-length ] [ short-cut | route-policy route-policy-name ] undo network ip-address [ mask | mask-length ] [ short-cut ]...
  • Page 45: Peer Advertise-Community (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands # In BGP-VPN instance view, advertise the network segment 10.0.0.0/16 (the VPN has been created). <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] network 10.0.0.0 255.255.0.0 1.1.40 peer advertise-community (BGP/BGP-VPN instance view)
  • Page 46: Peer Advertise-Ext-Community (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer test advertise-community 1.1.41 peer advertise-ext-community (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } advertise-ext-community undo peer { group-name | ip-address } advertise-ext-community...
  • Page 47: Peer Allow-As-Loop (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.42 peer allow-as-loop (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } allow-as-loop [ number ] undo peer { group-name | ip-address } allow-as-loop View...
  • Page 48: Peer As-Number (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.43 peer as-number (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } as-number as-number undo peer group-name as-number undo peer ip-address View BGP view, BGP-VPN instance view...
  • Page 49: Peer As-Path-Acl (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.44 peer as-path-acl (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } as-path-acl as-path-acl-number { export | import } undo peer { group-name | ip-address } as-path-acl as-path-acl-number { export |...
  • Page 50: Peer Capability-Advertise Conventional

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands [Sysname-bgp-vpn1] peer test as-path-acl 1 export 1.1.45 peer capability-advertise conventional Syntax peer { group-name | ip-address } capability-advertise conventional undo peer { group-name | ip-address } capability-advertise conventional...
  • Page 51: Peer Connect-Interface (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 2: System level Parameters group-name: Name of a peer group. ip-address: IP address of a peer. Description Use the peer capability-advertise route-refresh command to enable the BGP route refresh capability.
  • Page 52: Peer Default-Route-Advertise (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Parameters group-name: Name of a peer group. ip-address: IP address of a peer. interface-type interface-number: Specifies the type and number of the interface. Description Use the peer connect-interface command to specify the source interface for establishing TCP connections to a peer or peer group.
  • Page 53: Peer Description (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 2: System level Parameters group-name: Name of a peer group. ip-address: IP address of a peer. route-policy-name: Routing policy name. Description Use the peer default-route-advertise command to advertise a default route to a peer/peer group.
  • Page 54: Peer Ebgp-Max-Hop (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 2: System level Parameters group-name: Name of a peer group. ip-address: IP address of a peer. description-text: Description information for the peer/peer group. Description Use the peer description command to configure the description information for a peer/peer group.
  • Page 55: Peer Enable (Bgp View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 2: System level Parameters group-name: Name of a peer group. ip-address: IP address of a peer. hop-count: Maximum hop count. The default is 64.
  • Page 56: Peer Fake-As (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 2: System level Parameters ip-address: IP address of a peer. Description Use the peer enable command to enable the specified peer. Use the undo peer enable command to disable the specified peer.
  • Page 57: Peer Filter-Policy (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands By default, no fake local AS number is configured for a peer or peer group. Note: The peer fake-as command is only applicable to an EBGP peer or peer group.
  • Page 58: Peer Group (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Description Use the peer filter-policy command to configure an ACL-based filter policy for a peer or peer group. Use the undo peer filter-policy command to remove the configuration.
  • Page 59: Peer Ignore (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands By default, no peer is added into a peer group. Examples # In BGP view, add the peer 10.1.1.1 to the EBGP peer group test. <Sysname> system-view...
  • Page 60: Peer Ip-Prefix

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands specified peer or peer group and clears all the related routing information. For a peer group, this means all sessions with the peer group will be tore down.
  • Page 61: Peer Keep-All-Routes (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Examples # In BGP view, use the IP prefix list list 1 to filter routes advertised to the peer group test. <Sysname> system-view [Sysname] bgp 100...
  • Page 62: Peer Log-Change (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands [Sysname-bgp] peer 131.100.1.1 keep-all-routes # In BGP-VPN instance view, save routing information from peer 131.100.1.1(the VPN has been created). <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer 131.100.1.1 as-number 200...
  • Page 63: Peer Next-Hop-Local (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer test log-change 1.1.59 peer next-hop-local (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } next-hop-local undo peer { group-name | ip-address } next-hop-local...
  • Page 64: Peer Password

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.60 peer password Syntax peer { group-name | ip-address } password { cipher | simple } password undo peer { group-name | ip-address } password View...
  • Page 65: Peer Preferred-Value (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands # In BGP-VPN instance view, perform MD5 authentication on the TCP connection between the local device 10.1.100.1 and the peer device 10.1.100.2 (the VPN has been created).
  • Page 66: Peer Public-As-Only (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Note the following: If you both reference a routing policy and use the peer { group-name | ip-address } preferred-value value command to set a preferred value for routes from a peer, the routing policy sets a non-zero preferred value for routes matching it.
  • Page 67: Peer Reflect-Client (Bgp View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Use the undo peer public-as-only command to keep private AS numbers in BGP updates sent to a peer/peer group. By default, BGP updates carry private AS numbers.
  • Page 68: Peer Route-Limit (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Examples # In BGP view, configure the local device as a route reflector and specify the peer group test as a client. <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] peer test reflect-client 1.1.64 peer route-limit (BGP/BGP-VPN instance view)
  • Page 69: Peer Route-Policy (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands # In BGP-VPN instance view, set the maximum number of routes that can be received from peer 129.140.6.6 to 10000 (the VPN has been created). <Sysname> system-view...
  • Page 70: Peer Route-Update-Interval (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands [Sysname-bgp] peer test route-policy test-policy export # In BGP-VPN instance view, apply routing policy test-policy to routes outgoing to the peer group test (the VPN has been created).
  • Page 71: Peer Substitute-As (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands <Sysname> system-view [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer test as-number 100 [Sysname-bgp-vpn1] peer test route-update-interval 10 1.1.67 peer substitute-as (BGP/BGP-VPN instance view) Syntax...
  • Page 72: Peer Timer (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.68 peer timer (BGP/BGP-VPN instance view) Syntax peer { group-name | ip-address } timer keepalive keepalive hold holdtime undo peer { group-name | ip-address } timer...
  • Page 73: Preference (Bgp/Bgp-Vpn Instance View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] peer test timer keepalive 60 hold 180 1.1.69 preference (BGP/BGP-VPN instance view) Syntax preference { external-preference internal-preference local-preference | route-policy route-policy-name }...
  • Page 74: Reflect Between-Clients (Bgp View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands [Sysname] bgp 100 [Sysname-bgp] ipv4-family vpn-instance vpn1 [Sysname-bgp-vpn1] preference 20 20 200 1.1.70 reflect between-clients (BGP view) Syntax reflect between-clients undo reflect between-clients View BGP view...
  • Page 75: Refresh Bgp

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands View BGP view Default Level 2: System level Parameters cluster-id: Cluster ID of the route reflector, a decimal integer or an IP address. Description Use the reflector cluster-id command to configure the cluster ID of the route reflector.
  • Page 76: Reset Bgp

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands group-name: Soft-resets connections to a peer group. external: EBGP connection. internal: IBGP connection. export: Outbound soft reset. import: Inbound soft reset. Description Use the refresh bgp command to perform soft reset on specified BGP connections.
  • Page 77: Reset Bgp Dampening

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Description Use the reset bgp command to reset specified BGP connections. Examples # Reset all the BGP connections. <Sysname> reset bgp all 1.1.74 reset bgp dampening...
  • Page 78: Reset Bgp Ipv4 All

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Default Level 1: Monitor level Parameters as-path-regexp: Clears the flap statistics of routes matching the AS path regular expression. as-path-acl-number: Clears the flap statistics of routes matching an AS path ACL, number of which is in the range 1 to 256.
  • Page 79: Router-Id

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands Examples # Reset all the BGP connections of IPv4 unicast address family. <Sysname> reset bgp ipv4 all 1.1.77 router-id Syntax router-id router-id undo router-id View BGP view...
  • Page 80: Summary Automatic

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.78 summary automatic Syntax summary automatic undo summary automatic View BGP view, BGP-VPN instance view Default Level 2: System level Parameters None Description Use the summary automatic command to enable automatic summarization for redistributed subnets.
  • Page 81: Synchronization (Bgp View)

    Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands 1.1.79 synchronization (BGP view) Syntax synchronization undo synchronization View BGP view Default Level 2: System level Parameters None Description Use the synchronization command to enable the synchronization between BGP and IGP.
  • Page 82 Command Manual – BGP H3C S9500 Series Routing Switches Chapter 1 BGP Configuration Commands View BGP view, BGP-VPN instance view Default Level 2: System level Parameters keepalive: Keepalive interval in seconds, ranging from 1 to 21845. holdtime: Holdtime interval in seconds, ranging from 3 to 65535.

Table of Contents