0% found this document useful (0 votes)
24 views79 pages

BGP Commands Advance-Final

Uploaded by

yahya135135
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
24 views79 pages

BGP Commands Advance-Final

Uploaded by

yahya135135
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 79

BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.

COM/C/NETWORKJOURNEY

BGP CLI COMMAND NOTES PREPARED BY:


SAGAR DHAWAN
CONTACT ME FOR ONLIN INSTRUCTOR-LED CLASSES:

➢ YOUTUBE || WEBSITE || EMAIL || WHATSAPP

clear ip bgp
clear ip bgp [{<ip-address> | all} [soft] [in | out]]

Clears BGP learned routes from the BGP table and resets the connection to
the neighbor.
ip-address A BGP peer IP address. Only the specified neighbor is reset.
all All BGP peers. All BGP neighbors are reset.
Syntax Clears BGP learned routes from the BGP table without
soft
Description resetting the connection to the neighbor
in Inbound routes are reset
out Outbound routes are reset
Default N/A
Configuration
config
Mode
3.3.5006 First release
History 3.3.5200 Updated description
3.6.3004 Removed “out” parameter
Example switch (config)# clear ip bgp all
Related
Commands
This command removes BGPv4 learned routes from the routing table,
Notes reads all routes from designated peers, and sends routes to those peers as
required.

1
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

router bgp
router bgp <as-number>
no router bgp <as-number>

Creates and enters a BGP instance with the specified AS number.


The no form of the command deletes all router BGP instance configuration.
Autonomous system number: A unique number to be used to
identify the AS. The AS is a number which identifies the BGP
Syntax as- router to other routers and tags the routing information passed
Description number along.

Range: 1-4294967295
Default N/A
Configuration
config
Mode
3.3.5006
History
3.3.5200 Updated syntax description
switch (config)# router bgp 100
Example switch (config router bgp 100)#
Related
ip routing
Commands
Notes

2
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

shutdown
shutdown
no shutdown

Gracefully disables BGP protocol without removing existing


configuration.
The no form of the command enables BGP.
Syntax Description N/A
Default Enabled
Configuration
config router bgp
Mode
History 3.3.5006
Example switch (config router bgp 100)# no shutdown
Related Commands
Notes

3
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

address-family
address-family {ipv4-unicast | ipv6-unicast | l2vpn-evpn}

Enables selected address family configuration mode.


ipv4-unicast Enables IPv4 address family configuration mode
Syntax Description ipv6-unicast Enables IPv6 address family configuration mode
l2vpn-evpn Enables EVPN address family configuration mode
Default IPv4
Configuration
config router bgp
Mode
3.6.4070
History
3.6.8100 Added “l2vpn-evpn” parameter
switch (config router bgp 65001) # address-family l2vpn-
evpn
Example switch (config router bgp 65001 address-family l2vpn-
evpn) #
Related Commands
Notes

4
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

aggregate-address
aggregate-address <ip_prefix_length> [summary-only] [as-set] [attribute-
map]
no aggregate-address <ip_prefix_length> [summary-only] [as-set]
[attribute-map]

Creates an aggregate route in the BGP database.


The no form of the command disables ECMP across AS paths.
ip_prefix_length Destination to aggregate
summary-only Contributor routes are not advertised
Syntax Includes AS_PATH information from contributor routes
as-set
Description as AS_SET attributes
Assigns attribute values in set commands of the map’s
attribute-map permit clauses. Deny clauses and match commands in
permit clauses are ignored.
Default Disabled
Configuration
config router bgp
Mode
3.4.0000
History
3.6.4070 Added support for IPv4 and IPv6
Example switch (config router bgp 4) # aggregate-address 3.5.3.7 /32
Related
Commands
• Aggregate routes combine the characteristics of multiple routes into
a single route that the switch advertises
• Aggregation can reduce the amount of information that a BGP
Notes speaker is required to store and transmit when advertising routes to
other BGP speakers
• Aggregate routes are advertised only after they are redistributed

5
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

bgp default
no bgp default {ipv4-unicast | ipv6-unicast}
disable bgp default {ipv4-unicast | ipv6-unicast}

Reverts protocol to initial state (IPv4 enabled), enabling setting address


families as default for peer or peer-group activation.
Disables setting address families as default for peer or peer-group
activation.
Syntax ipv4-unicast IPv4 unicast address family (enabled by default)
Description ipv6-unicast IPv6 unicast address family (disabled by default)
Default N/A
Configuration
config router bgp
Mode
3.6.4070
History 3.6.4110 Added support for IPv6
3.8.1000 Updated command syntax
Example switch (config router bgp 100)# bgp default ipv4-unicast
Related
Commands
This command can be used multiple times and each address family can be
Notes
configured separately.

6
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

bgp listen limit


bgp listen limit <maximum>
no bgp listen limit

Limits the number of dynamic BGP peers allowed on the switch.


The no form of the command resets to the default value.
The maximum number of dynamic BGP peers to be allowed
Syntax
maximum on the switch
Description
Range: 1-128
Default 100
Configuration
config router bgp
Mode
History 3.4.0000
Example switch (config router bgp 100)# bgp listen limit 101
Related
Commands
Notes

7
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

bgp listen range peer-group


bgp listen range <ip-prefix> peer-group <peer-group-name> remote-as <as-
number>
no bgp listen range <ip-prefix> <length>

Identifies a range of IP addresses from which the switch will accept


incoming dynamic BGP peering requests.
After applying the no form of the command, the switch will no longer
accept dynamic peering requests on the range.
ip-address IP address
Syntax length Mask length (e.g. /24 or 255.255.255.254)
Description peer-group-name Peer group name
remote-as <as-number> Remote peer’s number
Default 100
Configuration
config router bgp
Mode
History 3.4.0000
switch (config router bgp 100)# bgp listen range 10.10.10.10
Example /24 peer-group my-group remote-as 13
Related
Commands
• To create a static peer group, use the command neighbor peer-group
• Neighbors in a dynamic peer group are configured as a group and
cannot be configured individually
• The no form of the command may take up to a few seconds to take
effect if there are many dynamic peers and/or a lot of routes. While
Notes
the clean-up process is running, creation of a new listen range that
overlaps the deleted one will fail.
• If dynamic peer range is defined with an overlap to another defined
range, the longest remote address prefix take affect

8
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

cluster-id
cluster-id <ip-address> [force]
no cluster-id <ip-address> [force]

Configures the cluster ID in a cluster with multiple route reflectors.


The no form of the command resets the cluster ID for route reflector.
The route reflector cluster ID.

ip- • 0.0.0.1 to 255.255.255.255 Valid cluster ID number


Syntax address • 0.0.0.0 removes the cluster-ID from the switch (similar
Description to “no cluster-id”)

force Applies configuration while BGP is admin-up


Default Cluster ID is the same as Router ID
Configuration
config router bgp
Mode
3.2.1000
History 3.4.0000 Updated syntax description
3.6.3004 Added “force” parameter
Example switch (config router bgp 100)# cluster-id 10.10.10.10
Related
Commands
Notes

9
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

client-to-client reflection
client-to-client reflection
no client-to-client reflection

The switch will be configured as a route reflector.


The no form of the command stops the switch from being a route
reflector
Syntax Description N/A
Default client-to-client reflection is enabled
Configuration
config router bgp
Mode
History 3.2.1000
switch (config router bgp 100)# client-to-client
Example reflection
Related Commands
Notes

10
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

distance
distance <external> <internal> <local>
no distance

Sets the administrative distance of the routes learned through BGP.


The no form of the command resets the administrative distance its default.
Administrative distance for external BGP routes
external
Range: 1-255
Syntax Administrative distance for internal BGP routes
internal
Description Range: 1-255
Administrative distance for local BGP routes
local
Range: 1-255
external: 20
Default internal: 200
local: 200
Configuration
config router bgp
Mode
History 3.3.5006
Example switch (config router bgp 100)# distance 10 20 30
Related
Commands
• Routers use administrative distances to decide on a route when two
protocols provide routing information to the same destination
• Lower distance values correspond to higher reliability
• Routes are external when learned from an external autonomous
system
• Routes are internal when learned from a peer in the local
Notes
autonomous system
• Local routes are those networks listed with a network router
configuration command, often as back doors, for the router or for
the networks being redistributed from another process
• BGP routing tables do not include routes with a distance of 255

11
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

graceful-restart stalepath-time
graceful-restart stalepath-time <interval>
no graceful-restart stalepath-time

Configures the maximum time that stale routes from a restarting BGP
neighbor are retained after a BGP session is reestablished with that
peer.
The no form of the command resets to the default value.
Time in seconds
Syntax Description interval
Range: 1-3600
Default 300 seconds
Configuration Mode config router bgp
History 3.4.0000
switch (config router bgp 100)# graceful-restart
Example stalepath-time 350
Related Commands
Note

12
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

graceful-restart helper
[neighbor {<ip-address> | <peer-group-name>}] graceful-restart helper
no [neighbor {<ip-address> | <peer-group-name>}] graceful-restart helper

