< Home

peer soo

Function

The peer soo command configures the Site of Origin (SoO) attribute for EBGP peers in BGP VPN instances.

The undo peer soo command cancels this function.

By default, no SoO attribute is configured for EBGP peers in BGP VPN instances.

Format

peer { group-name | ipv4-address | ipv6-address } soo site-of-origin

undo peer { group-name | ipv4-address | ipv6-address } soo

Parameters

Parameter Description Value

group-name

Specifies the name of a BGP peer group.

The name is a string of 1 to 47 characters without any space. It is case-sensitive.

ipv4-address

Specifies the IPv4 address of a BGP peer.

It is in dotted decimal notation.

ipv6-address

Specifies the IPv6 address of a BGP peer.

The address is a 32-digit hexadecimal number in the X:X:X:X:X:X:X:X format.

site-of-origin

Specifies the SoO attribute, which is a BGP extended community attribute and can be expressed in any of the following formats:

  • 2-byte AS number:4-byte user-defined number, for example, 1:3

    An AS number ranges from 0 to 65535, and a user-defined number ranges from 0 to 4294967295. The AS number and user-defined number cannot be both 0. That is, the value of the SoO attribute cannot be 0:0.

  • IPv4-address:2-byte user-defined number, for example, 192.168.122.15:1

    An IPv4 address ranges from 0.0.0.0 to 255.255.255.255, and a user-defined number ranges from 0 to 65535.

  • 4-byte AS number:2-byte user-defined number (a 4-byte AS number is usually in the format of x.y), for example, 12.34:56

    In an AS number, x and y each range from 0 to 65535; a user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0. That is, the value of the SoO attribute cannot be 0.0:0.

  • Integral 4-byte AS number:2-byte user-defined number, for example, 65537:3. An AS number ranges from 65536 to 4294967295. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, the value of the SoO attribute cannot be 0:0.

  • 4-byte AS number in dotted notation:2-byte user-defined number, for example, 0.0:3 or 0.1:0. A 4-byte AS number in dotted notation is in the format of x.y, where x and y are integers that range from 1 to 65535 and from 0 to 65535, respectively. A user-defined number ranges from 0 to 65535. The AS number and user-defined number cannot be both 0s. That is, the value of the SoO attribute cannot be 0.0:0.

-

Views

BGP-VPN instance IPv4 address family view and BGP-VPN instance IPv6 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

When multiple CEs at a VPN site access different PEs, VPN routes sent from CEs to PEs may return to this VPN site after traveling through the backbone network. This may cause routing loops in the VPN site.

After the peer soo command is run on a PE to configure the SoO attribute for a specified CE, the PE adds the configured SoO attribute to the routes received from the CE and then advertises these routes to other PEs. Before advertising these routes to the connected CEs, the PE peers check the SoO attribute carried in these routes. If the PE peers find that this SoO attribute is the same as the locally configured SoO attribute, the PE peers do not advertise these routes to the connected CEs.

Prerequisites

The peer as-number command has been used to create a peer or peer group.

Precautions

The peer soo command is applicable to the scenarios where EBGP runs between PEs and CEs.

Example

# Configure the SoO attribute for EBGP peers in a BGP VPN instance.

<sysname> system-view
[sysname] bgp 100
[sysname-bgp] ipv4-family vpn-instance vpna
[sysname-bgp-vpna] peer 192.168.15.2 soo 2.2.2.2:45
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >