bgp
Use bgp to enable a BGP instance and enter its view.
Use undo bgp to disable a BGP instance.
Syntax
bgp as-number [ instance instance-name ]
undo bgp [ as-number [ instance instance-name ] ]
Default
BGP is disabled and no BGP instances exist.
Views
System view
Predefined user roles
network-admin
Parameters
as-number: Specifies a local AS by its number in the range of 1 to 4294967295.
instance instance-name: Specifies a BGP instance by its name, a case-sensitive string of 1 to 31 characters. If you do not specify this option, the command enables the BGP instance default.
Usage guidelines
A router supports 4-byte AS number.
A BGP router can run multiple BGP processes. Each BGP process corresponds to a BGP instance. BGP maintains an independent routing table for each BGP instance.
You can create multiple public address families for a BGP instance. However, each public address family (except for public IPv4 unicast and IPv6 unicast address families) can belong to only one BGP instance.
You can create multiple VPN instances for a BGP instance, and each VPN instance can have multiple address families. A VPN instance can belong to only one BGP instance.
The IPv4 and IPv6 multicast address families must belong to the same BGP instance.
Different BGP instances can have the same AS number but cannot have the same name.
Examples
# Enable BGP instance default, set the local AS number to 100, and enter BGP instance view.
<Sysname> system-view [Sysname] bgp 100 [Sysname-bgp-default]