Enables BGP graceful restart helper mode on the switch for all or specific
BGP neighbor.
The no form of the command disables BGP graceful restart helper mode on
the switch for all or a specific BGP neighbor.
Syntax
N/A
Description
Default Graceful restart is enabled
Configuration
config router bgp
Mode
3.4.0000
History
3.6.4070 Added support for IPv6/4 and to target a specific neighbor
Example switch (config router bgp 100)# graceful-restart helper
Related
Commands
• When graceful restart helper mode is enabled, the switch retains
routes from neighbors capable of graceful restart while those
neighbors are restarting BGP
• Individual neighbor configuration takes precedence over the global
Notes
configuration
• This parameter can only be configured when BGP is admin-down
state

13
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

maximum-paths
maximum-paths [ibgp] <maximum-path>

Configures the maximum number of parallel eBGP/iBGP routes that the


switch installs in the routing table.
ibgp Sets the configuration on the internal BGP
Syntax
Description The number of routes to install to the routing table
maximum-path
Range: 1-32
Default 1
Configuration
config router bgp
Mode
3.3.5006
History 3.3.5200 Updated description and notes
3.6.4070 Updated maximum-path range
Example switch (config router bgp 100)# maximum-paths ibgp 10
Related
Commands
• This command provides an ECMP parameter that controls the
number of equal-cost paths that the switch installs in the routing
table for each destination
• The action is effective after BGP restart
Notes • If the parameter “ibgp” is not used, the setting is applied on routes
learned from peers from other ASs
• If “ibgp” is used, the setting is applied to routes learned from peers
of the same AS

14
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor activate
neighbor <ip-address | peer-group> activate
no neighbor <ip-address | peer-group> activate
disable neighbor <ip-address | peer-group> activate

Sends advertisement for given address-family to neighbor.


The no form of the command removes the command from running-config
and enables inheritance.
The disable form of the command sets boolean value to false, and disables
inheritance.
ip-
Neighbor IP address
Syntax address
Description peer-
Peer group name
group
Default N/A
Configuration config router bgp
Mode config router bgp address-family
3.6.4070
History 3.6.4110 Added “disable” option to the command
3.6.8100 Added “config router bgp address-family” configuration mode
switch (config router bgp 100)# no neighbor 10.10.10.1
activate
Example switch (config router bgp 65001 address-family l2vpn-evpn) #
neighbor 192.168.3.2 activate
Related
Commands
There are 4 possible ways of using the “disable” prefix:

• At the beginning of the command


switch (config) # disable router bgp 65001 address-family l2vpn-
evpn neighbor 192.168.3.2 activate
• At the end of the command
switch (config) # router bgp 65001 address-family l2vpn-evpn
Notes neighbor 192.168.3.2 activate disable
• After the “router bgp *”
switch (config) # router bgp 65001 disable address-family l2vpn-
evpn neighbor 192.168.3.2 activate
• After the “router bgp * address-family l2vpn-evpn”
switch (config) # router bgp 65001 address-family l2vpn-evpn
disable neighbor 192.168.3.2 activate

15
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor advertisement-interval
neighbor {<ip-address> | <peer-group-name>} advertisement-interval
<delay>
no neighbor {<ip-address> | <peer-group-name>} advertisement-interval

Sets the minimum route advertisement interval (MRAI) between the sending
of BGP routing updates.
The no form of the command disables this function.
ipv4_addr,
A BGP peer IP address
ipv6_addr
peer-group-name Peer group name
Syntax
Description Time (in seconds) is specified by an integer
Range: 0-600; where “0” disables this function and
delay
prevents the system from inheriting this parameter’s group
configuration
Default 30 seconds
Configuration
config router bgp
Mode
3.4.0000
History
3.6.3004 Updated description of “delay” parameter
switch (config router bgp 100)# neighbor 10.10.10.10
Example advertisement-interval 100
Related
Commands
When configuring an advertisement interval to a BGP session, this interval
is implemented per prefix route of that session. For example: If a session is
configured with advertisement interval of 100 seconds, when it first learns a
Notes new route it automatically sends an update on this route. If it learns another
route in the same prefix as the initial route, it waits for 100 seconds. But if it
learns another route in a different prefix it immediately advertises that route
and does not wait another 100 seconds.

16
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor allowas-in
neighbor {<ip-address > | <peer-group-name>} allowas-in [number]
no neighbor {<ip-address > | <peer-group-name>} allowas-in

Configures the switch to permit the advertisement of prefixes containing


duplicate autonomous switch numbers (ASNs).
The no form of the command disables this function.
ip-address A BGP peer IP address
peer-group-
Peer group name
name
Syntax
Description Number of switch’s (ASN) allowed in path
Range: 0-10; where “0” disables this function and prevents
number
the system from inheriting this parameter’s group
configuration
Default N/A
Configuration
config router bgp
Mode
3.4.0000
History
3.6.3004 Updated description of “number” parameter
switch (config router bgp 100)# neighbor 10.10.10.10
Example allowas-in 2
Related ip routing
Commands router bgp <as-number>
Neighbors from the same AS as the router are considered as iBGP peers,
Notes
and neighbors from other ASs are considered eBGP peers.

17
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor default-originate
neighbor <ip-address | peer_group> default-originate [route_map_name]
no neighbor <ip-address | peer_group> default-originate
[route_map_name]
disable neighbor <ip-address | peer_group> default-originate
[route_map_name]

Enables advertisement of the default route to a specified neighbor or peer


group.
The no form of the command disables advertisement of the default route
and enables inheritance.
The disable form of the command disables advertisement of the default
route and disables inheritance.
ip-address Neighbor IPv4 address
Syntax peer_group Peer group’s name
Description Route map name that modifies default route
route_map_name
attributes
Default N/A
Configuration
config router bgp
Mode
3.6.4070
History
3.6.4110 Added “disable” option to the command
switch (config router bgp 100)# neighbor 10.10.10.1
Example default-originate default-attr
Related
Commands
Notes

18
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor description
neighbor {<ip-address> | <peer-group-name>} description <string>
no neighbor {<ip-address> | <peer-group-name>} description

Associates descriptive text with the specified peer or peer group.


The no form of the command removes the description from the peer.
ip-address IP address of the neighbor
Syntax
peer-group-name Peer group name
Description
string Free string, up to 80 characters in length
Default No description
Configuration
config router bgp
Mode
3.3.5006
History
3.6.4070 Added support for IPv6 and IPv4
switch (config router bgp 100)# neighbor 10.10.10.10
Example description The next door neighbor
Related
Commands
Notes The peer description only appears in the show commands

19
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor ebgp-multihop
neighbor {<ip-address > | <peer-group-name>} ebgp-multihop [<ttl>]
no neighbor {<ip-address > | <peer-group-name>} ebgp-multihop

Enables BGP to connect to external peers that are not directly connected to
the switch.
The no form of the command disables connecting to external peers.
ip-address IP address of the BGP-speaking neighbor
peer-group-
Peer group name
name
Syntax
Description Time-to-live
Range: 1-255 hops; where “1” disables connecting to external
ttl
peers and prevents the system from inheriting this parameter’s
group configuration
Default ttl – 1
Configuration
config router bgp
Mode
3.3.5006
History 3.3.5200 Updated Default
3.6.3004 Updated description of “ttl” parameter
switch (config router bgp 100)# neighbor 10.10.10.10 ebgp-
Example multihop 5
Related ip routing
Commands neighbor <ip-address> remote-as <as-number>
The command does not establish the multi-hop if the only route to the peer
Notes
is the default route (0.0.0.0)

20
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor export-localpref
neighbor {<ip-address> | <peer-group-name>} export-localpref <value>
no neighbor {<ip-address> | <peer-group-name>} export-localpref

Configures the local preference value sent to the specified peer or peer
group.
The no form of the command resets the local preference to its default
value.
ip-address IP address of the BGP-speaking neighbor
peer-group-
Peer group name
name
Syntax
Description Preference value
Range: 0-2147483647; where “100” configures the default,
value
and prevents the system from inheriting this parameter’s
group configuration
Default 100
Configuration
config router bgp
Mode
3.4.0000
History
3.6.3004 Updated description of “value” parameter
switch (config router bgp 100)# neighbor 10.10.10.10 export-
Example localpref 100
Related
Commands
Notes

21
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor fall-over bfd


neighbor {<ip-address> | <ip-address> | <peer-group-name>} fall-over
bfd
no neighbor {<ip-address> | <ip-address> | <peer-group-name>} fall-over
bfd

Disables BFD as a mechanism to detect failure.


The no form of the command enables BFD neighbor.
Syntax peer-group-name Peer group name
Description ip-address IP address of the neighbor
Default Enabled
Configuration
config router bgp
Mode
History 3.6.4070
Example switch (config router bgp 100)# neighbor 10.10.10.10 bfd
Related
Commands
The command “no neighbor <ip_address> fall-over bfd” affects traffic.
Notes
BGP will restore the connection based on Hello protocol.

22
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor graceful-restart helper


neighbor {<ip-address> | <peer-group-name>} graceful-restart helper
no neighbor {<ip-address> | <peer-group-name>} graceful-restart helper

Enables BGP graceful restart helper mode for the specified BGP neighbor
or peer group.
The no form of the command disables this parameter.
Syntax ip-address IP address of the BGP-speaking neighbor
Description peer-group-name Peer group name
Default Graceful restart is enabled
Configuration
config router bgp
Mode
History 3.4.0000
switch (config router bgp 100)# neighbor graceful-restart
Example helper
Related
Commands
• When graceful restart helper mode is enabled, the switch retains
routes from neighbors capable of graceful restart while those
neighbors are restarting BGP
Notes
• Individual neighbor configuration takes precedence over the global
configuration

