BGP
General BGP Related
Section titled “General BGP Related”There are a lot of useful online BGP tools available:
For Checking BGP route, you can also use traceroute etc
traceroute -A <ip-address>mtr -z <ip-address>Some good alternative tools (Looking Glass) for traceroute or ping globally
- HE.net Looking Glass
- Packet Clearing House (PCH) Looking Glass
- Ping.SX - Misaka Network Looking Glass
BGP Software (Without Router)
Section titled “BGP Software (Without Router)”Commands
Section titled “Commands”(ToDo)
BGP With BIRD
Section titled “BGP With BIRD”Youc an check example (complicated) BIRD configeration here
Example (simple) BIRD configeration
Section titled “Example (simple) BIRD configeration”This is a simple BIRD configuration example for easy setup
router id <customer-ip-address>;
protocol kernel { scan time 60; import none; export all; # Actually insert routes into the kernel routing table persist;}
protocol device { scan time 60;}
protocol bgp <bgp_protocol-peer-asn> { local as <customer-asn>; neighbor <peer-ip-address> as <peer-asn>;
source address <customer-ip-address;
export where proto = "static_bgp"; import none; # Disable import routing table from upstream}
protocol static static_bgp { import all; route <announcing-ip-block>/<prefix-length> reject;}Useful Commands
Section titled “Useful Commands”Reload configeration
birdc configureShow status
birdc show statusbirdc show interfaces
birdc show protocolsbirdc show protocols all <bgp_protocol-peer-asn> # Check specific BGP Status in details
birdc show staticbirdc show static static_bgp # Show static BGP announcement
birdc show routebirdc show route export <bgp_protocol-peer-asn> # Show specific BGP Exported routeControl Specific Protocol
birdc reload <protocol> | "<pattern>" | all # Reload protocolbirdc restart <protocol> | "<pattern>" | all # Restart protocolbirdc disable <protocol> | "<pattern>" | all # Disable protocolAdd / Remove ROA
birdc add roa <prefix> max <num> as <num> [table <name>] # Add ROA recordbirdc delete roa <prefix> max <num> as <num> [table <name>] # Delete ROA recordBGP With FRRouting
Section titled “BGP With FRRouting”(ToDo)