View Categories

chapter 15 – BGP

5 min read

15.2 Basic Concepts #

15.2.1 Autonomous Systems

15.2.2 BGP Classification

15.2.3 Roles in BGP Packet Interaction

15.2.4 Router ID

15.3 BGP Configuration #

Configuration TasksDescriptionDetailed configuration
Enable BGPRequired15.3.1
Modify AS numberOptional15.3.3
Set Router IDOptional15.3.4
Configure BGP neighborsOptional15.3.5
Enable AS-Path RelaxOptional15.3.6
Enable BFD with BGP LinkageOptional15.3.7

15.3.1 BGP Default Setting

ParameterDefault value
BGPdisable
Keepalive message sending interval60 seconds
Neighbor hold time180 seconds
AS Number65100

15.3.2 Enable BGP

OperationCommandsDescription
Enter global configuration view.configure terminal-
Enter BGP config view.router bgp asn [vrf vrf_name]asn: local AS number
Startup a BGP session for the specified neighbour.no neighbor {ipaddr|hostname} shutdownSupport for enabling by IP address or host name
Startup all BGP sessions.no bgp shutdown-
Shutdown the BGP session of the specified neighbour.neighbor {ipaddr|hostname} shutdownSupport shutdown by IP address or host name
Shutdown all BGP sessions.bgp shutdown-

15.3.3 Modify AS Number

OperationCommandsDescription
Enter global configuration view.configure terminal-
Delete the original AS number.no router bgp asn-
Set the new AS number.router bgp asn-

15.3.4 Set Router ID

OperationCommandsDescription
Enter global configuration view.configure terminal-
Enter BGP viewrouter bgp asn-
Configure the Router IDrouter bgp asn-

15.3.5 Configure BGP Neighbor

OperationCommandsDescription
Enter global configuration view.configure terminal-
Enter BGP viewrouter bgp asnasn: local AS number
Add BGP neighborneighbor neighbor_ip remote-as asn asn: neighbor AS number
Delete BGP neighborno neighbor {ipaddr | hostname}Specify the IP or hostname of the neighbor

15.3.6 Enable AS-Path Relax

OperationCommandsDescription
Enter global configuration view.configure terminal-
Enter BGP viewrouter bgp asnasn: local AS number
Enable AS-Path relaxbgp bestpath as-path multipath-relax as-set-
Disable AS-Path relaxbgp bestpath as-path multipath-relax no-as-set-

15.3.7 Enable BFD with BGP Linkage

OperationCommandsDescription
Enter global configuration view.configure terminal-
Enter BGP viewrouter bgp asnasn: local AS number
BGP session bind BFDneighbor {ipaddr | hostname} bfd -
BGP session unbind BFDno neighbor {ipaddr | hostname} bfd -

15.4 Display and Maintenance #

15.4.1 BGP Configuration Display

OperationCommandsDescription
Show BGP neighbor detailsshow ip bgp neighbors {ipaddr| hostname } [OPTION]ipaddr: neighbor ip address.
hostname: the name of the neighbor.
The options for OPTION are as follows.
routes: display routes learned from neighbours.
advertised-routes: show the routes advertised to neighbors.
received-routes: show routes received from neighbors .
prefix-counts: display detailed prefix count information.
filtered-routes: display the filtered routes received from neighbors.
bestpath-routes: show the routes selected by best path.
received: shows the information received from the neighbour.
flap-statistics: display flap statistics for routes learned from neighbors.
dampened-routes: show the fading routes received from neighbors.
json: show in json format
Display BGP neighbor network informationshow ip bgp [A.B.C.D/M |A.B.C.D]A.B.C.D/M: IPv4 prefix. A.B.C.D: routes in the BGP routing table
Display BGP neighbor summary informationshow ip bgp summary [established|failed|json]established: display only established BGP neighbors.
failed: only failed BGP neighbors are displayed.
json: display in json format

15.5 Typical Configuration Example #

15.5.1 EBGP Configuration Scenarios

15.5.1.1 Network requirements

15.5.1.2 topology

cx-n-chapter15-figure-1
Figure 15‑1 EBGP basic configuration network diagram

15.5.1.3 Configuration ideas

15.5.1.4 Configuration steps

Leave a Reply

Your email address will not be published. Required fields are marked *

© 2025 Asteraix. All rights reserved.