23
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor import-localpref
neighbor {<ip-address> | <peer-group-name>} import-localpref <value>
no neighbor {<ip-address> | <peer-group-name>} import-localpref
<value>

Configures the local preference value assigned to routes received from the
specified peer or peer group.
The no form of the command resets the local preference to its default
value.
ip-address IP address of the BGP-speaking neighbor
peer-group-
Peer group name
name
Syntax
Description Preference value
Range: 0-2147483647; where “100” configures the default,
Value
and prevents the system from inheriting this parameter’s
group configuration
Default 100
Configuration
config router bgp
Mode
3.4.0000
History
3.6.3004 Updated description of “value” parameter
switch (config router bgp 100)# neighbor 10.10.10.10 import-
Example localpref 100
Related
Commands
Notes

24
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor local-as
neighbor {<ip-address> | <peer-group-name>} local-as <asn-id> [no-
prepend | replace-as]
no neighbor {<ip-address> | <peer-group-name>} local-as

Enables the modification of the AS path attribute for routes received from
an eBGP neighbor.
The no form of the command disables AS path modification for the
specified peer or peer group.
ip-address IP address of the BGP-speaking neighbor
peer-group-
Peer group name
name
AS number that is sent instead of the actual AS of the switch.
asn-id
Syntax Range: 0-4294967295
Description local-as number is not pre-pended to the routes received
no-prepend
from external neighbors
Prepends only the local autonomous system number (as
replace-as configured with the IP address argument) to the AS path
attribute
Default N/A
Configuration
config router bgp
Mode
3.4.0000
3.6.3004 Updated description of “as-id” parameter
History
3.6.4070 Added support for IPv6 and IPv4
3.6.4110 Updated command syntax
switch (config router bgp 4) # neighbor 100.100.100.100
Example local-as 123
Related ip routing
Commands neighbor <ip-address> remote-as <as-number>
• This function allows the switch to appear as a member of a
different autonomous system (AS) to external peers
Notes • To disable peering with the neighbor run the command “clear ip
bgp”

25
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor local-v6-addr
neighbor {<ip-address > | <peer-group-name>} local-v6-addr
<ipv6_local>
no neighbor {<ip-address > | <peer-group-name>} local-v6-addr

Specifies the switche’s next-hop value sent using IPv6 NLRI in IPv4
transport session.
The no form of the command removes next-hop value.
ip-address IP address of the BGP-speaking neighbor
Syntax Description peer-group-name Peer group name
ipv6_local IPv6 next hop address
Default N/A
Configuration
config router bgp
Mode
History 3.6.4070
switch (config router bgp 4) # neighbor 10.10.10.1
Example local-v6-addr 2001::2
Related Commands
Notes

26
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor maximum-prefix
neighbor {<ip-address> | <peer-group-name>} maximum-prefix
<maximum> [warning-only]
no neighbor {<ip-address> | <peer-group-name>} maximum-prefix

Configures the number of BGP routes the switch accepts from a specified
neighbor and defines an action when the limit is exceeded.
The no form of the command removes the limitation.
ip-address IP address of the BGP-speaking neighbor
peer-group-
Peer group name
name
Number of BGP routes the switch accepts from a specified
Syntax neighbor
Description maximum Range: 1-2147483647; where “12000” configures the
default, and prevents the system from inheriting this
parameter’s group configuration
warning- Only generates a warning rather than disconnecting the
only neighbor
Default 12000
Configuration
config router bgp
Mode
3.4.0000
History
3.6.3004 Updated description of “maximum” parameter
switch (config router bgp 100)# neighbor 10.10.10.10
Example maximum-prefix 12000 warning-only
Related ip routing
Commands neighbor <ip-address> remote-as <as-number>
Notes

27
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor next-hop-peer
neighbor {<ip-address> | <peer-group-name>} next-hop-peer [disable]
no neighbor {<ip-address> | <peer-group-name>} next-hop-peer

Configures the switch to list the peer address as the next hop in routes that
it receives from the specified peer BGP-speaking neighbor or members of
the specified peer group.
The no form of the command disables this function.
ip-address IP address of the neighbor
peer-group-
Syntax Peer group name
name
Description
Disables this function and prevents the system from
disable
inheriting this parameter’s group configuration
Default no next-hop-peer
Configuration
config router bgp
Mode
3.3.5006
History
3.6.3004 Added “disable” parameter
switch (config router bgp 100)# neighbor 10.10.10.10 next-
Example hop-peer
Related
Commands
This command overrides the next hop for all routes received from this
Notes
neighbor or peer group

28
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor next-hop-self
neighbor {<ip-address> | <peer-group-name>} next-hop-self [disable]
no neighbor {<ip-address> | <peer-group-name>} next-hop-self

Configures the IP address of the router as the next hop address in routes
advertises to the specific neighbor.
The no form of the command resets this parameter to its default.
ip-address IP address of the neighbor
peer-group-
Syntax Peer group name
name
Description
Disables this function and prevents the system from
Disable
inheriting this parameter’s group configuration
Default no next-hop-self
Configuration
config router bgp
Mode
3.3.5006
History
3.6.4070 Added support for IPv6
switch (config router bgp 100)# neighbor 10.10.10.10 next-
Example hop-self
Related
neighbor <ip-address> remote-as <as-number>
Commands
• This function is used in networks where BGP neighbors do not
directly access all other neighbors on the same subnet.
Notes • In the default state, the next hop is generated based on the IP
address and the present next hop in the route information.

29
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

[neighbor] next-hop-unchanged
[neighbor <ip-address | peer group>] next-hop-unchanged
no [neighbor <ip-address | peer group>] next-hop-unchanged
disable [neighbor <ip-address | peer group>] next-hop-unchanged

Enables preserving BGP next-hop when forwarding routes to this eBGP


peer or all eBGP peers in this address family.
The no form of the command removes configuration and enables
inheritance of AFI SAFI next-hop-unchanged configuration from a peer
group if this neighbor is member in one.
The disable form of the command disables preserving BGP next-hop when
forwarding routes to this eBGP peer or all eBGP peers in this address
family.
Syntax ip-address Neighbor IP address
Description peer_group Peer group name
The next-hop of a route is preserved when advertising the route to an iBGP
peer, but is updated when advertising the route to an eBGP peer. Setting
Default
this to “true” overrides this behavior and preserves the next-hop when
routes are advertised to this eBGP peer.
Configuration
config router bgp address-family
Mode
History 3.6.8100
switch (config router bgp 65001 address-family l2vpn-evpn) #
neighbor 192.168.5.2 next-hop-unchanged
Example switch (config router bgp 65001 address-family l2vpn-evpn) #
next-hop-unchanged
Related
address-family l2vpn-evpn
Commands
There are 4 possible ways of using the “disable” prefix:

• At the beginning of the command


switch (config) # disable router bgp 65001 address-family l2vpn-
evpn neighbor 192.168.3.2 next-hop-unchanged
• At the end of the command
switch (config) # router bgp 65001 address-family l2vpn-evpn
Note neighbor 192.168.3.2 next-hop-unchanged disable
• After the “router bgp *”
switch (config) # router bgp 65001 disable address-family l2vpn-
evpn neighbor 192.168.3.2 next-hop-unchanged
• After the “router bgp * address-family l2vpn-evpn”
switch (config) # router bgp 65001 address-family l2vpn-evpn
disable neighbor 192.168.3.2 next-hop-unchanged

30
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor out-delay
neighbor {<ip-address> | <peer-group-name>} out-delay <delay>
no neighbor {<ip-address> | <peer-group-name>} out-delay

Configures the period a routing update remains in the routing table


before BGP exports it to the neighbor.
The no form of the command resets the value to its default.
ip-address IP address of the neighbor
Syntax
peer-group-name Peer group name
Description
Delay Delay in seconds
Default 0 seconds
Configuration
config router bgp
Mode
History 3.3.5006
switch (config router bgp 100)# neighbor 10.10.10.10 out-
Example delay 10
Related
neighbor <ip-address> remote-as <as-number>
Commands
Notes The out-delay interval is used for bundling routing updates

31
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor password
neighbor {<ip-address> | <peer-group-name>} password [<encryption>]
<string>
no neighbor {<ip-address> | <peer-group-name>} password

Enables authentication on a TCP connection with a BGP peer.


The no form of the command resets the value to its default.
ip-address IP address of the neighbor
peer-group-name Peer group name
Possible values:
Syntax
Description • no parameter - clear text
Encryption
• 0 – clear text
• 7 – obfuscated

String Up to 8 bytes in length


Default no neighbor password
Configuration
config router bgp
Mode
History 3.4.0000
switch (config router bgp 100)# neighbor 10.10.10.10
Example password 7 admin123
Related
Commands
• Peers must use the same password to ensure communication
• “neighbor <ip-address> password 7 <password>” can only accept
data that was created using “show config”
• “show config” will never show the clear-test password, it will
always be obfuscated (and thus displayed using the 'password 7'
Note syntax).
• Router BGP neighbor password cannot be set when enabling
secure mode
• Router BGP peer-group password cannot be set when enabling
with secure mode

32
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor no-password
neighbor {<ip-address> | <peer-group-name>} no-password

Disables authentication for peer without inheritance.


ip-address IP address of the neighbor
Syntax Description
peer-group-name Peer group name
Default N/A
Configuration
config router bgp
Mode
History 3.6.3004
switch (config router bgp 100)# neighbor 10.10.10.10 no-
Example password
Related Commands neighbor password
Notes

