Cheat Sheet - Cumulus Linux Page 2

ADVERTISEMENT

Cheat Sheet |Cumulus Linux
BGP
BGP Unnumbered
Explanation of Commands:
➤ ipv6 nd ra-interval 3
Router Advertisement interval set to 3 seconds
➤ no ipv6 nd suppress-ra
Disable Suppression of Router Advertisements
➤ router bgp 65000
Switch is running in AS 65000
➤ bgp router-id 10.2.1.10
Router ID matches loopback IP 10.2.1.10
➤ bgp default show-hostname
Hostname for troubleshooting enabled
File Location​ : /etc/quagga/Quagga.conf
➤ bgp bestpath as-path multipath-relax no-as-set
interface swp1
multipath-relax allows ECMP across multiple paths
ipv6 nd ra-interval 3
➤ bgp bestpath compare-routerid
no ipv6 nd suppress-ra
Use router-id of adjacent devices to consider routes
router bgp 65000
➤ network 10.2.1.10/32 & network 10.2.1.12/32
bgp router-id 10.2.1.10
Implicitly advertise loopback and the attached VM
bgp default show-hostname
bgp bestpath as-path multipath-relax no-as-set
➤ neighbor PEER_GROUP peer-group
bgp bestpath compare-routerid
Create peer group called PEER_GROUP
network 10.2.1.10/32
network 10.2.1.12/32
➤ neighbor PEER_GROUP remote-as external
Peers using this peer group will be in another AS (not 65000)
neighbor PEER_GROUP peer-group
neighbor PEER_GROUP remote-as external
➤ neighbor PEER_GROUP description Remote Peer
neighbor PEER_GROUP description Remote Peer
Human readable plain text description for this peer group
neighbor PEER_GROUP advertisement-interval 0
neighbor PEER_GROUP timers 1 3
➤ neighbor PEER_GROUP advertisement-interval 0
neighbor PEER_GROUP timers connect 3
Send new advertisements immediately
neighbor PEER_GROUP capability extended-nexthop
neighbor swp1 interface
➤ neighbor PEER_GROUP timers 1 3
Set keepalive timer to 1 second and hold timer to 3 seconds
neighbor swp1 remote-as external
neighbor swp1 peer-group PEER_GROUP
➤ neighbor PEER_GROUP timers connect 3
maximum-paths 64
Try to reconnect to down neighbor in 3 seconds
!
address-family ipv6
➤ neighbor PEER_GROUP capability extended-nexthop
network fd::10/128
Allows RFC5549 to work (use IPv6 link-locals for IPv4 Adjacency)
neighbor PEER_GROUP activate
neighbor swp1 peer-group PEER_GROUP
➤neighbor swp1 interface
Enable swp1 interface for BGP
exit-address-family
!
➤ neighbor swp1 remote-as external
Remote neighbor on swp1 on different AS (not 65000)
Relevant BGP IETF Info:
➤ neighbor swp1 peer-group PEER_GROUP
Use peer-group PEER_GROUP parameters for swp1 peer
https://
capability-02
➤ maximum-paths 64
If multiple paths, allow switch to use up to 64 ECMP routes
g-large-dc-02
➤ network fd::10/128
Advertise fd::10/128 into IPv6 BGP routing
BGP Configuration Guide:
➤ neighbor PEER_GROUP activate
ng+Border+Gateway+Protocol+-+BGP
Activate peer_group PEER_GROUP for IPv6
➤ neighbor swp1 peer-group PEER_GROUP
Enable swp1 for IPv6, and to use peer_group PEER_GROUP
Troubleshooting Commands:
Logging:
show ip bgp summary
show neighbor adjacency
Create Log File
switch(config)# log file /var/log/quagga/bgplog
show ip bgp
show IPv4 networks
Use Debugs
show ip bgp neighbors <swp#> advertised-routes
show IP routes advertised
switch# debug bgp neighbor-events
BGP neighbor-events debugging is on
show ipv6 bgp
Show IPv6 networks
Show ipv6 bgp neighbors <swp#> advertised-routes
show IPv6 routes advertised
By Sean Cavanaugh
v1.3 

ADVERTISEMENT

00 votes

Related Articles

Related forms

Related Categories

Parent category: Education
Go
Page of 2