6f733953a04f65d709672c34ac8bf2cd1109e72b
howto/Bird.md
| ... | ... | @@ -149,4 +149,28 @@ function is_self_net() { |
| 149 | 149 | protocol bgp <PEER_NAME> from dnpeers { |
| 150 | 150 | neighbor <PEERING_IP> as <PEER_AS>; |
| 151 | 151 | }; |
| 152 | -``` |
|
| ... | ... | \ No newline at end of file |
| 0 | +``` |
|
| 1 | + |
|
| 2 | +# Useful bird commmands |
|
| 3 | + |
|
| 4 | +bird can be remote controlled via the `birdc` command. Here is a list of useful bird commands: |
|
| 5 | + |
|
| 6 | +``` |
|
| 7 | +$ birdc |
|
| 8 | +BIRD 1.4.5 ready. |
|
| 9 | +bird> reload all # reload configuration |
|
| 10 | +kernel1: reloading |
|
| 11 | +chelnok: reloading |
|
| 12 | +hax404: reloading |
|
| 13 | +static1: reload failed |
|
| 14 | +bird> show protocols # this command shows your peering status |
|
| 15 | +name proto table state since info |
|
| 16 | +device1 Device master up 07:20:25 |
|
| 17 | +kernel1 Kernel master up 07:20:25 |
|
| 18 | +chelnok BGP master up 07:20:29 Established |
|
| 19 | +hax404 BGP master up 07:20:26 Established |
|
| 20 | +static1 Static master up 07:20:25 |
|
| 21 | +bird> show route for 172.22.141.181 # show possible routes to internal.dn42 |
|
| 22 | +172.22.141.0/24 via 172.23.67.1 on tobee [tobee 07:20:30] * (100) [AS64737i] |
|
| 23 | + via 172.23.64.1 on chelnok [chelnok 07:20:29] (100) [AS64737i] |
|
| 24 | + via 172.23.136.65 on hax404 [hax404 07:20:26] (100) [AS64737i] |