33
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor peer-group
1. neighbor {<ip-address >} peer-group <peer-group-name>
2. neighbor {<peer-group-name>} peer-group
3. no neighbor {<ip-address >} peer-group <peer-group-name>
4. no neighbor {<peer-group-name>} peer-group

1. Assigns BGP neighbors to an existing peer group


2. Creates a peer-group
3. Unassigns a BGP neighbor from a peer-group
4. Deletes the peer-group
Syntax ip-address IP address of the neighbor
Description
peer-group-name Peer group name
Default N/A
Configuration
Mode config router bgp

3.4.0000
History 3.6.3004 Added notes
3.6.4070 Added support for IPv6 and IPv4
switch (config router bgp 100)# neighbor groupA peer-group
Example switch (config router bgp 100)# neighbor 1.2.3.4 peer-group
groupA
Related
Commands

• Once a peer group is created, the group name can be used as a


parameter in neighbor configuration commands, and the
configuration will be applied to all members of the group
• Settings applied to an individual neighbor in the peer group override
group settings
• A neighbor can only belong to one peer group, so issuing this
command for a neighbor that is already a member of another group
removes it from that group
• When a neighbor is removed from a peer group, the neighbor retains
Notes the configuration inherited from the peer group
• Router BGP peer-group password cannot be set when enabling with
secure mode
• A BGP group must be used by either a single listen range, or by a set
of neighbors sharing the same type (iBGP or eBGP)
• A group must already exist before a node is configured to use it
• Any configuration change on a group affects each of the peers
inheriting this specific parameter from the group only after
undergoing admin state toggle

34
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor remote-as
neighbor {<ip-address>} remote-as <as-number>
no neighbor {<ip-address>} remote-as <as-number>

Configures a neighbor.
The no form of the command removes the neighbor, dropping the
connection and all routes if already connected.
ipv4_addr,
IP address of the neighbor
ipv6_addr
peer-group-
Syntax Description Peer group name
name
The BGP peer as-number
as-number
Range: 1-65535
Default N/A
Configuration Mode config router bgp
3.3.5006
History
3.3.5200 Updated description and note
switch (config router bgp 100)# neighbor 10.10.10.10
Example remote-as 200
ip routing
Related Commands
router bgp <as-number>
Neighbors from the same AS as the router are considered as iBGP
Notes
peers, and neighbors from other ASs are considered eBGP peers

35
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor remove-private-as
neighbor {<ip-address> | <peer-group-name>} remove-private-as [disable]
no neighbor {<ip-address> | <peer-group-name>} remove-private-as

Removes private autonomous system numbers from outbound routing


updates for external BGP (eBGP) neighbors.
The no form of the command preserves private AS numbers for the
specified peer.
ipv4_addr,
A BGP peer IP address
ipv6_addr
peer-group-
Syntax Peer group name
name
Description
Preserves private AS numbers for the specified peer and
disable prevents the system from inheriting this parameter’s group
configuration
Default N/A
Configuration
config router bgp
Mode
3.4.0000
History
3.6.4070 Added support for IPv6 and IPv4
switch (config router bgp 100)# neighbor 10.10.10.10 remove-
Example private-as
Related ip routing
Commands router bgp <as-number>
• This can only be used with external BGP (eBGP) peers
• If the update has only private AS numbers in the AS path, BGP
removes these numbers
• If the AS path includes both private and public AS numbers, BGP
does not remove the private AS numbers. This situation is
considered a configuration error
Notes
• If the AS path contains the AS number of the eBGP neighbor, BGP
does not remove the private AS number
• If the AS path contains confederations, BGP removes the private
AS numbers only if they come after the confederation portion of
the AS path

36
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor route-map
neighbor <ip-address | peer-group-name> route-map <route-map-name> [in | out]
no neighbor <ip-address | peer-group-name> route-map <route-map-name> [in |
out]
disable neighbor <ip-address | peer-group-name> route-map <route-map-name>
[in | out]

Configures route-map export or import to the peer either for a specific address
family or for all (depending on the configuration context).
The no form of the command removes map-route configuration and enables
inheritance. The Onyx inheritance priority is as follows:
a. Peer AFI-SAFI
b. Peer
c. Peer Group AFI-SAFI
d. Peer Group
The “disable” form of the command resets the route-map configuration to the
default and disables inheritance.

ip-address IP address of the neighbor


peer-group-name Peer group name
route-map-name The name of the route-map
Syntax
• in – sets route import to the peer for this AFI/SAFI
Description
• out – sets route export to the peer for this AFI/SAFI
in | out
If no parameter is explicitly used, both in and out are
configured.
Default N/A
Configuration config router bgp
Mode config router bgp address-family
3.3.5006
3.3.5200 Updated notes and default
3.4.1100 Added “out” parameter
History
3.6.3004 Added note
3.6.4070 Added support for IPv6 and IPv4
Added “config router bgp address-family” configuration
3.6.8100
mode
switch (config router bgp 100)# neighbor 10.10.10.10 route-map
MyRouteMap in
Example switch (config router bgp 65001 address-family l2vpn-evpn) #
neighbor 192.168.3.2 route-map routeMapSample in
switch (config router bgp 100 address-family ipv4-unicast) #
neighbor 1.1.1.1 route-map sampleRoutemap in

37
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

Related neighbor <ip-address> remote-as <as-number>


Commands route-map <map-name> [deny | permit] [sequence-number]
clear ip bgp {<ip-address> | all}

• There are 3 possible ways of using the “disable” prefix:


o At the beginning of the command
switch (config) # disable router bgp 65001 address-family l2vpn-
evpn neighbor 192.168.3.2 route-map
o After the “router bgp *”
switch (config) # router bgp 65001 disable address-family l2vpn-
evpn neighbor 192.168.3.2 route-map
o After the “router bgp * address-family l2vpn-evpn”
switch (config) # router bgp 65001 address-family l2vpn-evpn
disable neighbor 192.168.3.2 route-map
Notes • When inheritance is enabled (by default or when using the no form of the
command), then if there is no peer AFI SAFI route-map configuration, then
Onyx checks whether a route-map was at the peer level or not. If yes, then
Onyx takes it. Otherwise, Onyx continues looking to the peer group AFI
SAFI, and then the peer group (if a peer is member of a peer group).
o Only one inbound route-map can be applied to a given neighbor
o If a new route-map is applied to a neighbor, it replaces the previous
route map
o Changing a route-map only takes effect on routes received or sent
after the change
o A route-map must already exist before a node is configured to use it

38
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor no-route-map
neighbor {<ip-address> | <peer-group-name>} no-route-map

Unsets route-map for neighbor and prevents the system from inheriting this
parameter’s group configuration.
ip-address IP address of the neighbor
Syntax
Description peer-group-
Peer group name
name
Default N/A
Configuration
config router bgp
Mode
History 3.6.3004
switch (config router bgp 100)# neighbor 10.10.10.10 no-route-
Example map
Related neighbor <ip-address> remote-as <as-number>
Commands route-map <map-name> [deny | permit] [sequence-number]
Notes

39
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor route-reflector-client
neighbor <ip-address | peer-group> route-reflector-client
no neighbor <ip-address | peer-group>] route-reflector-client
disable neighbor <ip-address | peer-group>] route-reflector-client

Configures a given peer to be a reflector client of this router for this address-
family.
The no form of the command removes configuration and enables inheritance
of AFI/SAFI route-reflector-client configuration from a peer group if this
neighbor is member in one.
The disable form of the command removes a given peer from being a reflector
client of this router for this AFI/SAFI and disables configuration inheritance.
ip-
Neighbor IP address
Syntax address
Description peer-
Peer group name
group
Default N/A
Configuration config router bgp
Mode config router bgp address-family
3.3.5006
3.3.5200 Updated notes and default
History 3.6.3004 Added “disable” parameter
3.6.4070 Added support for IPv6 and IPv4
3.6.8100 Added “config router bgp address-family” configuration mode
switch (config router bgp 100)# neighbor 10.10.10.10 route-
Example reflector-client
Related
Commands
There are 4 possible ways of using the “disable” prefix:

• At the beginning of the command


switch (config) # disable router bgp 65001 address-family l2vpn-evpn
neighbor 192.168.3.2 route-reflector-client
• At the end of the command
switch (config) # router bgp 65001 address-family l2vpn-evpn
Notes neighbor 192.168.3.2 route-reflector-client disable
• After the “router bgp *”
switch (config) # router bgp 65001 disable address-family l2vpn-evpn
neighbor 192.168.3.2 route-reflector-client
• After the “router bgp * address-family l2vpn-evpn”
switch (config) # router bgp 65001 address-family l2vpn-evpn disable
neighbor 192.168.3.2 route-reflector-client

40
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor send-community
neighbor <ip-address | peer group> send-community [extended]
no neighbor <ip-address | peer group> send-community [extended]
disable neighbor <ip-address | peer group> send-community [extended]

Enables sending UPDATE messages to the peer containing BGP


