The bgp command enables BGP and displays the BGP view.
The undo bgp command disables BGP.
By default, BGP is disabled.
Parameter | Description | Value |
---|---|---|
as-number-plain | Specifies the number of the AS, in integer format. | The value is an integer that ranges from 1 to 4294967295. |
as-number-dot | Specifies the number of the AS, in dotted notation. | The value is in the x.y format. Here, "x" and "y" are integers that range from 1 to 65535 and 0 to 65535 respectively. |
Usage Scenario
BGP is an inter-AS dynamic routing protocol. BGP running within an AS is called Internal BGP (IBGP), and BGP running between ASs is called External BGP (EBGP).
Whether to apply BGP to routing information transmission between ASs depends on the following conditions:
If at least one of the following conditions is met, BGP can be used:
An AS allows data packets to pass through on their way to another AS.
Multiple connections to external ISPs and the Internet exist in ASs.
Data flows entering or leaving ASs must be controlled.
If one of the following conditions is met, BGP does not need to be used:
Users are connected to only one ISP network.
The ISP does not need to provide Internet access services for users.
ASs adopt default routes between each other.
Precautions
After the bgp command is run, BGP is enabled.
Each device runs in only one AS; therefore, each device can be specified with only one local AS number.
After the undo bgp [ as-number-plain | as-number-dot ] command is run, BGP services may be interrupted, and all BGP configurations on the device are cleared. Therefore, exercise caution when you run this command.