Hi Why bird restart all sessions when I type 'configuration soft' in birdc after add one definition of protocol bgp? CPU usage is 100%, bird console hang for 2-3mins. With version 1.6.3 bird doesn't restart all sessions. -- inż. Miłosz Oller
Hi Milosz, I am install BIRD in Linux 7.0.4 version in VM. I am running "yum install bird" command in order to install it but after running this command I am able to see "bird" file in /etc/ directory. But when I run "birdc" to get access of bird, it shows me error "such file or directory is not exists". Can you please help me here. How it will be install in Linux 7.0.4. VM. Thanks a lot.. On 16 December 2017 at 14:25, Miłosz Oller <milosz@sys-com.pl> wrote:
Hi
Why bird restart all sessions when I type 'configuration soft' in birdc after add one definition of protocol bgp? CPU usage is 100%, bird console hang for 2-3mins.
With version 1.6.3 bird doesn't restart all sessions.
-- inż. Miłosz Oller
-- Thanks & Regards Pardeep
Hi BIRD experts, Can anybody answer me about my above define issue? If it is, it will be a grateful Thanks On 16 December 2017 at 14:52, Pardeep Sharma <pardeep.sharma868@gmail.com> wrote:
Hi Milosz,
I am install BIRD in Linux 7.0.4 version in VM. I am running "yum install bird" command in order to install it but after running this command I am able to see "bird" file in /etc/ directory. But when I run "birdc" to get access of bird, it shows me error "such file or directory is not exists". Can you please help me here. How it will be install in Linux 7.0.4. VM.
Thanks a lot..
On 16 December 2017 at 14:25, Miłosz Oller <milosz@sys-com.pl> wrote:
Hi
Why bird restart all sessions when I type 'configuration soft' in birdc after add one definition of protocol bgp? CPU usage is 100%, bird console hang for 2-3mins.
With version 1.6.3 bird doesn't restart all sessions.
-- inż. Miłosz Oller
-- Thanks & Regards Pardeep
-- Thanks & Regards Pardeep
On Sat, Dec 16, 2017 at 09:55:03AM +0100, Miłosz Oller wrote:
Hi
Why bird restart all sessions when I type 'configuration soft' in birdc after add one definition of protocol bgp? CPU usage is 100%, bird console hang for 2-3mins.
With version 1.6.3 bird doesn't restart all sessions.
Hi You have two defined ipv4 channels, which is not valid: ipv4 { import all; }; ipv6 { import all; }; ipv4 { export filter ipv4_export; }; That causes BGP restarts during reconfiguration (and possibly other problems). It should be: ipv4 { import all; export filter ipv4_export; }; ipv6 { import all; }; We need to add check for this issue. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi I fix it. Please tell me how I must define ipv6 session. There must be two bgp protocols definitions? protocol bgp bgp_cloudflare_waw { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; # neighbor 2001:7f8:69::83 as 13335; # source address 2001:7f8:69::256; } How to set up this correctly? inż. Miłosz Oller W dniu 16.12.2017 o 12:26, Ondrej Zajicek pisze:
On Sat, Dec 16, 2017 at 09:55:03AM +0100, Miłosz Oller wrote:
Hi
Why bird restart all sessions when I type 'configuration soft' in birdc after add one definition of protocol bgp? CPU usage is 100%, bird console hang for 2-3mins.
With version 1.6.3 bird doesn't restart all sessions. Hi
You have two defined ipv4 channels, which is not valid:
ipv4 { import all; }; ipv6 { import all; }; ipv4 { export filter ipv4_export; };
That causes BGP restarts during reconfiguration (and possibly other problems). It should be:
ipv4 { import all; export filter ipv4_export; };
ipv6 { import all; };
We need to add check for this issue.
On Sat, Dec 16, 2017 at 04:25:50PM +0100, Miłosz Oller wrote:
Hi
I fix it. Please tell me how I must define ipv6 session. There must be two bgp protocols definitions?
Hi That depends if yo want one BGP session with both ipv4 and ipv6 AFIs, or two independent BGP sessions, each for one AFI (like it was done with old BIRD). For the first case you need just one protocol (like in your example). For the second case (which is drop-in replacement for old BIRD) you have to define two BGP protocols, each with appropriate channel and neighbor/source addresses. Case 1:
protocol bgp bgp_cloudflare_waw { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; # neighbor 2001:7f8:69::83 as 13335; # source address 2001:7f8:69::256; }
Case 2:
protocol bgp bgp_cloudflare_waw_4 { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; }
protocol bgp bgp_cloudflare_waw_6 { description "Cloudflare OpenPeering"; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 2001:7f8:69::83 as 13335; source address 2001:7f8:69::256; }
-- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
Hi How I must define bgp protocol as case 1? There can be only one source/neighbor ip. inż. Miłosz Oller W dniu 17.12.2017 o 03:26, Ondrej Zajicek pisze:
On Sat, Dec 16, 2017 at 04:25:50PM +0100, Miłosz Oller wrote:
Hi
I fix it. Please tell me how I must define ipv6 session. There must be two bgp protocols definitions? Hi
That depends if yo want one BGP session with both ipv4 and ipv6 AFIs, or two independent BGP sessions, each for one AFI (like it was done with old BIRD).
For the first case you need just one protocol (like in your example). For the second case (which is drop-in replacement for old BIRD) you have to define two BGP protocols, each with appropriate channel and neighbor/source addresses.
Case 1:
protocol bgp bgp_cloudflare_waw { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; # neighbor 2001:7f8:69::83 as 13335; # source address 2001:7f8:69::256; }
Case 2:
protocol bgp bgp_cloudflare_waw_4 { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; }
protocol bgp bgp_cloudflare_waw_6 { description "Cloudflare OpenPeering"; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 2001:7f8:69::83 as 13335; source address 2001:7f8:69::256; }
On Sun, Dec 17, 2017 at 01:41:44PM +0100, Miłosz Oller wrote:
Hi
How I must define bgp protocol as case 1?
There can be only one source/neighbor ip.
In case 1 there is only one BGP session / TCP connection and therefore one source/neighbor address.
W dniu 17.12.2017 o 03:26, Ondrej Zajicek pisze:
On Sat, Dec 16, 2017 at 04:25:50PM +0100, Miłosz Oller wrote:
Hi
I fix it. Please tell me how I must define ipv6 session. There must be two bgp protocols definitions? Hi
That depends if yo want one BGP session with both ipv4 and ipv6 AFIs, or two independent BGP sessions, each for one AFI (like it was done with old BIRD).
For the first case you need just one protocol (like in your example). For the second case (which is drop-in replacement for old BIRD) you have to define two BGP protocols, each with appropriate channel and neighbor/source addresses.
Case 1:
protocol bgp bgp_cloudflare_waw { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; # neighbor 2001:7f8:69::83 as 13335; # source address 2001:7f8:69::256; }
Case 2:
protocol bgp bgp_cloudflare_waw_4 { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; }
protocol bgp bgp_cloudflare_waw_6 { description "Cloudflare OpenPeering"; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 2001:7f8:69::83 as 13335; source address 2001:7f8:69::256; }
-- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
There is no way to setup two channels in one protocol definition? Or how can I do it? inż. Miłosz Oller W dniu 17.12.2017 o 21:55, Ondrej Zajicek pisze:
On Sun, Dec 17, 2017 at 01:41:44PM +0100, Miłosz Oller wrote:
Hi
How I must define bgp protocol as case 1?
There can be only one source/neighbor ip. In case 1 there is only one BGP session / TCP connection and therefore one source/neighbor address.
W dniu 17.12.2017 o 03:26, Ondrej Zajicek pisze:
On Sat, Dec 16, 2017 at 04:25:50PM +0100, Miłosz Oller wrote:
Hi
I fix it. Please tell me how I must define ipv6 session. There must be two bgp protocols definitions? Hi
That depends if yo want one BGP session with both ipv4 and ipv6 AFIs, or two independent BGP sessions, each for one AFI (like it was done with old BIRD).
For the first case you need just one protocol (like in your example). For the second case (which is drop-in replacement for old BIRD) you have to define two BGP protocols, each with appropriate channel and neighbor/source addresses.
Case 1:
protocol bgp bgp_cloudflare_waw { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; # neighbor 2001:7f8:69::83 as 13335; # source address 2001:7f8:69::256; } Case 2:
protocol bgp bgp_cloudflare_waw_4 { description "Cloudflare OpenPeering"; ipv4 { import all; export filter ipv4_export; }; local as 198611; neighbor 212.91.0.28 as 13335; source address 212.91.1.42; }
protocol bgp bgp_cloudflare_waw_6 { description "Cloudflare OpenPeering"; ipv6 { import all; export filter ipv6_export; }; local as 198611; neighbor 2001:7f8:69::83 as 13335; source address 2001:7f8:69::256; }
On Sun, 17 Dec 2017 23:15:05 +0100 Miłosz Oller <milosz@sys-com.pl> wrote:
There is no way to setup two channels in one protocol definition? Or how can I do it?
protocol bgp foo { local as 1; neighbor 10.0.0.1 as 2; ipv4 { export all; } ipv6 { export all; } } There's a more thorough example in doc/bird.conf.example2. Cheers, Luis Ressel
Hi Tell me please, why in one definition of protocol can be only one neighbor and can be two channels. Channel ipv4 State: UP Table: master4 Preference: 100 Input filter: ACCEPT Output filter: ipv4_export_global_retn Routes: 671182 imported, 3 exported Route change stats: received rejected filtered ignored accepted Import updates: 122129932 0 0 1 122129931 Import withdraws: 683539 0 --- 6 683533 Export updates: 116324064 108324747 7999314 --- 3 Export withdraws: 284993 --- --- --- 0 BGP Next hop: 87.245.245.107 Channel ipv6 State: DOWN Table: master6 Preference: 100 Input filter: ACCEPT Output filter: REJECT Is any way to configure two sessions in protocol? I don't see any example with two sessions, but there is next hop example. ipv6 { import all; export where source ~ [ RTS_STATIC, RTS_BGP ]; next hop address 2001:db8:1:1::1; }; inż. Miłosz Oller W dniu 18.12.2017 o 09:50, Luis Ressel pisze:
On Sun, 17 Dec 2017 23:15:05 +0100 Miłosz Oller <milosz@sys-com.pl> wrote:
There is no way to setup two channels in one protocol definition? Or how can I do it?
protocol bgp foo { local as 1; neighbor 10.0.0.1 as 2; ipv4 { export all; } ipv6 { export all; } }
There's a more thorough example in doc/bird.conf.example2.
Cheers, Luis Ressel
On Wed, Dec 20, 2017 at 03:10:06PM +0100, Miłosz Oller wrote:
Hi
Tell me please, why in one definition of protocol can be only one neighbor and can be two channels.
Because one protocol = one BGP session = one TCP connection = one neighbor IP address. But routes of multiple address families can be multiplexed in one BGP session, therefore two channels.
Is any way to configure two sessions in protocol? I don't see any example with two sessions, but there is next hop example.
No, if you want separate neighbor addresses = separate BGP sessions, then you have to define separate BGP protocols in BIRD. -- Elen sila lumenn' omentielvo Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net) "To err is human -- to blame it on a computer is even more so."
participants (5)
-
Clemens Schrimpe -
Luis Ressel -
Miłosz Oller -
Ondrej Zajicek -
Pardeep Sharma