community attributes either for this address family or all relevant address-
families.
The no form of the command removes configuration and enables
inheritance of send-community attribute configuration.
The disable form of the command disables sending UPDATE messages
containing BGP community attributes.
ip-address Neighbor IP address
peer_group Peer group name
Syntax
Description Enables sending UPDATE messages to the peer for this
extended address family containing extended BGP community
attributes
Default Enabled
Configuration config router bgp
Mode config router bgp address-family
3.4.0000
3.6.3004 Added “disable” parameter
History 3.6.4070 Added support for IPv6 and IPv4
Added “config router bgp address-family” configuration
3.6.8100
mode
switch (config router bgp 100)# neighbor 10.10.10.10 send-
community
Example switch (config router bgp 65001 address-family l2vpn-evpn) #
neighbor 192.168.3.2 send-community
Related
Commands
There are 4 possible ways of using the “disable” prefix:

• At the beginning of the command


switch (config) # disable router bgp 65001 address-family l2vpn-
evpn neighbor 192.168.3.2 send-community
Notes • At the end of the command
switch (config) # router bgp 65001 address-family l2vpn-evpn
neighbor 192.168.3.2 send-community disable
• After the “router bgp *”
switch (config) # router bgp 65001 disable address-family l2vpn-
evpn neighbor 192.168.3.2 send-community

41
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

• After the “router bgp * address-family l2vpn-evpn”


switch (config) # router bgp 65001 address-family l2vpn-evpn
disable neighbor 192.168.3.2 send-community

neighbor shutdown
neighbor {<ip-address> | <peer-group-name>} shutdown [disable]
no neighbor {<ip-address> | <peer-group-name>} shutdown

Disables BGP neighbor gracefully.


The no form of the command enables BGP neighbor.
ip-address IP address of the neighbor
peer-group-
Syntax Peer group name
name
Description
Enables BGP neighbor and prevents the system from
disable
inheriting this parameter’s group configuration
Default Enabled
Configuration
config router bgp
Mode
3.3.5006
History
3.3.5200 Updated note
switch (config router bgp 100)# neighbor 10.10.10.10
Example shutdown
Related
Commands
• Disabling a neighbor terminates all its active sessions and removes
associated routing information
Notes • A group’s shutdown immediately impacts every peer in this
group, making them inherit this parameter

42
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor soft-reconfiguration
neighbor {<ip-address> | <peer-group-name>} soft-reconfiguration
inbound
no neighbor {<ip-address> | <peer-group-name>} soft-reconfiguration

Enables neighbor soft reconfiguration.


The no form of the command disables neighbor soft reconfiguration.
Syntax peer-group-name Peer group name
Description ip-address IP address of the neighbor
Default Enabled
Configuration
config router bgp
Mode
History 3.6.4070
switch (config router bgp 100)# neighbor 10.10.10.1 soft-
Example reconfiguration inbound
Related
Commands
Notes

43
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor soft-reconfiguration inbound


neighbor <ip-address | peer-group-name> soft-reconfiguration
inbound
no neighbor <ip-address | peer-group-name> soft-reconfiguration
inbound

Enables neighbor soft reconfiguration.


The no form of the command disables neighbor soft reconfiguration.
ip-address Neighbor IPv4 address
Syntax Description
peer-group-name Peer group name
Default N/A
Configuration Mode config router bgp
History 3.6.8100
switch (config router bgp 65001) # neighbor 192.168.3.2
Example soft-reconfiguration inbound
Related Commands
This command is mandatory to show received EVPN for this
Notes
neighbor

44
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor timers
neighbor {<ip-address> | <peer-group-name>} timers <keep-alive> <hold-
time>
no neighbor {<ip-address> | <peer-group-name>} timers

Configures the keepalive and hold times for a specified peer.


The no form of the command resets the parameters to their default values.
ip-address IP address of the neighbor
peer-group-
Peer group name
name
The period between the transmission of consecutive keep-
alive messages

• Range: 1-3600 seconds


• “0” means that keepalive is not sent and the
keep-alive
connection does not expire
• Explicitly configuring the default, “60”, prevents the
Syntax system from inheriting this parameter’s group
Description configuration

The period the switch waits for a keepalive or update message


before it disables peering

• Range: 3-7200 seconds


• “0” means that keepalive is not sent and the
hold-time
connection does not expire
• Explicitly configuring the default, “180”, prevents the
system from inheriting this parameter’s group
configuration

keep-alive – 60 seconds
Default
hold-time – 180 seconds
Configuration
config router bgp
Mode
3.3.5006
3.3.5200 Updated description
History Updated “hold-time” and “keep-alive” parameter’s syntax
3.6.3004
description
3.6.4070 Added IPv6 and IPv4 support
switch (config router bgp 100)# neighbor 10.10.10.10 timers
Example 65 195
Related
neighbor <ip-address> remote-as <as-number>
Commands

45
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

Hold time must be at least 3 seconds and should be three times longer than
Notes
the keep-alive setting.

neighbor transport connection-mode


passive
neighbor {<ip-address> | <peer-group-name>} transport connection-
mode passive [disable]
no neighbor {<ip-address> | <peer-group-name>} transport connection-
mode passive

Sets the TCP connection for the specified BGP neighbor or peer group to
passive mode.
The no form of the command sets the specified BGP neighbor or peer
group to active connection mode.
ip-address IP address of the neighbor
peer-
group- Peer group name
Syntax
name
Description
Sets the specified BGP neighbor or peer group to active
disable connection mode and prevents the system from inheriting this
parameter’s group configuration
Default TCP sessions initiated
Configuration
config router bgp
Mode
3.4.0000
History 3.6.3004 Added “disable” parameter
3.6.4070 Added IPv6 and IPv4 support
switch (config router bgp 100)# neighbor 10.10.10.10
Example transport connection-mode passive
Related
Commands
• When the peer’s transport connection mode is set to passive, it
accepts TCP connections for BGP, but does not initiate them
Notes • BGP peers in active mode can both accept and initiate TCP
connections for BGP

46
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor update-source
neighbor <ip-address> update-source {ethernet <slot/port> | loopback
<number> | port-channel <number> | vlan <vlan-id>}
no neighbor <ip-address> update-source

Configures the source-address for routing updates and to establish TCP


connections with peers.
The no form of the command disables configured source-address for
routing updates and for TCP connection establishment with a peer.
ip-address IP address of the neighbor
ethernet <slot/port> Ethernet interface
loopback <number> Loopback interface number
Syntax
Description VLAN interface
vlan <vlan-id>
Range: 1-4094
LAG interface
port-channel <number>
Range: 1-4094
Default BGP uses best local address
Configuration
config router bgp
Mode
3.3.5006
History
3.6.4070 Added IPv6 and IPv4 support
switch (config router bgp 100)# neighbor 10.10.10.2 update-
Example source vlan 10
Related
Commands
If BGP update-source on neighbor is configured, the given interface’s
primary address is used as the source address. If BGP update-source
Notes
configured on a peer group, the primary address is not guaranteed to be the
source.

47
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor no-update-source
neighbor <ip-address> no-update-source

Disables configured source-address for routing updates and for TCP


connection establishment with a peer and prevents the system from
inheriting this parameter’s group configuration.
Syntax
N/A
Description
Default BGP uses best local address
Configuration
config router bgp
Mode
History 3.6.3004
switch (config router bgp 100)# neighbor 10.10.10.2 no-
Example update-source
Related
Commands
Notes

48
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

neighbor weight
neighbor {<ip-address> | <peer-group-name>} weight <value>
no neighbor {<ip-address> | <peer-group-name>} weight

Assigns a weight attribute to paths from the specified neighbor.


The no form of the command resets to default values.
ipv4_addr,
IP address of the neighbor
ipv6_addr
peer-group-
Peer group name
name
Syntax Weight value
Description
• Range: 1-65535
value • Explicitly configuring a default value prevents the
system from inheriting this parameter’s group
configuration

Value is 32768 for router-originated paths and 0 for routes received


Default
through BGP
Configuration
config router bgp
Mode
3.4.0000
History
3.6.4070 Added IPv6 and IPv4 support
switch (config router bgp 100)# neighbor 10.10.10.10 weight
Example 100
Related
Commands
• Weight values set through route map commands have precedence
over neighbor weight command values
• Other attributes are used only when all paths to the prefix have the
same weight
• A path’s BGP weight is also configurable through route maps
Notes
• When multiple paths to a destination prefix exist, the best-path
selection algorithm prefers the path with the highest weight
• Weight is the first parameter that the BGP best-path selection
algorithm considers

49
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

Network
network <ip_prefix length> [<route-map-name>]
no network <ip_prefix length> [<route-map-name>]

Configures a route for advertisement to BGP peers.


The no form of the command removes the route from the BGP routes table,
preventing its advertisement. The route is only advertised if the router has a
gateway to the destination.
A string that specific route map is assigned to the
ip_prefix_length
network.
Syntax length /24 or 255.255.255.0 format.
Description
The name of a route-map which is used to set the
route-map-name
route’s attributes when it is advertised.

Default N/A
Configuration
config router bgp
Mode
3.3.5006

History 3.3.5200 Updated description, syntax description and notes

3.6.4070

switch (config router bgp 100)# network 10.10.10.0 /24


Example routemap
Related
Commands

• The parameters “ip-prefix” and “length” specify the route


destination
• The configuration zeros the host portion of the specified network
Notes address (e.g. 192.0.2.4/24 is stored as 192.0.2.0/24)
• Address family is identified by the network address itself and not
by the configuration command context

50
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

Redistribute
[neighbor <peer_group>] redistribute {connected | static | ospf | ospf-
internal | ospf-external} [<route-map>]
no redistribute {connected | static | ospf}

