Cisco IOS CLI | Cisco NX-OS CLI | |
---|---|---|
Enabling the BGP Feature |
Cisco IOS Software does not have the functionality to enable or disable BGP. | feature bgp |
---|
Configuring a BGP Instance and Router ID |
router bgp 10
bgp router-id 192.168.1.1 | router bgp 10
router-id 192.168.1.1 |
---|
Configuring a BGP Neighbor (Internal) |
router bgp 10
neighbor 192.168.2.1 remote-as 10 neighbor 192.168.2.1 update-source Loopback0 | router bgp 10
neighbor 192.168.2.1 remote-as 10 update-source loopback0 address-family ipv4 unicast |
---|
Configuring a BGP Neighbor (External) |
router bgp 10
neighbor 192.168.10.2 remote-as 11 | router bgp 10
neighbor 192.168.10.2 remote-as 11 address-family ipv4 unicast |
---|
Advertising a Network in an Address Family (IPv4) |
router bgp 10
network 159.142.1.0 mask 255.255.255.0 network 159.142.254.0 mask 255.255.255.0 neighbor 192.168.10.2 remote-as 11 | router bgp 10
address-family ipv4 unicast network 159.142.1.0/24 network 159.142.254.0/24 neighbor 192.168.10.2 remote-as 11 address-family ipv4 unicast |
---|
Configuring Neighbor Authentication (MD5) |
router bgp 10
neighbor 192.168.10.2 remote-as 11 neighbor 192.168.10.2 password cisco123 | router bgp 10
neighbor 192.168.10.2 remote-as 11 password 3 a667d47acc18ea6b address-family ipv4 unicast |
---|
Configuring an Aggregate Address (Summary-Only) |
router bgp 10
network 159.142.1.0 mask 255.255.255.0 network 159.142.254.0 mask 255.255.255.0 aggregate-address 159.142.0.0 255.255.0.0 summary-only neighbor 192.168.10.2 remote-as 11 | router bgp 10
address-family ipv4 unicast network 159.142.1.0/24 network 159.142.254.0/24 aggregate-address 159.142.0.0/16 summary-only neighbor 192.168.10.2 remote-as 11 address-family ipv4 unicast |
---|
Generating a Default Route for a Neighbor |
router bgp 10
neighbor 192.168.10.2 remote-as 11 neighbor 192.168.10.2 default-originate | router bgp 10
neighbor 192.168.10.2 remote-as 11 address-family ipv4 unicast default-originate |
---|
Verification Command Comparison
The following table compares some useful show commands for verifying and troubleshooting a BGP network configuration.
Cisco NX-OS BGP | Cisco IOS Software BGP | Command Description |
---|---|---|
show bgp convergence | - | Displays global convergence information |
show bgp process | - | Displays global BGP process information |
show bgp sessions | - | Displays information for all neighbors |
show bgp statistics | - | Displays global BGP process statistics |
- | - | - |
show ip bgp <option> | show ip bgp | Displays BGP Process and BGP table entries |
show ip bgp x.x.x.x | show ip bgp x.x.x.x | Displays a specific network in the BGP table |
show ip bgp x.x.x.x vrf | - | Displays a network in a specified VRF BGP table |
show ip bgp x.x.x.x/len | show ip bgp x.x.x.x mask | Displays a specific prefix in the BGP table |
show ip bgp x.x.x.x/len longer-prefix | show ip bgp x.x.x.x mask longer-prefix | Displays a prefix in the table with longer prefixes |
show ip bgp all | show ip bgp all | Displays the BGP table for all protocol families |
show ip bgp community <word> | show ip bgp community <#> | Displays routes with a specific regular expression |
show ip bgp community <aa:nn> | - | Displays routes with a specific community value |
show ip bgp community internet | - | Displays BGP routes advertised to the Internet |
show ip bgp community no-advertise | show ip bgp community no-advertise | Displays BGP routes not advertised to peers |
show ip bgp community no-export | show ip bgp community no-export | Displays BGP routes not exported to next AS |
show ip bgp community no-export-spoofed | - | Displays BGP routes not sent to outside local AS |
show ip bgp community-list <name> | show ip bgp community-list <name> | Displays a specific BGP community list |
show ip bgp dampening dampened-paths | show ip bgp dampening dampened-paths | Displays all Dampened paths |
show ip bgp dampening flap-statistics | show ip bgp dampening flap-statistics | Displays flap statistics for BGP routes |
show ip bgp dampening history-paths | - | Displays all history paths |
show ip bgp dampening parameters | show ip bgp dampening parameters | Displays all of the Dampening parameters |
show ip bgp extcommunity <word> | - | Displays routes with a specific regular expression for extended communities |
show ip bgp extcommunity-list <name> | - | Displays a specific BGP extended community list |
show ip bgp filter-list | show ip bgp filter-list | Displays all routes matching a specified filter list |
show ip bgp flap-statistics | - | Displays all BGP route flap statistics |
show ip bgp ipv4 multicast <option> | show ip bgp ipv4 multicast <option> | Displays BGP IPv4 multicast address families |
show ip bgp ipv4 unicast <option> | show ip bgp ipv4 unicast <option> | Displays BGP IPv4 unicast address families |
show ip bgp neighbors | show ip bgp neighbors | Displays detailed neighbor information |
show ip bgp neighbors x.x.x.x | show ip bgp neighbors x.x.x.x | Displays detailed information for a neighbor |
show ip bgp nexthop x.x.x.x | - | Displays all routes matching a specified next-hop |
show ip bgp nexthop-database | - | Displays the next-hop database |
show ip bgp paths | show ip bgp paths | Displays all BGP paths |
show ip bgp peer-policy | - | Displays BGP peer policy by specified name |
show ip bgp peer-session | - | Displays information about a peer session |
show ip bgp peer-template | show ip bgp unicast ipv4 template | Displays information about a peer template |
show ip bgp prefix-list | show ip bgp prefix-list | Displays routes matching a specified prefix-list |
show ip bgp regexp | show ip bgp regexp | Displays routes matching a regular-expression |
show ip bgp received-paths | - | Displays the paths stored for soft reconfiguration |
show ip bgp route-map | show ip bgp route-map | Displays BGP routes matching a route-map |
show ip bgp summary | show ip bgp summary | Displays a summary list of neighbors and statistics |
show ip bgp vrf | show ip bgp vpnv4 vrf | Displays information for a specified BGP VRF |
No comments:
Post a Comment