Table of Contents

Cisco BGP CLI Commands and Configuration Examples



Commands

Checking

Operation Command
check routing
C - connected
S - static
E - EIGRP
router# show ip route
With VRF
Router# show ip route vrf VRFNAME
router# show bgp all
router# show ip bgp
router# show bgp vrf XXX all summary
router# show ip bgp summary
router# show ip protocols
router# show ip bgp neighbors 10.10.10.1 advertised-routes

Operation

Operation Command
Clear BGP Pear router# clear ip bgp 10.10.10.1
Clear BGP Pear without disconnection router# clear ip bgp 10.10.10.1 soft

Configuration

Operation Command
(config)# router bgp XXXX ← as-number(1 - 65535
(config)# router bgp 65535
router(config-router)# bgp router-id auto-assign


Cisco BGP Configuration Examples

 192.168.0.0/24      192.168.1.0/24      192.168.2.0/24 
----------------[R1]----------------[R2]----------------
             .1      .1          .2      .2
           AS10                          AS20
R1(config)# router bgp 10
R1(config-router)# neighbor 192.168.1.2 remote-as 20
R1(config-router)# network 192.168.0.0  0.0.0.255
R2(config)# router bgp 20
R1(config-router)# neighbor 192.168.1.1 remote-as 20
R2(config-router)# network 192.168.2.0  0.0.0.255










Cisco IOS, NX-OS CLI Commands