Enables redistribution of specified routes to the BGP domain.


The no form of the command disables route redistribution from the
specified source.
connected Redistributes the direct routes
Static Redistributes the user-defined (static) route
peer_group Route map name that modifies default route attributes
Syntax
Ospf Redistributes all routes learned by OSPF protocol
Description
Redistributes all OSPF-learned routes which are marked
ospf-internal
as internal
Redistributes all OSPF-learned routes which are marked
ospf-external
as external
Default No redistribution
Configuration
config router bgp
Mode
History 3.2.1000
3.6.4070

Example switch (config router bgp 100)# redistribute ospf


Related
Commands
• Multiple redistribution options can be applied
Notes • This command cannot be used with route-maps

51
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

router-id
router-id <ip-address> [force]
no router-id [force]

Configures a fixed router ID for BGP.


The no form of the command removes the fixed router ID and restores the
system default.
Syntax ip-address IP Address identified the router ID
Description force Applies configuration while BGP is admin-up
The Router ID is dynamically elected (no router-id).

• If a loopback interface is configured, the router ID is set to the IP


address of the loopback interface
• If multiple loopback interfaces are configured, the router ID is set
Default
to the IP address of the loopback interface with the highest IP
address
• If no loopback interface is configured, the router ID is set to the
highest IP address on a physical interface

Configuration
config router bgp
Mode
3.3.5006
History
3.6.3004 Added “force” parameter
Example switch (config router bgp 100)# router-id 10.10.10.10
Related
Commands
The IP address configured identifies the BGP speaker. The command
Notes
triggers an automatic notification and session reset for the BGP neighbors.

52
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

route-map
[neighbor <peer_group>] route-map <route_map_name> [{in | out}]
no [neighbor <peer_group>] route-map <route_map_name> [{in | out}]

Specifies a route map that will be applied in the given direction for
specific address family.
The no form of the command removes this configuration.
route_map_name Name of a route map to apply
Syntax Specifies in which direction the route map is applied. If
in/out
Description nothing is given, route map is applied in both directions.
peer_group Peer group name
Default N/A
Configuration
config router bgp
Mode
History 3.6.4070
Example switch (config router bgp 100)# route-map default in
Related
Commands
Notes

53
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

timers bgp
timers bgp <keep-alive> <hold>
no timers bgp

Configures the BGP keepalive and hold times.


The no form of the command resets the parameters to their default settings.
keep- Frequency with which keepalive messages are sent to its peer.
alive Range: 1-3600 seconds. 0 – no keep-alive messages are sent.
Syntax
Description Interval after not receiving a keepalive message that a peer is
hold declared dead. Range: 3-7200 seconds. 0 – peer is held
indefinitely regardless of keep-alive messages.
Keepalive time – 60 secs
Default
Hold time – 180 secs
Configuration
config router bgp
Mode
3.3.5006
History 3.3.5200 Updated syntax description, related commands and notes
3.6.3004 This command is blocked
Example switch (config router bgp 100)# timers bgp 61 181
ip routing
Related neighbor timers
Commands router bgp <as-number>
show ip bgp
• Timer settings apply to every peer connection
• The command “neighbor timers” configures the times on a
Notes specified peer connection
• Hold time should be three times longer than the keepalive setting

54
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

vni
vni <vni_value>
no vni <vni_value>

Create VNI on the router BGP.


The no form of the command deletes VNI on the router BGP.
Syntax
vni_value Range: 1-16777214
Description
Default N/A
Configuration
config router bgp address-family l2vpn-evpn
Mode
History 3.8.1000
switch (config router bgp 100 vrf default address-family
Example l2vpn-evpn) # vni 1000
Related
router bgp <as-number>
Commands
Notes This command is irrelevant when using the enabled auto-create mode.

55
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

vni rd
vni <vni_value> rd <rd>
no vni <vni_value> rd

Configure route distinguisher to VNI.


The no form of the command deletes route distinguisher configuration
vni_value Range: 1-16777214
Syntax Route distinguisher address in the format "ip:value"
Description Rd
Valid value: The valid IP and value needs to be between 0 to
65535
Default N/A
Configuration
config router bgp address-family l2vpn-evpn
Mode
History 3.8.1000
switch (config router bgp 100 vrf default address-family
Example l2vpn-evpn) # vni 1000 rd 2.3.4.5:15
Related
Vni
Commands
Notes This command is irrelevant when using the enabled auto-create mode.

56
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

vni route-target
vni <vni_value> route-target {both | import | export} <route_target>
no vni <vni_value> route-target {both | import | export}

Configure route target to VNI.


The no form of the command deletes route distinguisher configuration.
vni_value Range: 1-16777214
Several route-targets can be configured for each VNI

Valid ranges:

Syntax • for ip: value should be [0..65535]


Description route_target • for as_num: values are:
o if as_num value is less or equal to 65535: value
can be [0..4294967295]
o if as_num is more than 65535: value can be
between 0 to 65535

Default N/A
Configuration
config router bgp address-family l2vpn-evpn
Mode
History 3.8.1000
switch (config router bgp 100 vrf default address-family
Example l2vpn-evpn) # vni 1000 route-target both 1.2.3.4:15
Related
Vni
Commands
Notes This command is irrelevant when using the enabled auto-create mode.

57
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

auto-create
auto-create
no auto-create

Enables auto-create mode on router bgp.


The no form of the command disables auto-create mode on router bgp.
Syntax
N/A
Description
Default N/A
Configuration
config router bgp address-family l2vpn-evpn
Mode
History 3.8.1000
switch (config router bgp 100 vrf default address-family
Example l2vpn-evpn) # auto-create
Related
vni
Commands
Notes Upon enabling auto-create, VNI is created automatically

58
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

“Show” BGP Commands

show {ip | ipv6} bgp


show {ip | ipv6} bgp [vrf <vrf-name>] [<ipv4-prefix> <length> [detail |
longer-prefixes [detail]]]

Displays information about the BGP routes table (RIB).


ipv4_prefix,
IPv4 and IPv6 subnet
ipv6_prefix
length Netmask (e.g. /24 or 255.255.255.0)
Displays detailed information about a subset of the bgp
detail
learned routes
Syntax Displays the routes to the specified destination and any
Description routes to a more specific destination.
Example: If “10.20.30.0 /24 longer-prefixes” is run, all
longer-
routes starting with 10.20.30 regardless of the prefix length
prefixes
(10.20.30.X /24, 10.20.30.X /25, etc.) are displayed -
providing there are any such routes received/sent from/to
that neighbor.
Default N/A
Configuration
Any command mode
Mode
History 3.3.5200
3.6.4070 Added support for IPv4 and IPv6
3.6.6000 Updated Example for “detail” parameter
Updated example “show ip bgp”
3.7.1000
Updated example for “longer-prefixes” parameter
Example

switch (config) # show ip bgp 192.168.100.0 /24

BGP table version: 22


Local router ID: 192.168.100.11

Status codes:
s: suppressed
d: damped
h: history
*: valid
>: best
i: internal
r: RIB-failure
S: Stale
m: multipath

59
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

b: backup-path
x: best-external

Origin codes:
i: IGP
e: EGP
?: incomplete

-------------------------------------------------------------------------
Network Next Hop Status Metric LocPrf Weight Path
-------------------------------------------------------------------------
192.168.100.0/24 0.0.0.0 *> 0 100 32768 i
Related
Commands
• Aggregated information in the “detail” parameter (i.e. aggregator
AS, aggregator ID) is displayed only for aggregated routes.
Notes
• Generic and “Longer prefixes” examples were updated.

60
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp address-family


show ip bgp address-family [vrf <vrf-name>] {l2vpn-evpn | <ipv4-unicast
| ipv6-unicast>} [active] [detail]

Displays address-family configuration.


l2vpn-
Displays information about L2VPN-EVPN address family
evpn
Syntax Displays active neighbors in that address family (configured,
active
Description active or dynamic)
Displays detailed info about configuration and
detail
configured/active neighbors for the specified address-family
Default N/A
Configuration
Any command mode
Mode
3.6.4070
History 3.7.1000 Added “l2vpn-evpn” parameter and updated Example
3.8.1000 Added output example for an updated address family configuration

Example

Example output 1:
switch (config) # show ip bgp address-family l2vpn-evpn
Address family : L2VPN EVPN
Maximum Path : 0/0
Redistribute :
Total Neighbors : 1
Total peer-groups : 1
Total dynamic ranges : 0
Auto-Create VNI : Disable
switch (config) # show ip bgp address-family l2vpn-evpn active
Address family : L2VPN EVPN
Networks :
maximum-path : 0/0
redistribute : -
Total neighbors : 2
Total peer-groups : 0
Total dynamic ranges : 0
switch (config) # show ip bgp address-family l2vpn-evpn detail

Address family : L2VPN EVPN


Maximum Path : 0/0
Redistribute :
Total Neighbors : 1

Neighbors:
------------------------------------------------------------------------
---------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
------------------------------------------------------------------------
---------------

61
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

1.1.1.1 4 65002 0 1 6 0 0 Never


ACTIVE/0

Total peer-groups : 1
Peer Group : peer
Total dynamic ranges : 0
Auto-Create VNI : Disable
--------------------------------------------------------------------------
---------
VNI Vlan Route Distinguisher Route Target
--------------------------------------------------------------------------
---------
1000 5 1.2.3.4:3 None

