MBGP Commands

download MBGP Commands

of 33

Transcript of MBGP Commands

  • 8/12/2019 MBGP Commands

    1/33

  • 8/12/2019 MBGP Commands

    2/33

    Table of ContentsCommand Manual MBGP

    Quidway S8500 Series Routing Switches

    ii Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1.1.37 peer route-policy import ........................................................................................ 1-8

    1.1.38 preference ............................................................................................................. 1-8

    1.1.39 reflect between-clients .......................................................................................... 1-8

    1.1.40 reflector cluster-id.................................................................................................. 1-8

    1.1.41 refresh bgp multicast............................................................................................. 1-8

    1.1.42 summary................................................................................................................ 1-8

  • 8/12/2019 MBGP Commands

    3/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-1

    Chapter 1 MBGP Multicast Extension

    Configuration Commands

    1.1 MBGP Multicast Extension Configuration Commands

    1.1.1 aggregate

    Syntax

    aggregate address mask [ as-set | attribute-policy route-policy-name |

    detail-suppressed | origin-policy route-policy-name | suppress-policy route-policy-name ] *

    undo aggregate address mask [ as-set | attribute-policy route-policy-name |detail-suppressed | origin-policy route-policy-name | suppress-policy route-policy-name ] *

    View

    IPv4 multicast sub-address family view

    Parameters

    address : Address of the aggregated route.

    mask : Network mask of the aggregated route.

    as-set : Generates a route with AS_SET segment. This parameter is not recommendedwhen aggregating many AS paths.

    attribute-policy route-policy-name : Sets aggregate attribute.

    detail-suppressed : Advertises the aggregated routes rather than the specific routes.

    origin-policy route-policy-name : Filters the originate routes of the aggregate.

    suppress-policy route-policy-name : Does not advertise the specific routes selected.

    Description

    Use the aggregate command to create a multicast aggregated record in the BGProuting table.

    Use the undo aggregate command to disable this function.

    By default, no route is aggregated.

    Use the aggregate command without parameters to create one local aggregated routeand set atomic aggregation attributes.

  • 8/12/2019 MBGP Commands

    4/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-2 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    Examples

    # Create an aggregation entry in the MBGP routing table, with aggregated routeaddress as 192.213.0.0.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] aggregate 192.213.0.0 255.255.0.0

    1.1.2 compare-different-as-med

    Syntax

    compare-different-as-medundo compare-different-as-med

    View

    IPv4 multicast sub-address family view

    Parameters

    None

    Description

    Use the compare-different-as-med command to enable to compare the route MEDvalues of neighbors from different ASs.

    Use the undo compare-different-as-med command to disable this function.

    By default, the comparison function is disabled.

    If there are multiple routes available to the same destination address, you can selectthe route with the smallest MED value.

    This command is not recommended unless you make sure that different ASs use thesame IGP and route selection modes.

    Examples

    # Enable to compare the route MED values of neighbors from different ASs.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] compare-different-as-med

  • 8/12/2019 MBGP Commands

    5/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-3

    1.1.3 debugging bgp mp-update

    Syntax

    debugging bgp mp-update [ receive | send ] [ verbose ]undo debugging bgp mp-update

    View

    User view

    Parameters

    receive : Debugs the MBGP Update messages received.

    send : Debugs the MBGP Update messages sent.

    verbose : Debugs detailed information.

    Description

    Use the debugging bgp mp-update command to enable to debug MBGP Updatemessages.

    Use the undo debugging bgp mp-update command to disable the debugging.

    By default, the debugging function is disabled.

    Examples

    # Enable MBGP Update message debugging.

    debugging bgp mp-update

    1.1.4 default local-preference

    Syntax

    default local-preference value

    undo default local-preference

    View

    IPv4 multicast sub-address family view

    Parameters

    value : Default local precedence you configured, in the range of 0 to 4294967295. Bydefault, it is 100. The greatest value corresponds to the highest precedence level.

    Description

    Use the default local-preference command to configure the default local precedence.

    Use the undo default local-preference command to restore the default value.

  • 8/12/2019 MBGP Commands

    6/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-4 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    You can affect BGP route selection by configuring different local precedence values.

    Examples

    # Configure the default local precedence value as 180. system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] default local-preference 180

    1.1.5 default med

    Syntax

    default med med-value

    undo default med

    View

    IPv4 multicast sub-address family view

    Parameters

    med-value : MED value, in the range of 0 to 4294967295. By default, it is 0.

    DescriptionUse the default med command to configure system MED value.

    Use the display bgp multicast group command to restore the default value.

    Multi-exit discriminator (MED) attribute is the external metric for a route. Unlike localprecedence attribute, MED is exchanged, between ASs, and one it enters an AS, itdoes not leave the AS. MED attribute is used in best route selection. When a devicerunning BGP travels through different external peers and get the routes with identicaldestination, but different next-hop addresses, it selects these routes according to theirMED values. The route with smaller MED value will be selected as the external AS

    route if other attributes are the same.

    Examples

    # Configure system MED value as 25.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] default med 25

  • 8/12/2019 MBGP Commands

    7/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-5

    1.1.6 display bgp multicast group

    Syntax

    display bgp multicast group [ group-name ]

    View

    Any view

    Parameters

    group-name : Peer group. If no peer group is specified, the information about all peergroups will be displayed.

    Description

    Use the display bgp multicast group command to view the information about peergroups.

    Examples

    # View the information about the peer group named my_peer.

    display bgp multicast group my_peer

    1.1.7 display bgp multicast network

    Syntax

    display bgp multicast network

    View

    Any view

    Parameters

    None

    Description

    Use the display bgp multicast network command to view the routing information thatMBGP advertises.

    Examples

    # View the network segment routing information MBGP advertises.

    display bgp multicast network

  • 8/12/2019 MBGP Commands

    8/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-6 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1.1.8 display bgp multicast peer

    Syntax

    display bgp multicast peer [ peer-address ] [ verbose ]

    View

    Any view

    Parameters

    peer-address : Peer address, in dotted decimal format.

    verbose : Displays detailed information.

    Description

    Use the display bgp multicast peer command to view the MBGP peer information.

    Examples

    # View the MBGP peer detailed information.

    display bgp multicast peer verbose

    1.1.9 display bgp multicast routing-table

    Syntax

    display bgp multicast routing-table [ ip-address [ mask ] ]

    View

    Any view

    Parameters

    ip-address : IP address of the network segment whose MBGP routing information withspecified IP address.

    Description

    Use the display bgp multicast routing-table command to view MBGP routinginformation.

    Examples

    # Display MBGP routing information of network segment 14.1.0.0.

    display bgp multicast routing-table 14.1.0.0

  • 8/12/2019 MBGP Commands

    9/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-7

    1.1.10 display bgp multicast routing-table as-path-acl

    Syntax

    display bgp multicast routing-table as-path-acl acl-number

    View

    Any view

    Parameters

    acl-number : Matched AS path list number, ranging from 1 to 199.

    Description

    Use the display bgp multicast routing-table as-path-acl command to view routesthat match an as-path acl.

    Examples

    # Display routes that match the as-path-acl 2.

    display bgp multicast routing-table as-path-acl 2

    1.1.11 display bgp multicast routing-table cidr

    Syntax

    display bgp multicast routing-table cidr

    View

    Any view

    Parameters

    None

    Description

    Use the display bgp multicast routing-table cidr command to view the non-naturalnetwork mask, namely the classless inter-domain routing (CIDR) information.

    Examples

    # View CIDR routing information.

    display bgp multicast routing-table cidr

  • 8/12/2019 MBGP Commands

    10/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-8 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1.1.12 display bgp multicast routing-table community

    Syntax

    display bgp multicast routing-table community [ aa :nn | no-export-subconfed | no-advertise | no-export ] * [whole-match ]

    View

    Any view

    Parameters

    aa :nn : Community number.

    no-export-subconfed : Does not send matched routes outside the local autonomous

    system.no-advertise : Does not advertise matched routes to any peer.

    no-export : Does not advertise routes outside the local autonomous system butadvertise routes to other sub-autonomous systems.

    whole-match : Exact match.

    Description

    Use the display bgp multicast routing-table community command to view routinginformation of a specified MBGP community.

    Examples

    # Display routing information of the specified MBGP community

    display bgp multicast routing-table community 600:1

    1.1.13 display bgp multicast routing-table community-list

    Syntax

    display bgp multicast routing-table community-list community-list-number

    [ whole-match ]View

    Any view

    Parameters

    community-list-number : Number of the specified community list.

    exact-match : Exact match.

  • 8/12/2019 MBGP Commands

    11/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-9

    Description

    Use the display bgp multicast routing-table community-list command to view therouting information of a specified MBGP community list.

    Examples

    # Display routing information of the specified MBGP community list.

    display bgp multicast routing-table community-list 1

    1.1.14 display bgp multicast routing-table different-origin-as

    Syntax

    display bgp multicast routing-table different-origin-as

    View

    Any view

    Parameters

    None

    Description

    Use the display bgp multicast routing-table different-origin-as command to view AS routes of different origins.

    Examples

    # Display AS routes of different origins.

    display bgp multicast routing-table different-origin-as

    1.1.15 display bgp multicast routing-table peer

    Syntax

    display bgp multicast routing-table peer peer-address { received | advertised }[ network-address [ mask ] | statistic ]

    View

    Any view

    Parameters

    peer-address : Peer address, in dotted decimal format.

    received : Routing information received from a specified peer.

    advertised : Routing information advertised from a specified peer.

  • 8/12/2019 MBGP Commands

    12/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-10 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    network-address : IP address of the destination network.

    mask : Mask of the destination network.

    statistic : Statistic information of the route.

    Description

    Use the display bgp multicast routing-table peer command to view the routesreceived/advertised at/to the specified peer.

    Examples

    # Display routing information advertised to the peer 10.10.1.11.

    display bgp multicast routing-table peer 10.10.1.11 advertised

    1.1.16 display bgp multicast routing-table regular-expressionSyntax

    display bgp multicast routing-table regular-expression as-regular-expression

    View

    Any view

    Parameters

    as-regular-expression : AS regular expression matched.

    Description

    Use the display bgp multicast routing-table regular-expression command to viewthe routing information matching the specified AS regular expression.

    Examples

    # Display routing information matching AS regular expression 600$.

    display bgp multicast routing-table regular-expression 600$

    1.1.17 filter-policy export

    Syntax

    filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol ]

    undo filter-policy { acl-number | ip-prefix ip-prefix-name } export [ protocol ]

    View

    IPv4 multicast sub-address family view

  • 8/12/2019 MBGP Commands

    13/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-11

    Parameters

    acl-number : Number of ACL used in matching the destination address domain ofrouting information, in the range of 2000 to 3999.

    ip-prefix-name : Name of the IP prefix used in matching the destination address domainof routing information, in the range of 1 to 19.

    Protocol : Protocol specifying which kind of routing information shall be filtered out, withoptions currently available include direct , ospf , ospf-ase , ospf-nssa , rip, is-is andstatic .

    Description

    Use the filter-policy export command to set to filter the advertised routes. Only thosepass through the filter can be advertised by BGP.

    Use the undo filter-policy export command to cancel route filtering.

    By default, filtering the advertised routes is not enabled.

    The command affects route advertising by BGP. If you specify the protocol parameter,the device only filters the routes with the specified protocol imported, without influenceon the routes importing other protocols. Otherwise, the device filters the routesimporting any protocols.

    Examples

    # Filter all BGP-advertised routes using ACL 2000.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] filter-policy 2000 export

    1.1.18 filter-policy import

    Syntax

    filter-policy gateway ip-prefix-name import

    undo filter-policy gateway ip-prefix-name import

    filter-policy { acl-number | ip-prefix ip-prefix-name } import

    undo filter-policy { acl-number | ip-prefix ip-prefix-name } import

    View

    IPv4 multicast sub-address family view

  • 8/12/2019 MBGP Commands

    14/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-12 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    Parameters

    acl-number : Number of ACL used in matching the destination address domain ofrouting information, in the range of 2000 to 3999.

    ip-prefix ip-prefix-name : Specifies the IP prefix used in matching the destinationaddress domain of routing information, in the range of 1 to 19.

    gateway ip-prefix-name : Specifies IP prefix of the neighbor device, in the range of 1 to19, to filter the routing information advertised by a specified neighbor device.

    Description

    Use the filter-policy gateway import command to set to filter the routes advertised bya specified neighbor device. Only those pass through the filter can be advertised byBGP.

    Use the undo filter-policy gateway import command to cancel route filtering.

    Use the filter-policy import command to set to filter the global routes received.

    Use the undo filter-policy import command to cancel route filtering.

    By default, filtering the received routes is not enabled.

    This configuration determines whether to add the routes into the BGP routing table.

    Examples

    # Filter all BGP-received routes using ACL 2000.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] filter-policy 2000 import

    1.1.19 import-route

    Syntax

    import-route protocol [ route-policy route-policy-name | med med-value ] *undo import-route protocol

    View

    IPv4 multicast sub-address family view

    Parameters

    protocol : Source routing protocols that can be imported, which can be direct , ospf ,ospf-ase , ospf-nssa , rip , isis and static .

    med-value : Metric value loaded by an imported route, ranging from 0 to 4,294,967,295.

  • 8/12/2019 MBGP Commands

    15/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-13

    route-policy-name : Route policy used for importing routes.

    Description

    Use the import-route command to import routing information of other protocols intoMBGP.

    Use the undo import-route command to cancel the importing.

    By default, MBGP will not import routing information of other protocols.

    Examples

    # Import static routes.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100[Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] import-route static

    1.1.20 ipv4-family multicast

    Syntax

    ipv4-family multicast

    undo ipv4-family multicast

    View

    BGP view, VPN instance sub-address family view, VPNv4 sub-address family view

    Parameters

    None

    Description

    Use the ipv4-family multicast command to enter the IPv4 multicast sub-addressfamily view.

    Use the undo ipv4-family multicast command to exit the IPv4 multicast sub-addressfamily view, return to the unicast view and remove all the information in multicast.

    Examples

    # Enter the IPv4 multicast sub-address family view.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul]

  • 8/12/2019 MBGP Commands

    16/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-14 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1.1.21 network

    Syntax

    network ip-address [ address-mask ] [ route-policy route-policy-name ]undo network ip-address [ address-mask ] [ route-policy route-policy-name ]

    View

    IPv4 multicast sub-address family view

    Parameters

    ip-address : Network address that BGP advertises.

    address-mask : Mask of the network address.

    route-policy policy-name : Route-policy applied to the routes advertised.

    Description

    Use the network command to configure the network addresses to be sent by the localMBGP.

    Use the undo network command to remove the configuration.

    By default, the local MBGP does not send any route.

    Examples

    # Advertise routes to network segment 10.0.0.0/16.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] network 10.0.0.0 255.255.0.0

    1.1.22 peer advertise-community

    Syntax

    peer group-name advertise-community

    undo peer group-name advertise-community

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the peer group.

  • 8/12/2019 MBGP Commands

    17/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-15

    Description

    Use the peer advertise-community command to set to send community attributes to apeer group.

    Use the undo peer advertise-community command to remove the configuration.

    By default, no community attribute is sent to any peer group.

    Examples

    # Configure to send community attributes to peer group test.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test advertise-community

    1.1.23 peer allow-as-loop

    Syntax

    peer { group-name | peer-address } allow-as-loop [ number ]

    undo peer { group-name | peer-address } allow-as-loop

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the peer group.

    peer-address : IP address of the peer.

    number : Number of repetitions of local AS IDs, in the range of 1 to 10. By default, thenumber of repetitions is 3.

    Description

    Use the peer allow-as-loop command to specify the number of repetitions of local ASIDs.

    Use the undo peer allow-as-loop command to remove the configuration.

    Related commands: display current-configuration , display bgp routing-table peer .

    Examples

    # Set the number of repetitions of local AS IDs to 2.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

  • 8/12/2019 MBGP Commands

    18/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-16 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer 1.1.1.1 allow-as-loop 2

    1.1.24 peer as-path-acl export

    Syntax

    peer { group-name | peer-address } as-path-acl acl-number export

    undo peer { group-name | peer-address } as-path-acl acl-number export

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the peer group.

    peer-address: IP address of the peer; uses dotted decimal notation.

    acl-number : Filter list number of an AS regular expression, In the range of 1 to 199.

    export : Uses the AS path list to filter the advertised routes.

    Description

    Use the peer as-path-acl export command to configure filtering Policy of MBGPadvertised routes based on AS path list.

    Use the undo peer as-path-acl command to cancel the existing configuration.By default, the peer group has no AS path list.

    This command can only be configured on peer group.

    Related commands: peer as-path-acl import , ip as-path-acl .

    Examples

    # Configure the peer group test to use AS path list 2 to filter the advertised routes.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test as-path-acl 2 export

    1.1.25 peer as-path-acl import

    Syntax

    peer { group-name | peer-address } as-path-acl acl-number import

    undo peer { group-name | peer-address } as-path-acl acl-number import

  • 8/12/2019 MBGP Commands

    19/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-17

    View

    IPv4 multicast sub-address family view

    Parametersgroup-name : Name of the peer group.

    peer-address : IP address of the peer.

    acl-number : Filter list number of an AS regular expression, in the range 1 to 199.

    import : Uses the AS path list to filter the received routes.

    Description

    Use the peer as-path-acl import command to configure filtering Policy of MBGPreceived routes based on AS path list.

    Use the undo peer as-path-acl import command to cancel the existing configuration.

    By default, the peer/peer group has no AS path list.

    The inbound filter policy configured for the peer takes precedence over theconfigurations for the peer group.

    Related commands: peer as-path-acl export , ip as-path-acl .

    Examples

    # Set the AS path ACL of the peer group test to filter BGP received routes.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test as-path-acl 3 import

    1.1.26 peer enable

    Syntax

    peer group-name enable undo peer group-name enable

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the multicast peer group.

  • 8/12/2019 MBGP Commands

    20/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-18 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    Description

    Use the peer enable command to enable the MBGP peer group.

    Use the undo peer enable command to disable the MBGP peer group.

    By default, the MBGP peer group is disabled.

    The device can establish the connection with a multicast peer only if the peer group isenabled.

    Examples

    # Enable peer group group1.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer group1 enable

    1.1.27 peer filter-policy export

    Syntax

    peer group-name filter-policy acl-number export

    undo peer group-name filter-policy acl-number export

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the peer group.

    acl-number : Number of IP ACL ranging from 2000 to 3999. That is, you can use basic ACLs or advanced ACLs.

    export : Applies the filter policy to the advertised routes. This keyword is only valid forthe peer groups.

    Description

    Use the peer filter-policy export command to configure the peer group to apply the ACL-based filter policy to the advertised routes.

    Use the undo peer filter-policy export command to cancel the existing configuration.

    By default, no ACL-based filter policy is configured.

    The peer filter-policy export command can only be configured on peer groups.

    Related commands: peer filter-policy import , acl .

  • 8/12/2019 MBGP Commands

    21/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-19

    Examples

    # Configure the peer group test to use ACL 2000 to filter the advertised routes.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test filter-policy 2000 export

    1.1.28 peer filter-policy import

    Syntax

    peer { group-name | peer-address } filter-policy acl-number import

    undo peer { group-name | peer-address } filter-policy acl-number import

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the peer group.

    peer-address : IP address of the peer.

    acl-number : Number of IP ACL, ranging from 2000 to 3999. That is, you can use basic ACLs or advanced ACLs.

    Description

    Use the peer filter-policy import command to configure the peer to apply the ACL-based filter policy to the received routes.

    Use the undo peer filter-policy import command to cancel the existing configuration.

    By default, no ACL-based filter policy is configured.

    Related commands: peer filter-policy export , acl .

    The inbound filter policy configured for the peer takes precedence over theconfigurations for the peer group.

    Examples

    # Configure the peer group test to use ACL 2000 to filter the received routes.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test filter-policy 2000 import

  • 8/12/2019 MBGP Commands

    22/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-20 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1.1.29 peer group

    Syntax

    peer peer-address group group-nameundo peer peer-address

    View

    IPv4 multicast sub-address family view

    Parameters

    peer-address : IP address of the peer, in dotted decimal format.

    group-name : Name of the peer, consisting of one to 47 alphanumeric characters.

    Description

    Use the peer group command to add a peer into a peer group.

    Use the undo peer group command to delete the peer.

    Caution:

    You must firstly add the specific peer in the peer group in BGP view and enable the

    peer group in IPv4 multicast sub-address family view before you can this command.

    Examples

    # Add peer 10.1.1.1 to EBGP peer group TEST.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] group TEST external.

    [Quidway-bgp] peer TEST as-number 2004

    [Quidway-bgp] peer 10.1.1.1 group TEST

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer TEST enable

    [Quidway-bgp-af-mul] peer 10.1.1.1 group TEST

    1.1.30 peer ip-prefix export

    Syntax

    peer group-name ip-prefix prefixname export

  • 8/12/2019 MBGP Commands

    23/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-21

    undo peer group-name ip-prefix prefixname export

    View

    IPv4 multicast sub-address family viewParameters

    group-name : Name of peer group.

    prefixname : Name of the specified ip-prefix .

    Description

    Use the peer ip-prefix export command to configure the route filtering policy of routesadvertised by the peer group based on the ip-prefix.

    Use the undo peer ip-prefix export command to cancel the route filtering policy of thepeer/peer group based on the ip-prefix.

    By default, the route filtering policy of the peer group is not specified.

    The peer ip-prefix export command can only be configured on the peer groups.

    Related commands: peer ip-prefix import .

    Examples

    # Configure the route filtering policy of the peer group1 based on the ip-prefix list1.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer group1 ip-prefix list1 export

    1.1.31 peer ip-prefix import

    Syntax

    peer { group-name | peer-address } ip-prefix prefixname import

    undo peer { group-name | peer-address } ip-prefix prefixname import

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of peer group.

    peer-address : IP address of the peer, in dotted decimal format.

    prefixname : Name of the specified ip-prefix, a character string of 1 to 19 characters.

  • 8/12/2019 MBGP Commands

    24/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-22 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    Description

    Use the peer ip-prefix import command to configure the route filtering policy of routesreceived by the peer based on the ip-prefix.

    Use the undo peer ip-prefix import command to cancel the route filtering policy of thepeer based on the ip-prefix.

    By default, the route filtering policy of the peer is not specified.

    The inbound route policy configured for the peer takes precedence over theconfigurations for the peer group.

    Related commands: peer ip-prefix export .

    Examples

    # Configure the route filtering policy of the peer group1 based on the ip-prefix list1. system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer group1 ip-prefix list1 import

    1.1.32 peer next-hop-local

    Syntax

    peer group-name next-hop-local

    undo peer group-name next-hop-local

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the peer group.

    DescriptionUse the peer next-hop-local command to remove the processing of the next hop inroutes which BGP will advertise to the peer group and set the local address as the nexthop.

    Use the undo peer next-hop-local command to cancel the configuration.

    Examples

    # Specify the local address as next-hop when advertising routes to peer group namedtest.

    system-view

  • 8/12/2019 MBGP Commands

    25/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-23

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test next-hop-local

    1.1.33 peer public-as-only

    Syntax

    peer group-name public-as-only

    undo peer group-name public-as-only

    View

    IPv4 multicast sub-address family view

    Parameters

    group-name : Name of the peer group.

    Description

    Use the peer public-as-only command to set to contain only public AS IDs in theMBGP Update message, but not private AS IDs.

    Use the undo peer public-as-only command to restore the default setting, the devicecontains only private AS IDs in the MBGP Update message.

    By default, the private AS ID is carried when BGP sends MBGP Update message.

    Generally, MBGP sends MBGP Update message with the AS ID (which can be eitherthe public AS number or private AS number) contained. To enable some egressdevices to ignore the private AS ID when sending MBGP Update message, you canconfigure not to carry the private AS IDs when sending MBGP Update message.

    Examples

    # Set not to carry private AS IDs when sending MBGP Update message to peer group"test.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test public-as-only

    1.1.34 peer reflect-client

    Syntax

    peer group-name reflect-client

  • 8/12/2019 MBGP Commands

    26/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-24 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    undo peer group-name reflect-client

    View

    IPv4 multicast sub-address family viewParameters

    group-name : Name of the peer group.

    Description

    Use the peer reflect-client command to configure a peer (group) as a client of theroute reflector.

    Use the undo peer reflect-client command to remove the configuration.

    By default, there is no route reflector in the autonomous system.Examples

    # Configure peer group test as the client of the route reflector.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test reflect-client

    1.1.35 peer route-limit

    Syntax

    peer { group-name | peer-address } route-limit route-limit-value [ route-limit-percent ][ alter-only | idle-forever | idle-timeout timeout-value ]

    undo peer { group-name | peer-address } route-limit

    View

    IPv4 multicast sub-address family view

    Parameters

    peer-address : IP address of a peer group.

    group-name : Name of a peer group, a string of 1 to 47 alphanumeric characters.

    route-limit-value : Maximum number of routes the peer group can receive, in the rangeof 1 to 200,000.

    route-limit-percent : Percentage of the number of received routes in the allowedmaximum number of routes that triggers a warning message.

  • 8/12/2019 MBGP Commands

    27/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-25

    timeout-value : Length of time in seconds that must pass before a BGP connection canbe re-established, in the range of 1 to 65,535.

    Description

    Use the peer route-limit command to configure the maximum number of routes thatthe specified peer group can receive.

    Use the undo peer route-limit command to remove the configured limit of routes thatcan be received.

    This command has no default settings. All the parameters need to be specified throughthe command line.

    If alter-only is provided, a warning message is generated when the number of routesreceived by the specified peer group reaches the allowed maximum number, but the

    connection will be retained.If idle-forever is provided, a warning message is generated when the number of routesreceived by the specified peer group reaches the allowed maximum number and at thesame time the BGP connection is removed. The connection can be re-established onlyby means of the reset bgp command.

    If idle-timeout is provided, a warning message is generated when the number of routesreceived by the specified peer group reaches the allowed maximum number, and theBGP connection is torn down at the same time. The period specified by timeout-value must pass before the connection can be re-established.

    Examples

    # Set the maximum number of routes that can be received by each outgoing peer in thepeer group to 20000, with the following actions:

    A warning message is displayed when the number of received routes exceeds4000;

    When the number of received routes exceeds 20000, the connection is removed; The BGP connection is re-established 30 seconds later.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidwaybgp-af-mul] peer test route-limit 20000 20 idle-timeout 30

    1.1.36 peer route-policy export

    Syntax

    peer group-name route-policy policy-name export

    undo peer group-name route-policy policy-name export

  • 8/12/2019 MBGP Commands

    28/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-26 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    View

    IPv4 multicast sub-address family view

    Parametersgroup-name : Name of peer group.

    peer-address : IP address of the peer.

    Description

    Use the peer route-policy export command to assign the Route-policy to the routesadvertised to the peer group.

    Use the undo peer route-policy export command to delete the specifiedRoute-policy.

    By default, the peer/peer group has no Route-policy association.

    Related commands: peer route-policy import .

    Examples

    # Apply the Route-policy named test-policy to the route coming from the peer grouptest.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test route-policy test-policy export

    1.1.37 peer route-policy import

    Syntax

    peer { group-name | peer-address } route-policy policy-name import

    undo peer { group-name | peer-address } route-policy policy-name import

    ViewIPv4 multicast sub-address family view

    Parameters

    group-name : Name of peer group.

    peer-address : IP address of the peer.

    policy-name : Name of the applied route policy.

  • 8/12/2019 MBGP Commands

    29/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-27

    Description

    Use the peer route-policy import command to assign the Route-policy to the routecoming from the peer..

    Use the undo peer route-policy import command to delete the specifiedRoute-policy.

    By default, the peer has no Route-policy association.

    The inbound route policy configured for the peer takes precedence over theconfigurations for the peer group.

    Related commands: peer route-limit .

    Examples

    # Apply the Route-policy named test-policy to the route coming from the peer grouptest.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] peer test route-policy test-policy import

    1.1.38 preference

    Syntax

    preference ebgp-value ibgp-value local-value

    undo preference

    View

    IPv4 multicast sub-address family view

    Parameters

    ebgp-value : EBGP route priority, in the range of 1 to 256. By default, it is 256.

    ibgp-value : IBGP route priority, in the range of 1 to 256. By default, it is 256.

    local-value : Local route priority, in the range of 1 to 256. By default, it is 130.

    Description

    Use the preference command to configure MBGP protocol priority.

    Use the undo preference command to restore the default priority.

    You can configure different priority values for different types of MBGP routes.

  • 8/12/2019 MBGP Commands

    30/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-28 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    Examples

    # Set the priority of EBGP, IBGP and local routes all to 170.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] preference 170 170 170

    1.1.39 reflect between-clients

    Syntax

    reflect between-clients

    undo reflect between-clients

    View

    IPv4 multicast sub-address family view

    Parameters

    None

    Description

    Use the reflect between-clients command to enable route reflection between clients.Use the undo reflect between-clients command to disable route reflection betweenclients.

    When configured, the route reflector can reflect routes of a client to other clients.

    By default, all-connection is not required for the clients with route reflectors configured,since the routes are by default reflected from one client to others. For all-connectionclients, route reflection is unnecessary.

    Related commands: reflector cluster-id , peer reflect-client .

    Examples# Disable route reflection function.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] undo reflect between-clients

  • 8/12/2019 MBGP Commands

    31/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    1-29

    1.1.40 reflector cluster-id

    Syntax

    reflector cluster-id { cluster-id | address }undo reflector cluster-id

    View

    IPv4 multicast sub-address family view

    Parameters

    cluster-id : Route reflector cluster ID, in integer number or IP address format, range 1 to4294967295.

    address : Route reflector cluster ID in IP address format.

    Description

    Use the reflector cluster-id command to configure route reflector cluster ID.

    Use the undo reflector cluster-id command to delete route reflector cluster ID.

    By default, each route reflector uses its own route ID as cluster ID.

    In general, one cluster has only one route reflector, and then the router ID for the routereflector can be used to identify the cluster. If a cluster has several route reflectors, formultiple route reflectors can improve network stability, then you can use this commandto specify the same cluster ID for them all.

    Related commands: reflect between-clients , peer reflect-client .

    Examples

    # Specify cluster ID for local device, one of the router reflectors.

    system-view

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] reflector cluster-id 80

    [Quidway-bgp-af-mul] peer test reflect-client

    1.1.41 refresh bgp multicast

    Syntax

    refresh bgp { all | peer-address | group group-name } multicast { import | export }

    View

    User view

  • 8/12/2019 MBGP Commands

    32/33

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    Command Manual MBGPQuidway S8500 Series Routing Switches

    1-30 Huawei Proprietary and ConfidentialCopyright (c) Huawei Technologies Co., Ltd

    Parameters

    all : Refreshes multicast sub-address family routes of all peers.

    peer-address : Multicast sub-address family route of the specified peer.

    group-name : Multicast sub-address family routes of all members of the specified peergroup.

    import : Sends ROUTE-REFRESH packets to request the peer to send all multicastsub-address family routes again.

    export : Sends all multicast sub-address family routes again.

    Description

    Use the refresh bgp multicast command to request the peer to send multicast

    sub-address family routes again, or send multicast sub-address family routes again.Examples

    # Request all the peers to send multicast sub-address family routes again.

    refresh bgp all multicast import

    1.1.42 summary

    Syntax

    summary

    undo summary

    View

    IPv4 multicast sub-address family view

    Parameters

    None

    Description

    Use the summary command to set to auto-aggregate subnet routes.

    Use the undo summary command to remove the configuration.

    By default, subnet routes cannot be aggregated automatically.

    After the summary command is executed, MBGP cannot receive the subnet routesimported by IGP. You can use this command to reduce route selection information.

    Examples

    # Enable subnet route auto-aggregation.

    system-view

  • 8/12/2019 MBGP Commands

    33/33

    Command Manual MBGPQuidway S8500 Series Routing Switches

    Chapter 1 MBGP Multicast Extension ConfigurationCommands

    System View: return to User View with Ctrl+Z.

    [Quidway] bgp 100

    [Quidway-bgp] ipv4-family multicast

    [Quidway-bgp-af-mul] summary