"show route" command not using "table master" by default?
Hello, I’m running BIRD 1.4.5 on an IXP with this setup : "Route server with community based filtering and multiple RIBs" https://gitlab.labs.nic.cz/labs/bird/wikis/Route_server_with_community_based... I have noticed a strange behaviour of the "show route" command whenever I specify “table master” or not. (IP/AS have been anonymised in order to follow the example above) : root@rs2-th2:~# birdc "show route all 12.34.0.0/16 protocol R111x1" BIRD 1.4.5 ready. 12.34.0.0/16 via 10.0.0.11 on eth1 [R111x1 2015-02-16 10:43:59] * (100) [AS111i] Type: BGP unicast univ BGP.origin: IGP BGP.as_path: 111 BGP.next_hop: 10.0.0.11 BGP.med: 0 BGP.local_pref: 100 BGP.community: (0,51706) root@rs2-th2:~# birdc "show route table master all 12.34.0.0/16 protocol R111x1" BIRD 1.4.5 ready. 12.34.0.0/16 via 10.0.0.11 on eth1 [R111x1 2015-02-17 11:05:45] * (100) [AS111i] Type: BGP unicast univ BGP.origin: IGP BGP.as_path: 111 BGP.next_hop: 10.0.0.11 BGP.med: 0 BGP.local_pref: 100 BGP.community: (51706,64650) (51706,64602) (0,51706) When explicitly specifying “table master” I see communities added from filter “bgp_in_AS111”. When not specifying any table I see route from T111 (the table declared in "protocol bgp R111x1"). Actually I was expecting to have same output on both commands, as it explained in documentation : "If you want to see routes that where accepted from this router to the master routing table then type: bird> show route protocol R222x1" Does any body also noticed this behaviour? Regards, -- Arnaud Fenioux Network Engineer - FranceIX
Hi all, I was notified there was a change in 1.4.0 :
This is a change in default value of 'table' for 'show route' command, now it is inferred from the protocol or export options (when used). To restore the old behavior just add 'table master' to 'show route' when no table is specified.
And I see this is explained, after reading more carefully the documentation http://bird.network.cz/?get_doc&f=bird-4.html : "show route” : Show contents of a routing table (by default of the main one or the table attached to a respective protocol), that is routes, their metrics and (in case the all switch is given) all their attributes. May I suggest to update the documentation on gitlab ? https://gitlab.labs.nic.cz/labs/bird/wikis/Route_server_with_community_based... Arnaud
On 17 Feb 2015, at 16:35, Arnaud Fenioux <afenioux@franceix.net> wrote:
Hello,
I’m running BIRD 1.4.5 on an IXP with this setup : "Route server with community based filtering and multiple RIBs" https://gitlab.labs.nic.cz/labs/bird/wikis/Route_server_with_community_based...
I have noticed a strange behaviour of the "show route" command whenever I specify “table master” or not. (IP/AS have been anonymised in order to follow the example above) :
root@rs2-th2:~# birdc "show route all 12.34.0.0/16 protocol R111x1" BIRD 1.4.5 ready. 12.34.0.0/16 via 10.0.0.11 on eth1 [R111x1 2015-02-16 10:43:59] * (100) [AS111i] Type: BGP unicast univ BGP.origin: IGP BGP.as_path: 111 BGP.next_hop: 10.0.0.11 BGP.med: 0 BGP.local_pref: 100 BGP.community: (0,51706)
root@rs2-th2:~# birdc "show route table master all 12.34.0.0/16 protocol R111x1" BIRD 1.4.5 ready. 12.34.0.0/16 via 10.0.0.11 on eth1 [R111x1 2015-02-17 11:05:45] * (100) [AS111i] Type: BGP unicast univ BGP.origin: IGP BGP.as_path: 111 BGP.next_hop: 10.0.0.11 BGP.med: 0 BGP.local_pref: 100 BGP.community: (51706,64650) (51706,64602) (0,51706)
When explicitly specifying “table master” I see communities added from filter “bgp_in_AS111”. When not specifying any table I see route from T111 (the table declared in "protocol bgp R111x1").
Actually I was expecting to have same output on both commands, as it explained in documentation : "If you want to see routes that where accepted from this router to the master routing table then type: bird> show route protocol R222x1"
Does any body also noticed this behaviour?
Regards,
-- Arnaud Fenioux Network Engineer - FranceIX
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 18.2.2015 10:48, Arnaud Fenioux wrote:
Hi all,
I was notified there was a change in 1.4.0 :
This is a change in default value of 'table' for 'show route' command, now it is inferred from the protocol or export options (when used). To restore the old behavior just add 'table master' to 'show route' when no table is specified.
And I see this is explained, after reading more carefully the documentation http://bird.network.cz/?get_doc&f=bird-4.html : "show route” : Show contents of a routing table (by default of the main one or the table attached to a respective protocol), that is routes, their metrics and (in case the all switch is given) all their attributes.
May I suggest to update the documentation on gitlab ? https://gitlab.labs.nic.cz/labs/bird/wikis/Route_server_with_community_based...
Fixed.
Ondrej.
Arnaud
On 17 Feb 2015, at 16:35, Arnaud Fenioux <afenioux@franceix.net> wrote:
Hello,
I’m running BIRD 1.4.5 on an IXP with this setup : "Route server with community based filtering and multiple RIBs" https://gitlab.labs.nic.cz/labs/bird/wikis/Route_server_with_community_based...
I have noticed a strange behaviour of the "show route" command whenever I specify “table master” or not.
(IP/AS have been anonymised in order to follow the example above) :
root@rs2-th2:~# birdc "show route all 12.34.0.0/16 protocol R111x1" BIRD 1.4.5 ready. 12.34.0.0/16 via 10.0.0.11 on eth1 [R111x1 2015-02-16 10:43:59] * (100) [AS111i] Type: BGP unicast univ BGP.origin: IGP BGP.as_path: 111 BGP.next_hop: 10.0.0.11 BGP.med: 0 BGP.local_pref: 100 BGP.community: (0,51706)
root@rs2-th2:~# birdc "show route table master all 12.34.0.0/16 protocol R111x1" BIRD 1.4.5 ready. 12.34.0.0/16 via 10.0.0.11 on eth1 [R111x1 2015-02-17 11:05:45] * (100) [AS111i] Type: BGP unicast univ BGP.origin: IGP BGP.as_path: 111 BGP.next_hop: 10.0.0.11 BGP.med: 0 BGP.local_pref: 100 BGP.community: (51706,64650) (51706,64602) (0,51706)
When explicitly specifying “table master” I see communities added from filter “bgp_in_AS111”. When not specifying any table I see route from T111 (the table declared in "protocol bgp R111x1").
Actually I was expecting to have same output on both commands, as it explained in documentation : "If you want to see routes that where accepted from this router to the master routing table then type: bird> show route protocol R222x1"
Does any body also noticed this behaviour?
Regards,
-- Arnaud Fenioux Network Engineer - FranceIX
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBAgAGBQJU5GGNAAoJED82D4RIDoWP63oP+gJK1wp6E17gSF+kwhyfQsJp 85N9eCkitJ8MI1BGRRaeksjjg5hs1K7qdx83r8h1bM+2kc4CckgnushHwaQfl8vP RyyjfZuIQxn5i7B2ZR1rAsfd4oCwysZerkwRsiEfjqBlD9CfnxpLXmVlq73s3zUe LzEDECNn7ceUSS6aHXwi0lQdciOuMASCpNV6QtTlxcQkc7Ly8O5sjOsu21QPmK0L s8DVn/M8FsNHo8lu4GKxhtuGVBOcTBJkuVZC6ngG+hRlBBUm5gerXEkYK1A+9BLr rP4GSFOqlaVRqIwQcACWLslFIn1PpI6kHXgGkOKnWOWGu9nrgNQTaREqaLjz1bta j3MXPii39P49Kn9/UtWwtwQGWQgYs/NbJJ7ZJabEZAcUCcqpp6tGnOzO7YnopcA8 k4mN+b3BfHKbTVDLCEx6I0DVSuqGVdbc9pH47y2vMlrlwB+BYqDQ+1D4qWdpDmLb HQxEW4vSWTJFT0MZJ2delgjluXjpYcFxr3nly78w9OGo4tWCcdzJmqBX+gtxBs5M 0ZXz7pDdH0jzLVSvTkW0fyF9+qQIq8DLkFjRQQyxp+eueA+Z8cFBYQNh29so9UuW bznXz0GeDWq2DgDiVf4dbGqqS1ukMpHVAXDt716u7Xc8Cd883q5HLMQ86jIj0rj4 gGhzaCuerMAu7BpbHPD4 =5uws -----END PGP SIGNATURE-----
participants (2)
-
Arnaud Fenioux -
Ondrej Filip