bgp
Function
The bgp command enables BGP and displays the BGP view.
The undo bgp command disables BGP.
By default, BGP is disabled.
Parameters
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 Guidelines
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:
Data packets are allowed to be transmitted from one AS to another AS.
Multiple connections to external ISPs and 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.
Exercise caution when using the undo bgp command because it will delete all BGP configurations on a device.