router bgp
Syntax
router bgp <AS-NUMBER>
no router bgp <AS-NUMBER>
Description
This command configures the BGP instance on the router, configures the AS (Autonomous System) the router belongs to, and enters into the BGP router configuration mode. Only a single BGP AS number can be assigned for the entire system.
The
no
form of the command deletes the BGP instance from the router.
Command context
config
Parameters
AS-NUMBER
Required: Specifies a 4-byte AS number in the range 1-4294967295 in integer format or from 0.1-65535.65535 in dotted format.
Authority
Administrators or local user group members with execution rights for this command.
Examples
Configuring the BGP instance with the AS number:
switch(config)# router bgp 100
Deleting BGP configurations:
switch(config)# no router bgp 100 This will delete all BGP configurations on this device. Continue (y/n)?