Example output 2:
switch (config) # show ip bgp address-family ipv4-unicast detail
Address family : IPv4
Maximum Path : 0/0
Redistribute :
Total Neighbors: 1

Neighbors:
------------------------------------------------------------------------
---------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
------------------------------------------------------------------------
---------------
3.3.3.3 4 200 0 0 1 0 0 Never
IDLE/0

Total peer-groups : 1
Peer Group : basim_ipv4
Total dynamic ranges: 0
Address family configuration:
Next hop unchanged: Enable
Related
Commands
Notes

62
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp community


show ip bgp [vrf <vrf-name>] community <comm1> <comm2> ...
<commn> [exact] [detail]

Displays information about the BGP routes (RIB) filtered according to


communities.
Syntax Description N/A
Default N/A
Configuration
Any command mode
Mode
3.4.0000
History 3.6.4070 Added support for IPv6

Example

switch (config) # show ip bgp community 100:1


BGP table version is 8, local router ID is 3.5.7.4
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
r RIB-failure, S Stale, m multipath, b backup-path, x best-
external
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight


Path
*> 3.4.3.11/32 0.0.0.0 0 0 32768 i
*> 3.5.7.88/32 0.0.0.0 0 0 32768 i
*> 3.5.7.99/32 0.0.0.0 0 0 32768 i

switch (config) # show ip bgp community 100:1 exact


BGP table version is 8, local router ID is 3.5.7.4
Status codes: s suppressed, d damped, h history, * valid, > best, i -
internal
r RIB-failure, S Stale, m multipath, b backup-path, x best-
external
Origin codes: i - IGP, e - EGP, ? - incomplete

Network Next Hop Metric LocPrf Weight


Path
*> 3.4.3.11/32 0.0.0.0 0 0 32768 i
*> 3.5.7.99/32 0.0.0.0 0 0 32768 i

switch (config) # show ip bgp community 100:1


BGP table version is 8/20, local router ID is 3.5.7.4
Status codes: * valid, > best, i - internal, m multipath
Origin codes: i - IGP, e - EGP, ? - incomplete
Network Next Hop Metric LocPrf Weight Path
*> 2001::0/64 2001:1::1 0 0 32768 i
Related Commands show ip bgp

63
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp evpn


show ip bgp [vrf <vrf-name>] [neighbors <ip | peer-group> [received |
advertised]] evpn [route-type <type> | community {<aa:nn> |
<number>} | extcommunity route-target {<aa:id> | <aa.bb:id> | <ip:id>}
| extcommunity router-mac <mac-address> | vni <value> | rd <rd>]
[detail]

Displays BGP EVPN routes received from all neighbors in specified


VRF or the VRF currently under context.
ipv4_addr Neighbor IP address
peer_group Peer group name
Possible values: 1-5

• 1 – Ethernet Auto-discovery Route


• 2 – MAC/IP Advertisement Route
route-type
• 3 – Inclusive Multicast Ethernet Tag Route
• 4 – Ethernet Segment Route
• 5 – IP Prefix Route

<aa:nn> – community number


community
<number> – community number
Filters by route target
Syntax Description
extcommunity • <aa:id> – Route Target (asplain)
route-target • <aa.bb:id> – Route Target (asdot)
• <ip:id> – Rout Target (IP)

extcommunity
Filters by router MAC
router-mac
VNI value
Vni
Range: 1-16777215
Filters by route target

• <aa:id> – Route Target (asplain)


Rd
• <aa.bb:id> – Route Target (asdot)
• <ip:id> – Rout Target (IP)

Default N/A
Configuration
Any command mode
Mode
History 3.6.8100

64
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

Example

switch (config) # show ip bgp evpn summary


VRF name : vrf-default
BGP router identifier : 192.168.5.1
local AS number : 65001
BGP table version : 2
Main routing table version : 2
IPV4 Prefixes : 0
IPV6 Prefixes : 0
L2VPN EVPN Prefixes : 1

---------------------------------------------------------------------------
-------------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
---------------------------------------------------------------------------
-------------------
192.168.3.2 4 65002 25 29 2 0 0
0:00:11:10 ESTABLISHED/1
192.168.5.2 4 65003 24 28 2 0 0
0:00:11:17 ESTABLISHED/0
Related Commands
Notes

65
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp evpn summary


show ip bgp [vrf <vrf>] evpn summary

Displays some basic statistics about BGP per VRF only for
neighbors who support L2EVPN AF.
Syntax Description vrf Name of VRF
Default N/A
Configuration Mode Any command mode
History 3.6.8100
Example

switch (config) # show ip bgp evpn summary


VRF name : vrf-default
BGP router identifier : 192.168.5.1
local AS number : 65001
BGP table version : 2
Main routing table version : 2
IPV4 Prefixes : 0
IPV6 Prefixes : 0
L2VPN EVPN Prefixes : 1

--------------------------------------------------------------------------
--------------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ
Up/Down State/PfxRcd
--------------------------------------------------------------------------
--------------------
192.168.3.2 4 65002 25 29 2 0 0
0:00:11:10 ESTABLISHED/1
192.168.5.2 4 65003 24 28 2 0 0
0:00:11:17 ESTABLISHED/0
Related Commands
Notes

66
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp neighbors


show {<ip>} bgp neighbors [vrf <vrf-name>] [<ip-address>]

Displays summaries information about all BGP neighbors.


ip-prefix Destination to aggregate
length Mask length (e.g. /24 or 255.255.255.254)
Syntax
Description ip-address neighbor address
longer- Displays information about routes with longer prefixes
prefixes than given
Default N/A
Configuration
Mode Any command mode

History 3.3.5200
3.7.1000 Updated Example
Example

switch (config) # show ip bgp neighbors 192.168.2.2

BGP neighbor: 192.168.2.2, remote AS: 65002, link: external:


BGP version : 4
Configured hold time in seconds : 180
keepalive interval in seconds : 60
Minimum holdtime from neighbor in seconds: 90
Peer group :

Neighbor configuration:
----------------------------------------------------------------------
--
Configuration IPV4 Unicast IPV6 Unicast L2VPN
EVPN
----------------------------------------------------------------------
--
Configured AFI SAFI Enabled Disabled Enabled
Send Community Disabled Disabled Disabled
Send Extended Community Disabled Disabled Disabled
Route Reflection Disabled Disabled Disabled
Next Hop Unchanged Disabled Disabled Disabled

Neighbor capabilities:
Route Refresh : advertise and received
Soft Reconfiguration : Disabled
Graceful Restart Capability: advertise
Address family IPv4 Unicast: advertise and received
Address family IPv6 Unicast: n/a
Address family L2VPN EVPN : advertise and received
Message statistics:
InQ depth : 0
OutQ depth: 0

67
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

-------------------------------------------
Parameter Sent Rcvd
-------------------------------------------
Opens 1 1
Notification 0 0
Updates 3 2
Keepalives 12 11
Refreshes 0 0
Total 16 14

Default minimum time between advertisement runs in seconds: 30

L2VPN EVPN:
----------------------------------------------
Prefix activity Sent Rcvd
----------------------------------------------
Prefixes Current 2 2
Prefixes Total 2 2
Implicit Withdraw 0 0
Explicit Withdraw 0 0
Used as bestpath n/a 2
Used as multipath n/a n/a

--------------------------------------------------------
Local Policy Denied Prefixes Outbound Inbound
--------------------------------------------------------
Total 0 0

Connection Information:
Connections established : 4
Dropped : 1
Last Reset : 0:00:03:22
Last Drop Reason : 6 (2)
Maximum hops to external BGP neighbor: 255
Connection State : ESTABLISHED
Local host : 192.168.2.1
Local port : 179
Foreign host : 192.168.2.2
Local Port : 50394

switch (config) # show ip bgp neighbors

BGP neighbor: 192.168.2.2, remote AS: 65001, link: internal:


BGP version : 4
Configured hold time in seconds : 180
keepalive interval in seconds : 60
Minimum holdtime from neighbor in seconds: 90
Related
Commands
Notes

68
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp neighbors received


show ip bgp neighbors <ip-address> received [<ip-address> [<mask>]
[longer-prefixes]]

Displays BGP summary information.


ip-address Neighbor IP address
mask Mask length
Syntax
Description Displays the routes to the specified destination and
longer-prefixes any routes to a more specific destination (only
available if both IP and mask are specified)
Default N/A
Configuration
Any command mode
Mode
3.3.5200
History 3.7.1000 Updated Example
3.8.1000 Updated Example

Example

switch (config) # show ip bgp neighbors 192.168.3.2 received

BGP table version: 16


local router ID : 192.168.1.1

Status codes:
s: suppressed
d: damped
h: history
*: valid
>: best
i: internal
r: RIB-failure
S: Stale
m: multipath
b: backup-path
x: best-external

Origin codes:
i: IGP
e: EGP
?: incomplete

--------------------------------------------------------------------------
-------------------------
Network Next Hop Status Metric LocPrf
Weight Path
--------------------------------------------------------------------------
-------------------------
94.0.0.0/24 192.168.3.2 *> 0 100
0 100 i

69
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp neighbors received detail


show ip bgp neighbors <ip-address> [received] [<ip-address>
[<mask> [longer-prefixes]]] detail

Displays detailed information on routes received from neighbors.


