Information Technology Grimoire

Version .0.0.1

IT Notes from various projects because I forget, and hopefully they help you too.

BGP Session Establishment

Flapping Routes

Key PointFurther Details
Unstable Network LinksIdentify if physical links are going up and down, causing routes to flap.
Route Dampening ConfigurationIf route dampening is configured, ensure it’s not too sensitive, causing routes to be suppressed unnecessarily.

Palo Alto Commands

CommandExplanation
show routing protocol bgp dampening-parametersViews the route dampening configuration.
`show system logs severity infomatch bgp`
show routing protocol bgp summarySummarizes BGP peer status, useful for identifying unstable connections.
show running resource-monitorMonitors resource utilization, as high CPU/memory can cause route flaps.

Cisco ASA Commands

CommandExplanation
show ip bgpDisplays the BGP table to identify flapping routes via their flap history.
show ip bgp neighbors <neighbor> advertised-routesChecks routes advertised to specific neighbors for flapping indications.
`show logginginclude BGP`
show processes cpu historyDisplays CPU utilization history to correlate with route flaps.

Fortinet Commands

CommandExplanation
diag router bgp flapping(Assuming hypothetical command) Diagnose and show flapping BGP routes.
get router info bgp neighbors detailProvides detailed neighbor information, helpful for diagnosing unstable links.
diag sniffer packet any "port 179"Captures BGP packets to analyze for irregular activity.
diag sys top-summaryShows system resource usage to identify potential causes of route flapping.

Check Point Gaia Commands

CommandExplanation
show bgp routes flapping(Assuming hypothetical command) Shows history or statistics of route flaps.
cpviewProvides a comprehensive view of system performance, including network activity.
`fw ctl zdebug dropgrep bgp`
show bgp peersLists BGP peer status, including uptime, which can indicate flapping.

Debian Commands

CommandExplanation
vtysh -c 'show ip bgp'Use to check for routes with frequent path changes indicating flapping.
vtysh -c 'show ip bgp neighbors'Displays detailed neighbor information, useful for identifying unstable links.
ip monitor linkMonitors link state changes that could cause BGP routes to flap.
vtysh -c 'show logging'Reviews BGP logs for messages related to route changes or dampening.

Suboptimal Routing

Key PointFurther Details
Improperly Configured Multi-Exit Discriminator (MED)Check MED values for correctness, ensuring they guide traffic as intended.
IGP Cost Issues Affecting BGPFor iBGP setups, ensure that the Interior Gateway Protocol (IGP) metrics are configured to support the desired path selection.

Palo Alto Commands

CommandExplanation
show routing protocol bgpDisplays BGP information including MED values.
show routing metricDisplays routing metrics, useful for examining IGP cost issues.
show routing protocol bgp pathsLists all BGP paths and their attributes, including MED for route preference analysis.
show routing protocol bgp summaryProvides a summary of BGP sessions, useful for identifying iBGP relationships and potential MED issues.

Cisco ASA Commands

CommandExplanation
show ip bgpViews BGP routes and their attributes, including MED for analyzing routing decisions.
show ip bgp summaryProvides a summary of BGP sessions and can hint at IGP cost issues affecting route selection.
show ip routeDisplays the IP routing table, helping to identify IGP cost issues.
show route-mapExamines route maps applied to BGP for custom route manipulation, including MED adjustments.

Fortinet Commands

CommandExplanation
get router info bgp routesLists BGP routes with their MED values and other path attributes.
get router info bgp summarySummarizes BGP peer status, including MED values.
diag router bgp routes detailProvides detailed information on BGP routes, including MED and other path attributes.
get router info routing-table allShows the routing table to analyze IGP metrics affecting BGP path selection.

Check Point Gaia Commands

CommandExplanation
show bgp routes attribute MED(Assuming hypothetical command) Filter routes by MED attribute to analyze routing decisions.
show route allDisplays the routing table, which can be useful for understanding IGP cost issues.
show bgp summaryProvides an overview of BGP sessions, useful for checking iBGP setups and potential MED configurations.
show bgp networkDisplays BGP advertised networks, potentially affected by suboptimal routing configurations.

Debian Commands

CommandExplanation
vtysh -c 'show ip bgp'Displays BGP routes along with their MED values for analysis.
vtysh -c 'show ip route'Shows the IP routing table to help identify any IGP cost issues that might be affecting BGP.
vtysh -c 'show bgp neighbors'Displays BGP neighbor relationships, useful for analyzing iBGP setups and MED influence.
`vtysh -c ‘show running-configinclude bgp’`

Enhanced BGP Session Establishment Checks

Key PointFurther Details
BGP Version CompatibilityEnsure that BGP versions between peers are compatible.
Session Timeout SettingsCheck session timeout settings to prevent premature session drops.
Update Source ConfigurationVerify the correct configuration of the update source to ensure reliable session establishment.

Palo Alto Commands

CommandExplanation
show routing protocol bgpChecks BGP version and session details.
show system settingsVerifies system-wide settings that might affect BGP, such as session timeouts.
show routing protocol bgp peer <peer-ip>Displays detailed information about a specific BGP peer, including update source.
show network interfaceLists network interfaces to verify update source configurations.

