attr-set (BGP multi-instance VPN instance IPv4 address family view)

Function

The attr-set command configures a device to encapsulate the Attr_Set attribute when sending VPN routes, parse the Attr_Set attribute when receiving VPN routes, or encapsulate the Attr_Set attribute when sending VPN routes and parse the Attr_Set attribute when receiving VPN routes.

The undo attr-set command cancels the configuration.

By default, a device does not encapsulate or parse the Attr_Set attribute when exchanging VPN routes with other devices.

Format

attr-set { receive | send | both }

undo attr-set { receive | send | both }

Parameters

Parameter Description Value
receive

Enables the device to parse the Attr_Set attribute when receiving VPN routes.

-

send

Enables the device to encapsulate the Attr_Set attribute when sending VPN routes.

-

both

Enables the device to encapsulate the Attr_Set attribute when sending VPN routes and parse the Attr_Set attribute when receiving VPN routes.

-

Views

BGP multi-instance VPN instance IPv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

On BGP MPLS/VPN networks, EBGP peer relationships are established between PEs and CEs in most cases. Attributes of the routes advertised by CEs are modified during transmission over the intermediate backbone network, or the attributes affect the backbone network. In this case, BGP has been extended to allow the intermediate backbone network to transparently transmit the routes advertised by CEs. After receiving a route from a CE, the local PE encapsulates the attributes of the route in the Attr_Set attribute and then sends the route to the remote PE. Upon receipt of the route, the remote PE parses the Attr_Set attribute. This process ensures that the route attributes are transparently transmitted over the backbone network.

The BGP route attributes that are encapsulated in the Attr_Set attribute are as follows:

  • Origin
  • AS_Path
  • MED
  • Local_Preference
  • Auto_Aggregate
  • Aggregator
  • Community
  • Originatorid
  • Clusterlist
  • Extcommunity
  • 4-byte_AS_Path
  • 4-byte_AS_Aggregator
  • AIGP
  • Large-community

Example

# Enable the device to encapsulate the Attr_Set attribute when sending VPN routes.
<HUAWEI> system-view
[~HUAWEI] ip vpn-instance vpna
[*HUAWEI-vpn-instance-vpna] ipv4-family
[*HUAWEI-vpn-instance-vpna-af-ipv4] route-distinguisher 100:1
[*HUAWEI-vpn-instance-vpna-af-ipv4] vpn-target 111:1 both
[*HUAWEI-vpn-instance-vpna-af-ipv4] quit
[*HUAWEI-instance-vpna] quit
[*HUAWEI] bgp 100 instance a
[*HUAWEI-bgp-instance-a] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-instance-a-vpna] attr-set send
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >