No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Command Reference

CloudEngine 8800, 7800, 6800, and 5800 V200R002C50

This document describes all the configuration commands of the device, including the command function, syntax, parameters, views, default level, usage guidelines, examples, and related commands.
Rate and give feedback :
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
as-number

as-number

Function

The as-number command configures an AS number for a VPN instance.

The undo as-number command restores the default setting.

By default, a VPN instance uses the AS number of BGP.

NOTE:

CE6810LI series does not support this command.

Format

as-number { as-number-plain | as-number-dot }

undo as-number

Parameters

Parameter Description Value
as-number-plain Integral AS number The value is an integer ranging from 1 to 4294967295.
as-number-dot AS number in dotted notation The value 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.

Views

BGP-VPN instance IPv4 address family view, BGP-VPN instance IPv6 address family view, BGP multi-instance VPN instance IPv4 address family view

Default Level

2: Configuration level

Usage Guidelines

Usage Scenario

During network transfer or service identification, a device needs to be simulated as multiple BGP devices logically. In this case, you can run the as-number command to configure an AS number for each VPN instance.

After the as-number command is used:
  • BGP peer relationships in the VPN instance are established by using the configured AS number.
  • The configured AS number is used to generate the aggregator attribute during route aggregation.
  • When advertising routes to an EBGP peer, the local device carries the AS number configured in the VPN instance.

Prerequisites

If a BGP peer or a BGP peer group is configured in the VPN instance, you need to delete the configuration of the BGP peer or BGP peer group before configuring or deleting an AS number.

Precautions

A VPN instance configured with an AS number cannot be configured with BGP confederation. Conversely, a VPN instance configured with BGP confederation cannot be configured with an AS number.

The AS number configured in the BGP-VPN instance view cannot be the same as the AS number configured in the BGP view.

Example

# Set the AS number of the VPN instance named vpna to 65001.

<HUAWEI> system-view
[~HUAWEI] bgp 100
[*HUAWEI-bgp] ipv4-family vpn-instance vpna
[*HUAWEI-bgp-vpna] as-number 65001
Translation
Download
Updated: 2019-03-21

Document ID: EDOC1000166501

Views: 52447

Downloads: 339

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next