Cisco ASA Commands

CommandExplanation
show bgp all summaryDisplays all BGP sessions, useful for checking versions and session state.
`show runinclude timeout`
show bgp neighbors <neighbor-ip> detailProvides detailed information about BGP neighbors, including update source and version.
show interfaceVerifies interface configurations, useful for checking update source settings.

Fortinet Commands

CommandExplanation
get router info bgp summaryProvides summary information, including session states and BGP version.
get system performance statusShows system performance and might give insights into timeout settings.
get router info bgp neighborsDisplays detailed BGP neighbor information, including update sources.
diag netlink interface listLists interfaces to verify update source configurations.

Check Point Gaia Commands

CommandExplanation
show bgp summaryDisplays BGP peer summary, useful for version and session status checks.
`show configurationgrep timeout`
show bgp peer <peer-ip> detailProvides detailed information on BGP peer, including update source verification.
show interfacesDisplays interface information, helping to verify update source configurations.

Debian Commands

CommandExplanation
vtysh -c 'show bgp summary'Displays BGP session summary, including version compatibility.
grep -R "timeout" /etc/frr/Searches for timeout settings in FRR (if FRR is used instead of Quagga) configuration files.
vtysh -c 'show ip bgp neighbors <neighbor-ip>'Shows detailed neighbor information, including update source.
ip addr showLists IP addresses assigned to interfaces, useful for update source verification.

Advanced Route Advertisement Verifications

Key PointFurther Details
Outbound Route MapsConfirm that outbound route maps are correctly applied to manipulate path attributes.
Maximum Prefix LimitsCheck if maximum prefix limits are set too low, potentially blocking route advertisements.

Palo Alto Commands

CommandExplanation
show routing protocol bgp policyDisplays the applied route map policies for BGP.
show routing protocol bgp max-prefixShows the maximum prefix limits for BGP sessions.
show routing protocol bgp policy statisticsProvides statistics on route map applications, useful for verifying the effectiveness of outbound route maps.
show routing protocol bgp configDisplays the complete BGP configuration, including any route map or max prefix configurations.

Cisco ASA Commands

CommandExplanation
show route-mapDisplays route maps configured on the device.
show ip bgp summaryShows the BGP summary including maximum prefix limits.
show ip bgp neighbors <neighbor-ip> advertised-routesShows routes being advertised to a specific neighbor, useful for verifying route map impact.
show ip bgp policyDisplays the policies applied to BGP, including any filtering and modifications due to route maps.

Fortinet Commands

CommandExplanation
get router info bgp filtersDisplays the filters applied to BGP routes, which can include route maps.
diagnose router bgp summaryProvides BGP summary information, including max prefix counts.
diagnose router bgp routes export checkVerifies which routes are being exported according to current filter and route map settings.
get router info bgp neighbors <neighbor-ip> advertised-routesChecks routes advertised to a specific neighbor, useful for route map verification.

Check Point Gaia Commands

CommandExplanation
show bgp policy(Assuming hypothetical command) Shows BGP policy settings, including route maps.
show bgp summaryDisplays BGP summary, useful for checking maximum prefix limits.
show bgp config(Assuming hypothetical command) Displays the detailed BGP configuration, including route maps and prefix limits.
show bgp routes by-policy <policy-name>(Assuming hypothetical command) Filters routes by applied policy, useful for verifying route map effects.

Debian Commands

CommandExplanation
vtysh -c 'show route-map'Displays route maps used in BGP on Quagga/Zebra.
vtysh -c 'show ip bgp summary'Shows BGP session summaries, including max prefix info.
vtysh -c 'show ip bgp neighbors <neighbor-ip> advertised-routes'Views routes advertised to a specific neighbor, useful for checking route map applications.
vtysh -c 'show ip bgp policy'(Assuming hypothetical command) Displays BGP policies including route maps and filtering.

Additional Path Selection Considerations

Key PointFurther Details
Weight Attribute ConfigurationFor vendor-specific devices, check if the weight attribute is correctly applied to influence path selection.
BGP Community Tags UsageEnsure proper usage and interpretation of BGP community tags for route manipulation.

Palo Alto Commands

CommandExplanation
show routing protocol bgp path-infoDisplays detailed path information including weight and community tags.
show routing protocol bgp policyDisplays BGP policies, useful for examining how community tags are applied.
debug routing bgp update recvEnables debugging to view incoming BGP updates and their attributes, including community.
debug routing bgp update sendEnables debugging to view outgoing BGP updates and their attributes, including weight and community.

Cisco ASA Commands

CommandExplanation
show ip bgpDisplays the BGP table, showing paths with their weight and community values.
show ip bgp community <community>Filters BGP routes by community tag to analyze their usage and propagation.
`show running-configsection route-map`
show ip bgp neighbors <neighbor> advertised-routesShows routes advertised to a specific neighbor, including applied weights and communities.

Fortinet Commands

