peer upe (BGP-VPNv4 address family view)

Function

The peer upe command specifies a BGP peer as UPE of HoVPN.

The undo peer upe command cancels the configuration.

By default, no BGP peer is specified as UPE of HoVPN.

Format

peer ipv4-address upe

undo peer ipv4-address upe

Parameters

Parameter Description Value
ipv4-address

Specifies the IPv4 address of a peer.

It is in dotted decimal notation.

Views

BGP-VPNv4 address family view

Default Level

2: Configuration level

Task Name and Operations

Task Name Operations
bgp write

Usage Guidelines

Usage Scenario

In an HoVPN scenario, run the peer upe command to specify a device as a UPE. After a UPE is specified on the SPE using the peer upe command, the SPE does not send a specific route to the UPE. If the peer route-policy export command is run on the SPE to configure routing policies for the UPE and certain specific routes can pass the filtration of routing policies, these specific routes can be sent to the UPE.

After you run the peer upe command on an SPE to specify a device as a UPE, the SPE can change the next hops of routes received from the UPE to itself and reflect these routes to the NPE.

Prerequisites

Before you run the peer upe command, the peer as-number command should be used to create a peer.

Precautions

After you run the peer upe command on an SPE to specify a device as a UPE, run the ip route-static vpn-instance command to configure a default route on the SPE and run the network or import-route static command in the BGP VPN instance IPv4 address family view to import the default route to the IPv4 VPN instance routing table, so that the SPE can advertise the default route 0.0.0.0 to the UPE.

After the peer upe command is configured, to send the default route 0.0.0.0 to the UPE, you need to run the peer default-originate vpn-instance command on the SPE.

Example

# Specify the peer 10.1.1.2 as UPE.
<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] peer 10.1.1.2 as-number 100
[*HUAWEI-bgp] ipv4-family vpnv4
[*HUAWEI-bgp-af-vpnv4] peer 10.1.1.2 enable
[*HUAWEI-bgp-af-vpnv4] peer 10.1.1.2 upe
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >