Useful Commands

BIRD

BIRD is a nice Linux program that can handle BGP. Below are some useful commands.

Show Protocols

Show a list of connected peers.

birdc show protocols

Show Peer Defaults

Shows a list of detailed information about a specific peer.

birdc show protocols all AS21738_CORE1_MCI1_TRANSIT_R1_AS21738_v4

Show Peer Route Export

birdc show route export AS21738_CORE1_MCI1_TRANSIT_R1_AS21738_v4

Debug Peer

This can be useful when you need to see what’s happening with a peer.

birdc

bird> show protocols
bird> debug AS21738_CORE1_MCI1_TRANSIT_R1_AS21738_v4 { states,filters,events,packets }
bird> echo all
bird> echo { info,warning,error }
bird> restart AS21738_CORE1_MCI1_TRANSIT_R1_AS21738_v4
bird> echo off
bird> debug AS21738_CORE1_MCI1_TRANSIT_R1_AS21738_v4 off

Show Route

birdc show route all for 2620:fe::9

Ping

ping6 -I ens18 2606:4700:4700::1111
ping6 -I ens19 2606:4700:4700::1111