CommandExplanation
get router info bgp routesLists BGP routes, including path attributes like weight and community tags.
diagnose router bgp routes detailProvides detailed information on BGP routes, including their community values.
diagnose router bgp neighbors <neighbor> routesDisplays detailed information about routes received from a neighbor, including community tags.
get router info bgp summarySummarizes BGP session information, useful for quick checks on path attributes.

Check Point Gaia Commands

CommandExplanation
show bgp routes community <community>Filters the BGP table by community tag for troubleshooting.
show bgp routes detailDisplays detailed information of BGP routes, including their community tags and weight (if applicable).
show bgp summaryProvides a summary of BGP peers and sessions, useful for overviewing path selection settings.
show bgp policyDisplays BGP policies, including usage of community tags for route manipulation.

Debian Commands

CommandExplanation
vtysh -c 'show ip bgp'Shows the BGP table including community tags and possibly weight, if supported.
vtysh -c 'show ip bgp community <community>Displays routes with a specific BGP community tag, useful for verifying community usage.
`vtysh -c ‘show running-configinclude route-map’`
vtysh -c 'show ip bgp neighbors <neighbor> advertised-routes'Shows routes advertised to specific neighbors, including any modifications by weight or community.

Comprehensive Checks for Missing Routes

Key PointFurther Details
Orphaned Routes DetectionIdentify routes that are not properly advertised due to missing network statements or redistribution misconfigurations.
VPN Routing/Forwarding InstancesIn MPLS networks, ensure VRFs are correctly configured to advertise BGP routes.

Palo Alto Commands

CommandExplanation
show routing protocol bgp loc-ribDisplays the local BGP RIB for checking existing routes.
show routing routeLists all routes known to the device, useful for cross-referencing with BGP routes.
show network virtual-router <vr-name>Displays virtual router configuration, including associated routing instances.
debug routing bgp update recvEnables debugging to view incoming BGP updates, useful for identifying orphaned routes.

Cisco ASA Commands

CommandExplanation
show ip bgp vpnv4 allDisplays BGP VPNv4 routing table, useful for MPLS VPN route checks.
show ip bgpDisplays the global BGP routing table for checking non-VPN routes.
show route vrf <vrf-name>Displays routes within a specific VRF, useful for verifying route presence in VPN instances.
show vrf detailProvides details on configured VRFs, helping to identify potential misconfigurations.

Fortinet Commands

CommandExplanation
get router info bgp routes databaseLists all routes known to BGP, useful for finding missing routes.
get router info routing-table allShows the device’s entire routing table, including routes not installed in the BGP table.
diag vpn tunnel listLists all VPN tunnels, useful for verifying VPN configurations affecting BGP route advertisement.
get router info routing-table details <vrf-name>Displays detailed routing information for a specific VRF.

Check Point Gaia Commands

CommandExplanation
show bgp routes vpn(Assuming hypothetical command) Displays VPN routing instances in BGP.
show route allShows all routes in the routing table, useful for identifying orphaned routes.
show vrf(Assuming hypothetical command) Lists VRF configurations and their associated routes.
show bgp allProvides a comprehensive view of all BGP routes, including those within VPN instances.

Debian Commands

CommandExplanation
vtysh -c 'show ip bgp'Shows the BGP table, useful for identifying missing routes.
vtysh -c 'show ip route'Displays the entire IP routing table, helping to find routes not present in the BGP table.
vtysh -c 'show ip bgp vpnv4 all'(If using VPNv4 with FRRouting) Displays VPNv4 routes, useful for MPLS network checks.
vtysh -c 'show vrf'Lists VRFs configured on the device, including their routing information.

System Log Searches

System and application logs are crucial for diagnosing issues with BGP sessions, route advertisements, path selection, and missing routes. Below are the log locations and commands for searching through these logs for BGP-related issues across different vendors, along with suggested keywords for effective log analysis.

Palo Alto

Log LocationSearch CommandKeywords
/var/log/pan.loggrep -i "bgp|route|peer" /var/log/pan.logBGP, route, peer, flap, dampening

Cisco ASA

Log LocationSearch CommandKeywords
Syslog server / CLIshow logging | include "BGP|route|peer"BGP, route, peer, flap, dampening

Fortinet

Log LocationSearch CommandKeywords
GUI / /var/log on CLIdiag log eventlist | grep -i "bgp|route|peer"BGP, route, peer, flap, dampening

Check Point Gaia

Log LocationSearch CommandKeywords
/var/log/messagesgrep -i "bgp|route|peer" /var/log/messagesBGP, route, peer, flap, dampening

Debian (with Quagga or FRR)

Log LocationSearch CommandKeywords
Quagga: /var/log/quagga/bgpd.loggrep -i "bgp|route|peer" /var/log/quagga/bgpd.logBGP, route, peer, flap, dampening
FRR: /var/log/frr/frr.loggrep -i "bgp|route|peer" /var/log/frr/frr.logBGP, route, peer, flap, dampening

Suggested Keywords for Log Searches include BGP, route, peer, flap, dampening for a focused investigation on potential issues related to BGP operations and configurations.