Neighbor IP address. Provide optionally to display
ip-address
routes received from specified neighbor.
Mask length. Displays routes received from specified
Syntax Description mask
neighbor filtered by the specified network.
longer- Displays routes received from specified neighbor
prefixes filtered by the specified prefix and longer
Default N/A
Configuration Mode Any command mode

History 3.3.5200
3.7.1000 Updated Example
Example

switch (config)# show ip bgp 192.168.100.0 /24 longer-prefixes detail

BGP routing table entry for: 192.168.100.0/24


Version : 22
Paths : (1, best: #1)

Local Connected:
Origin : IGP
metric : 0
localpref : 100
weight : 32768
Attributes: valid, best
switch (config)# show ip bgp 192.168.100.0 /24 detail

BGP routing table entry for: 192.168.100.0/24


Version : 22
Paths : (1, best: #1)

Local connected:
0.0.0.0 from 0.0.0.0 (192.168.100.11):
Origin : IGP
metric : 0
localpref : 100
weight : 32768
Attributes: valid, sourced, best
Related Commands
Notes

70
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp paths


show ip bgp paths [vrf <vrf-name>] [ipv4 | ipv6]

Displays summary of all AS paths and for prefixes for specific


address family.
Syntax Description N/A
Default N/A
Configuration Mode Any command mode
3.3.5200
History
3.6.4070 Added support for IPv4 and IPv6
switch (config) # show ip bgp paths
Refcount Metric Path
1 0 4 50 100
1 0 2 50 100
Example 1 0 4 40
1 0 12 50 100
1 0 2
1 0 2 20
Related Commands
Notes

71
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp peer-group


show ip bgp peer-group [vrf <vrf-name>] [peer-group-name] [address-
family <ip-address>]

Displays information about peer groups and configuration, filtered per


address family.
Syntax Description peer-group-name Displays information about a specific peer-group.
Default N/A
Configuration
Any command mode
Mode
History 3.4.0000
3.6.8100 Updated Example
3.7.1000 Updated Example
Example

switch (config) # show ip bgp peer-group peerGrp1


Name : peerGrp1
Hold time : 180
Keep-alive : 60
Max prefix : 100000
Weight : 0
Export local preferences: 100
Import local preferences: 100
Status Down : no
EBGP Multihop : 1
Next Hop Self : no
Soft Reconfiguration : no
Next Hop Peer : no
Remove Private AS : no
Transport Mode : no
Password : no
Local AS : 0
No Prepend : no
Replace AS : no
Soft Reconfiguration : Disabled

------------------------------------------------------------------------
Configuration IPV4 Unicast IPV6 Unicast L2VPN EVPN
------------------------------------------------------------------------
Configured AFI SAFI Disabled Disabled Disabled
Send Community Disabled Disabled Disabled
Send Extended Community Disabled Disabled Disabled
Route Reflection Disabled Disabled Disabled
Next Hop Unchanged Disabled Disabled Disabled

--------------------------------------------------------------------------
----------------------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ
Up/Down State/PfxRcd
--------------------------------------------------------------------------
----------------------------

72
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

192.168.2.2 4 65001 355 413 7 0 0


0:00:00:26 ESTABLISHED/2
Related Commands
Notes

show ip bgp summary


show ipv6 bgp {<id> | all} summary [vrf <vrf-name>]

Displays BGP summary for IPv6 addresses.


Syntax Description N/A
Default N/A
Configuration Mode Any command mode
History 3.3.5200
3.6.4070 Added support for IPv6
Example

switch (config) # show ip bgp summary


BGP router identifier 3.5.7.4, local AS number 4
BGP table version is 70/120, main routing table version 70/96
BGP using 26308 total bytes of memory
BGP activity 37/8 IPv4 prefixes, 37/8 IPv6 prefixes, 37/4 paths
Neighbor V AS MsgRcvd MsgSent InQ OutQ Up/Down State/PfxRcd
2001::1 4 7 3 9 0 0 0:00:00:48 ESTABLISHED/total
number of prefixes
Related Commands
Notes

73
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp update-group


show ip bgp update-group [<neighbor ip address>]

Displays update-group information for all neighbors.


Syntax Description N/A
Default N/A
Configuration Mode Any command mode
History 3.6.4070
3.7.1000 Updated Example
Example

switch (config)# show ip bgp update-group 192.168.2.2

Update-group for neighbor: 192.168.2.2


BGP router identifier : 192.168.2.1
local AS number : 65001
BGP table version : 7

--------------------------------------------------------------------------
--------------------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ
Up/Down State/PfxRcd
--------------------------------------------------------------------------
--------------------------
192.168.2.2 4 65001 368 428 7 0 0
0:00:06:30 ESTABLISHED/2

r-mgtswd-270 [standalone: master] (config) # show ip bgp update-group

Update-group : 5
BGP version : 4
Address Family : IPv4 Unicast
Minimum time between advertisements runs in seconds: 30

Has 1 members:
192.168.2.2

Update-group : 6
BGP version : 4
Address Family : L2VPN EVPN
Minimum time between advertisements runs in seconds: 30

Has 1 members:
192.168.2.2
Related Commands
Notes

74
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip bgp vrf summary


show ip bgp vrf {<vrf-name> | all} summary

Displays BGP summary info for all or specified VRFs.


Syntax Description vrf-name Displays BGP summary for specified VRF
All Displays BGP summary for all VRFs
Default N/A
Configuration Mode Any command mode

History 3.6.6000
3.6.8100 Updated Example
Example

switch (config)# show ip bgp summary


VRF name : vrf-default
BGP router identifier : 1.1.1.2
local AS number : 65001
BGP table version : 3
Main routing table version : 3
IPV4 Prefixes : 0
IPV6 Prefixes : 0
L2VPN EVPN Prefixes : 2

--------------------------------------------------------------------------
------------------
Neighbor V AS MsgRcvd MsgSent TblVer InQ OutQ Up/Down
State/PfxRcd
--------------------------------------------------------------------------
------------------
1.1.1.1 4 65002 25 29 3 0 0
0:00:10:38 ESTABLISHED/2
1.1.1.5 4 100 0 0 3 0 0 Never
IDLE/0
Related Commands
Notes

75
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

ip as-path access-list
ip as-path access-list <list-name> {permit | deny} <reg-exp> [any | egp |
igp | incomplete]
no ip as-path access-list <list-name>

Creates an access list to filter BGP route updates.


The no ip as-path access-list command deletes the named access list.
list-name The name for the access list
permit Permits access for a matching condition
deny Denies access for a matching condition
Regular expression that is used to specify a pattern to match
Syntax reg-exp
against an input string
Description
any Any route type
egp External BGP routes
igp Internal BGP routes
incomplete Routes marked as “Incomplete”
Default N/A
Configuration
Config
Mode
History 3.4.0000
Example switch (config)# ip as-path access-list mylist permit
Related
Commands
If access list_name does not exist, this command creates it. If it already
Notes
exists, this command appends statements to the list.

show ip as-path access-list


show ip as-path access-list [list-name]

Presents defined as-path access lists


Syntax Description list-name Displays a specific prefix-list
Default N/A
Configuration Mode Config
History 3.4.0000
Example switch (config)# show ip as-path access-list mylist
Related Commands
Notes

76
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

ip community-list standard
ip community-list standard <list-name> {deny | permit} <list-of-
communities>
no ip community-list standard <list-name>

Adds a standard entry to a community-list.


The no form of the command deletes the specified community list.
The name for the community
list-name
list
Permits access for a matching
permit
condition
Denies access for a matching
deny
condition
List of standard communities:
Syntax Description
• <aa:nn>
• <number>
list-of-communities • internet
• local-AS
• no-advertise
• no-export

Default N/A
Configuration
config
Mode
History 3.4.0000
switch (config)# ip community-list standard mycommunity
Example permit 1:2 3:4
Related Commands
A BGP community access list filters route maps that are configured as
Notes BGP communities. The command uses regular expressions to name the
communities specified by the list.

77
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

ip community-list expanded
ip community-list expanded <list-name> {deny | permit} <reg-exp>
no ip community-list expanded <list-name>

Adds a regular expression entry to a community-list.


The no form of the command deletes the specified community list.
list-name Configures a named standard community list
permit Permits access for a matching condition
Syntax
Description deny Denies access for a matching condition
Regular expression that is used to specify a pattern to match
reg-exp
against an input string
Default N/A
Configuration
Config
Mode
History 3.4.0000
switch (config)# ip community-list expanded mycommunity
Example permit
Related
Commands
A BGP community access list filters route maps that are configured as
Notes BGP communities. The command uses regular expressions to name the
communities specified by the list.

78
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS
BGP COMMANDS – CCIE/CCNP || AUTHOR: NETWORKJOURNEY.COM || YOUTUBE.COM/C/NETWORKJOURNEY

show ip community-list
show ip community-list [community-list-name]

Displays the defined community lists.


Syntax An optional parameter to display only the
community-list-name
Description specified list
Default N/A
Configuration
config
Mode
History 3.4.0000
Example switch (config)# show ip community-list mycommunity
Related
Commands
A BGP community access list filters route maps that are configured as
Notes BGP communities. The command uses regular expressions to name the
communities specified by the list.

79
AUTHOR: HTTPS://WWW.NETWORKJOURNEY.COM/GET-FULL-COURSE-CONTENT-VIDEOS/ ||
YOUTUBE.COM/C/NETWORKJOURNEY || ADVANCE BGP CLI COMMANDS

You might also like