OSPF socket error on "bge0" invalid argument
Dear All, I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here is my topology and BIRD configuration: router-a ------ router-b (directly connected use cat6) router-a: 10.22.40.17/30 router-b: 10.22.40.18/30 bird.conf in router-a router id 10.5.16.1; debug all; import filter ospf_in_routerb; export filter ospf_out_routerb; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; } bird.conf in routerb router id 10.5.16.2; debug all; import filter ospf_in_routera; export filter ospf_out_routera; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; } I found the following error message from bird.log: 2016-12-31 07:52:38 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:43 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:48 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:53 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:57 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:03 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:07 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:13 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:18 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:22 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:27 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:28 <ERR> ospf1: Socket error on bge0: Invalid argument Show ospf: bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 2 Number of areas: 1 Number of LSAs in DB: 260 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 25 Number of neighbors: 0 Number of adjacent neighbors: 0 Area networks: 10.22.40.16/30 Advertise bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 07:53:28 Alone Router ID: 10.8.60.1 Preference: 150 Input filter: ospf_in_routerb Output filter: ospf_out_routerb Routes: 25 imported, 259 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 25 0 0 0 25 Import withdraws: 0 0 --- 0 0 Export updates: 630587 0 630328 --- 259 Export withdraws: 22 --- --- --- 0 Why ospf neighbor can't established? I'm new to ospf and really need help. Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id
Just a guess "pointopoint" -> "pointtopoint" On Dec 30, 2016 5:04 PM, "David S." <david@zeromail.us> wrote:
Dear All,
I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here is my topology and BIRD configuration:
router-a ------ router-b (directly connected use cat6)
router-a: 10.22.40.17/30 router-b: 10.22.40.18/30
bird.conf in router-a
router id 10.5.16.1; debug all; import filter ospf_in_routerb; export filter ospf_out_routerb; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; }
bird.conf in routerb
router id 10.5.16.2; debug all; import filter ospf_in_routera; export filter ospf_out_routera; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; }
I found the following error message from bird.log:
2016-12-31 07:52:38 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:43 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:48 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:53 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:57 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:03 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:07 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:13 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:18 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:22 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:27 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:28 <ERR> ospf1: Socket error on bge0: Invalid argument
Show ospf:
bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 2 Number of areas: 1 Number of LSAs in DB: 260 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 25 Number of neighbors: 0 Number of adjacent neighbors: 0 Area networks: 10.22.40.16/30 Advertise
bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 07:53:28 Alone Router ID: 10.8.60.1 Preference: 150 Input filter: ospf_in_routerb Output filter: ospf_out_routerb Routes: 25 imported, 259 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 25 0 0 0 25 Import withdraws: 0 0 --- 0 0 Export updates: 630587 0 630328 --- 259 Export withdraws: 22 --- --- --- 0
Why ospf neighbor can't established? I'm new to ospf and really need help.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id
Hi Dave, No, the correct value is pointopoint or ptp, I have tried type ptp and broadcast but still same. The neighbor won't up. I don't know if it's a bug or not but I have tried very basic configuration from wiki page and still same. Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Sat, Dec 31, 2016 at 8:06 AM, dave seddon <dave.seddon.ca@gmail.com> wrote:
Just a guess "pointopoint" -> "pointtopoint"
On Dec 30, 2016 5:04 PM, "David S." <david@zeromail.us> wrote:
Dear All,
I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here is my topology and BIRD configuration:
router-a ------ router-b (directly connected use cat6)
router-a: 10.22.40.17/30 router-b: 10.22.40.18/30
bird.conf in router-a
router id 10.5.16.1; debug all; import filter ospf_in_routerb; export filter ospf_out_routerb; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; }
bird.conf in routerb
router id 10.5.16.2; debug all; import filter ospf_in_routera; export filter ospf_out_routera; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; }
I found the following error message from bird.log:
2016-12-31 07:52:38 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:43 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:48 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:53 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:57 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:03 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:07 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:13 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:18 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:22 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:27 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:28 <ERR> ospf1: Socket error on bge0: Invalid argument
Show ospf:
bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 2 Number of areas: 1 Number of LSAs in DB: 260 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 25 Number of neighbors: 0 Number of adjacent neighbors: 0 Area networks: 10.22.40.16/30 Advertise
bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 07:53:28 Alone Router ID: 10.8.60.1 Preference: 150 Input filter: ospf_in_routerb Output filter: ospf_out_routerb Routes: 25 imported, 259 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 25 0 0 0 25 Import withdraws: 0 0 --- 0 0 Export updates: 630587 0 630328 --- 259 Export withdraws: 22 --- --- --- 0
Why ospf neighbor can't established? I'm new to ospf and really need help.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id
Not sure what the behaviour is if you set stub and PTP, but I assume you are getting stub behaviour here. Remove stub, should work. Keenan On Dec 30, 2016, 5:11 PM, at 5:11 PM, "David S." <david@zeromail.us> wrote:
Hi Dave,
No, the correct value is pointopoint or ptp, I have tried type ptp and broadcast but still same. The neighbor won't up. I don't know if it's a bug or not but I have tried very basic configuration from wiki page and still same.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Sat, Dec 31, 2016 at 8:06 AM, dave seddon <dave.seddon.ca@gmail.com> wrote:
Just a guess "pointopoint" -> "pointtopoint"
On Dec 30, 2016 5:04 PM, "David S." <david@zeromail.us> wrote:
Dear All,
I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here is my topology and BIRD configuration:
router-a ------ router-b (directly connected use cat6)
router-a: 10.22.40.17/30 router-b: 10.22.40.18/30
bird.conf in router-a
router id 10.5.16.1; debug all; import filter ospf_in_routerb; export filter ospf_out_routerb; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; }
bird.conf in routerb
router id 10.5.16.2; debug all; import filter ospf_in_routera; export filter ospf_out_routera; tick 2; area 0 { interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; networks { 103.22.40.16/30; }; interface "*" { cost 1000; stub; }; }; }
I found the following error message from bird.log:
2016-12-31 07:52:38 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:43 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:48 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:53 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:57 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:03 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:07 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:13 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:18 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:22 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:27 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:53:28 <ERR> ospf1: Socket error on bge0: Invalid argument
Show ospf:
bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 2 Number of areas: 1 Number of LSAs in DB: 260 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 25 Number of neighbors: 0 Number of adjacent neighbors: 0 Area networks: 10.22.40.16/30 Advertise
bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 07:53:28 Alone Router ID: 10.8.60.1 Preference: 150 Input filter: ospf_in_routerb Output filter: ospf_out_routerb Routes: 25 imported, 259 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 25 0 0 0 25 Import withdraws: 0 0 --- 0 0 Export updates: 630587 0 630328 --- 259 Export withdraws: 22 --- --- --- 0
Why ospf neighbor can't established? I'm new to ospf and really need help.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id
On Sat, Dec 31, 2016 at 08:00:58AM +0700, David S. wrote:
Dear All,
I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here is my topology and BIRD configuration:
router-a ------ router-b (directly connected use cat6)
router-a: 10.22.40.17/30 router-b: 10.22.40.18/30
Hi
bird.conf in router-a
router id 10.5.16.1; debug all; import filter ospf_in_routerb; export filter ospf_out_routerb; tick 2;
Why tick 2?
area 0 { interface "bge0" { stub;
There should not be 'stub' if the interface is supposed to be active.
networks { 103.22.40.16/30; };
'networks' is irrelevant unless you have multiple areas.
interface "*" { cost 1000; stub; }; }; }
I found the following error message from bird.log:
2016-12-31 07:52:38 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:43 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:48 <ERR> ospf1: Socket error on bge0: Invalid argument
It is interesting what causes socket error if the interface is declared to be stub. -- 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 Keenan and Ondrej, I already update the configuration as your advice but the still couldn't be established, here is the new configuration: Router A protocol ospf { router id 10.8.60.1; debug all; import filter ospf_in_routerb; export filter ospf_out_routerb; area 0 { interface "bge0" { cost 5; hello 10; retransmit 2; wait 10; dead 40; type broadcast; }; interface "*" { cost 1000; stub; }; }; } Router B protocol ospf { router id 10.8.60.2; debug all; import filter ospf_in_routera; export filter ospf_in_routera; area 0 { interface "bge0" { cost 5; hello 10; retransmit 2; wait 10; dead 40; }; interface "*" { cost 1000; stub; }; }; } 2016-12-31 10:44:51 <TRACE> ospf1: HELLO packet sent via bge0 2016-12-31 10:44:51 <ERR> ospf1: Socket error on bge0: Invalid argument How to debug this instance in a deep level? Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Sat, Dec 31, 2016 at 9:19 AM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Sat, Dec 31, 2016 at 08:00:58AM +0700, David S. wrote:
Dear All,
I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here is my topology and BIRD configuration:
router-a ------ router-b (directly connected use cat6)
router-a: 10.22.40.17/30 router-b: 10.22.40.18/30
Hi
bird.conf in router-a
router id 10.5.16.1; debug all; import filter ospf_in_routerb; export filter ospf_out_routerb; tick 2;
Why tick 2?
area 0 { interface "bge0" { stub;
There should not be 'stub' if the interface is supposed to be active.
networks { 103.22.40.16/30; };
'networks' is irrelevant unless you have multiple areas.
interface "*" { cost 1000; stub; }; }; }
I found the following error message from bird.log:
2016-12-31 07:52:38 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:43 <ERR> ospf1: Socket error on bge0: Invalid argument 2016-12-31 07:52:48 <ERR> ospf1: Socket error on bge0: Invalid argument
It is interesting what causes socket error if the interface is declared to be stub.
-- 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."
On Sat, Dec 31, 2016 at 10:42:26AM +0700, David S. wrote:
Hi Keenan and Ondrej,
I already update the configuration as your advice but the still couldn't be established, here is the new configuration:
Hi You have 'type broadcast' set on router A while default is used on router B (which would be ptp for /30 network). But i am not sure if that is the only problem. You can try to run tcpdump on bge0 to see if there are Hello packets from both routers. -- 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 Ondrej, I already tried to change the configuration use broadcast on routera and routerb but still same. I use tcpdump as your advice and I can't find any ospf hello packets that sent to neighbor or router it self, here is my step: 1. on routera (10.22.40.17), do: - tcpdump -vvXn -i bge0 ip proto ospf, no result (empty). - tcpdump -vvXn -i bge0 host 10.22.40.18 and ! arp 2. on routerb (10.22.40.18), do: - tcpdump -vvXn -i bge0 ip proto ospf, no result (empty). - tcpdump -vvXn -i bge0 host 10.22.40.17 and ! arp and ! proto icmp Please see the tcpdump second test on pastebin below: http://pastebin.com/cp6PU9d9 Any other clue please let me know. Thank you.. Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Sat, Dec 31, 2016 at 5:43 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Sat, Dec 31, 2016 at 10:42:26AM +0700, David S. wrote:
Hi Keenan and Ondrej,
I already update the configuration as your advice but the still couldn't be established, here is the new configuration:
Hi
You have 'type broadcast' set on router A while default is used on router B (which would be ptp for /30 network).
But i am not sure if that is the only problem.
You can try to run tcpdump on bge0 to see if there are Hello packets from both routers.
-- 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 tried to setup new environment using FreeBSD11 amd64 on vmware and everything work without a problem, I didn't see any error or interface issue like on routera and routerb. Let's say that new router we called it routerc and routerd. I try to create ospf session between routera to routerc, routerb to routerd and the neighbor is appear, everything is normal. I don't know why but the ospf hello packets are not sent by routera to routerb or vice versa. What I have to do? Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Sat, Dec 31, 2016 at 10:05 PM, David S. <david@zeromail.us> wrote:
Hi Ondrej,
I already tried to change the configuration use broadcast on routera and routerb but still same. I use tcpdump as your advice and I can't find any ospf hello packets that sent to neighbor or router it self, here is my step:
1. on routera (10.22.40.17), do: - tcpdump -vvXn -i bge0 ip proto ospf, no result (empty). - tcpdump -vvXn -i bge0 host 10.22.40.18 and ! arp 2. on routerb (10.22.40.18), do: - tcpdump -vvXn -i bge0 ip proto ospf, no result (empty). - tcpdump -vvXn -i bge0 host 10.22.40.17 and ! arp and ! proto icmp
Please see the tcpdump second test on pastebin below:
Any other clue please let me know. Thank you..
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Sat, Dec 31, 2016 at 5:43 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Sat, Dec 31, 2016 at 10:42:26AM +0700, David S. wrote:
Hi Keenan and Ondrej,
I already update the configuration as your advice but the still couldn't be established, here is the new configuration:
Hi
You have 'type broadcast' set on router A while default is used on router B (which would be ptp for /30 network).
But i am not sure if that is the only problem.
You can try to run tcpdump on bge0 to see if there are Hello packets from both routers.
-- 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."
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote:
Hi,
I tried to setup new environment using FreeBSD11 amd64 on vmware and everything work without a problem, I didn't see any error or interface issue like on routera and routerb. Let's say that new router we called it routerc and routerd. I try to create ospf session between routera to routerc, routerb to routerd and the neighbor is appear, everything is normal. I don't know why but the ospf hello packets are not sent by routera to routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card? -- 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 Ondrej, I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet. It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11. I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp. So, it's only happen to me? :d Thanks anyway. Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote:
Hi,
I tried to setup new environment using FreeBSD11 amd64 on vmware and everything work without a problem, I didn't see any error or interface issue like on routera and routerb. Let's say that new router we called it routerc and routerd. I try to create ospf session between routera to routerc, routerb to routerd and the neighbor is appear, everything is normal. I don't know why but the ospf hello packets are not sent by routera to routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- 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, After installing a 1 server with FreeBSD11 and configure BIRD with minimum configuration I saw that error "invalid argument" for bge0 is still appear but not for igb*. This takes more than 4 days, still confusing. Does netmap cased this problem? Netmap is enabled by default on FreeBSD11 (CMIIW). Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Tue, Jan 3, 2017 at 4:53 PM, David S. <david@zeromail.us> wrote:
Hi Ondrej,
I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet.
It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11.
I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp.
So, it's only happen to me? :d
Thanks anyway.
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote:
Hi,
I tried to setup new environment using FreeBSD11 amd64 on vmware and everything work without a problem, I didn't see any error or interface issue like on routera and routerb. Let's say that new router we called it routerc and routerd. I try to create ospf session between routera to routerc, routerb to routerd and the neighbor is appear, everything is normal. I don't know why but the ospf hello packets are not sent by routera to routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- 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 David, Can you please provide us with the output of 'ifconfig bge0' from both machines? It would also be helpful to get ping router-a from router-b and vise versa. Does this work? Thank you in advance. Best, Plamen On Tue, Jan 3, 2017 at 9:43 PM, David S. <david@zeromail.us> wrote:
Hi,
After installing a 1 server with FreeBSD11 and configure BIRD with minimum configuration I saw that error "invalid argument" for bge0 is still appear but not for igb*.
This takes more than 4 days, still confusing.
Does netmap cased this problem? Netmap is enabled by default on FreeBSD11 (CMIIW).
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Tue, Jan 3, 2017 at 4:53 PM, David S. <david@zeromail.us> wrote:
Hi Ondrej,
I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet.
It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11.
I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp.
So, it's only happen to me? :d
Thanks anyway.
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote:
Hi,
I tried to setup new environment using FreeBSD11 amd64 on vmware and everything work without a problem, I didn't see any error or interface issue like on routera and routerb. Let's say that new router we called it routerc and routerd. I try to create ospf session between routera to routerc, routerb to routerd and the neighbor is appear, everything is normal. I don't know why but the ospf hello packets are not sent by routera to routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- 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 Plamen, Here is the ifconfig for bge0 both on routera and routerb #routera bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE> ether 1c:98:ec:13:5e:60 inet 10.22.40.17 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:5e60%bge0 prefixlen 64 scopeid 0x5 inet6 2400:6:: prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active #routerb bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE> ether 1c:98:ec:13:4e:f0 inet 10.22.40.18 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:4ef0%bge0 prefixlen 64 scopeid 0x7 inet6 2402:6980::1 prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active #ping from routera to routerb root@:~ # ping -S 10.22.40.17 10.22.40.18 PING 10.22.40.18 (10.22.40.18) from 10.22.40.17: 56 data bytes 64 bytes from 10.22.40.18: icmp_seq=0 ttl=64 time=0.215 ms 64 bytes from 10.22.40.18: icmp_seq=1 ttl=64 time=0.328 ms 64 bytes from 10.22.40.18: icmp_seq=2 ttl=64 time=0.274 ms 64 bytes from 10.22.40.18: icmp_seq=3 ttl=64 time=0.174 ms 64 bytes from 10.22.40.18: icmp_seq=4 ttl=64 time=0.346 ms --- 10.22.40.18 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.174/0.267/0.346/0.065 ms #from routerb to routera # ping -S 10.22.40.18 10.22.40.17 PING 10.22.40.17 (10.22.40.17) from 10.22.40.18: 56 data bytes 64 bytes from 10.22.40.17: icmp_seq=0 ttl=64 time=0.145 ms 64 bytes from 10.22.40.17: icmp_seq=1 ttl=64 time=0.149 ms 64 bytes from 10.22.40.17: icmp_seq=2 ttl=64 time=0.141 ms 64 bytes from 10.22.40.17: icmp_seq=3 ttl=64 time=0.207 ms 64 bytes from 10.22.40.17: icmp_seq=4 ttl=64 time=0.165 ms --- 10.22.40.17 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.141/0.161/0.207/0.024 ms I don't know why routera couldn't sent ospf hello packets to routerb vice versa. You can find on my previous post (pastebin) for the tcpdump resulst. Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Thu, Jan 5, 2017 at 7:00 PM, Plamen Stoev <plamen.stoev@profitbricks.com> wrote:
Hi David,
Can you please provide us with the output of 'ifconfig bge0' from both machines?
It would also be helpful to get ping router-a from router-b and vise versa. Does this work?
Thank you in advance.
Best, Plamen
On Tue, Jan 3, 2017 at 9:43 PM, David S. <david@zeromail.us> wrote:
Hi,
After installing a 1 server with FreeBSD11 and configure BIRD with minimum configuration I saw that error "invalid argument" for bge0 is still appear but not for igb*.
This takes more than 4 days, still confusing.
Does netmap cased this problem? Netmap is enabled by default on FreeBSD11 (CMIIW).
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Tue, Jan 3, 2017 at 4:53 PM, David S. <david@zeromail.us> wrote:
Hi Ondrej,
I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet.
It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11.
I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp.
So, it's only happen to me? :d
Thanks anyway.
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote:
Hi,
I tried to setup new environment using FreeBSD11 amd64 on vmware and everything work without a problem, I didn't see any error or interface issue like on routera and routerb. Let's say that new router we called it routerc and routerd. I try to create ospf session between routera to routerc, routerb to routerd and the neighbor is appear, everything is normal. I don't know why but the ospf hello packets are not sent by routera to routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- 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 David, It turned out you have 25 ospf interfaces but I'm guessing the bge0 is out of the applied running configuration. Did you dry to comment out that part of your config? interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; }; Please give it a try and let us know if this will help so far to establish the adjacency? It would be great to provide us with the output of birdc show ospf interface. Thanks, Plamen On Thu, Jan 5, 2017 at 5:13 PM, David S. <david@zeromail.us> wrote:
Hi Plamen,
Here is the ifconfig for bge0 both on routera and routerb
#routera bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_ HWCSUM,LINKSTATE> ether 1c:98:ec:13:5e:60 inet 10.22.40.17 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:5e60%bge0 prefixlen 64 scopeid 0x5 inet6 2400:6:: prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#routerb bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_ HWCSUM,LINKSTATE> ether 1c:98:ec:13:4e:f0 inet 10.22.40.18 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:4ef0%bge0 prefixlen 64 scopeid 0x7 inet6 2402:6980::1 prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#ping from routera to routerb root@:~ # ping -S 10.22.40.17 10.22.40.18 PING 10.22.40.18 (10.22.40.18) from 10.22.40.17: 56 data bytes 64 bytes from 10.22.40.18: icmp_seq=0 ttl=64 time=0.215 ms 64 bytes from 10.22.40.18: icmp_seq=1 ttl=64 time=0.328 ms 64 bytes from 10.22.40.18: icmp_seq=2 ttl=64 time=0.274 ms 64 bytes from 10.22.40.18: icmp_seq=3 ttl=64 time=0.174 ms 64 bytes from 10.22.40.18: icmp_seq=4 ttl=64 time=0.346 ms
--- 10.22.40.18 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.174/0.267/0.346/0.065 ms
#from routerb to routera # ping -S 10.22.40.18 10.22.40.17 PING 10.22.40.17 (10.22.40.17) from 10.22.40.18: 56 data bytes 64 bytes from 10.22.40.17: icmp_seq=0 ttl=64 time=0.145 ms 64 bytes from 10.22.40.17: icmp_seq=1 ttl=64 time=0.149 ms 64 bytes from 10.22.40.17: icmp_seq=2 ttl=64 time=0.141 ms 64 bytes from 10.22.40.17: icmp_seq=3 ttl=64 time=0.207 ms 64 bytes from 10.22.40.17: icmp_seq=4 ttl=64 time=0.165 ms
--- 10.22.40.17 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.141/0.161/0.207/0.024 ms
I don't know why routera couldn't sent ospf hello packets to routerb vice versa. You can find on my previous post (pastebin) for the tcpdump resulst.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Thu, Jan 5, 2017 at 7:00 PM, Plamen Stoev < plamen.stoev@profitbricks.com> wrote:
Hi David,
Can you please provide us with the output of 'ifconfig bge0' from both machines?
It would also be helpful to get ping router-a from router-b and vise versa. Does this work?
Thank you in advance.
Best, Plamen
On Tue, Jan 3, 2017 at 9:43 PM, David S. <david@zeromail.us> wrote:
Hi,
After installing a 1 server with FreeBSD11 and configure BIRD with minimum configuration I saw that error "invalid argument" for bge0 is still appear but not for igb*.
This takes more than 4 days, still confusing.
Does netmap cased this problem? Netmap is enabled by default on FreeBSD11 (CMIIW).
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Tue, Jan 3, 2017 at 4:53 PM, David S. <david@zeromail.us> wrote:
Hi Ondrej,
I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet.
It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11.
I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp.
So, it's only happen to me? :d
Thanks anyway.
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote:
Hi,
I tried to setup new environment using FreeBSD11 amd64 on vmware and everything work without a problem, I didn't see any error or interface issue like on routera and routerb. Let's say that new router we called it routerc and routerd. I try to create ospf session between routera to routerc, routerb to routerd and the neighbor is appear, everything is normal. I don't know why but the ospf hello packets are not sent by routera to routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- 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 Plamen, Here is my current ospf configuration both on routera and routerb: protocol ospf { import none; export none; area 0 { interface "bge0" { stub; cost 5; type pointopoint; #hello 5; #retransmit 2; #wait 10; #dead 20; }; interface "*" { cost 1000; stub; }; }; } Here is ospf status print: #routera bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 14:30:00 Alone Preference: 150 Input filter: REJECT Output filter: REJECT Routes: 0 imported, 0 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 28 0 28 0 0 Import withdraws: 2 0 --- 30 0 Export updates: 639949 0 639949 --- 0 Export withdraws: 263 --- --- --- 0 bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 1 Number of areas: 1 Number of LSAs in DB: 1 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 26 Number of neighbors: 0 Number of adjacent neighbors: 0 bird> show ospf interface "bge0" ospf1: Interface bge0 (10.22.40.16/30) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) Priority: 1 Cost: 5 Hello timer: 10 Wait timer: 40 Dead timer: 40 Retransmit timer: 5 #routerb bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 14:33:06 Alone Preference: 150 Input filter: REJECT Output filter: REJECT Routes: 0 imported, 0 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 29 0 29 0 0 Import withdraws: 0 0 --- 29 0 Export updates: 644034 0 644034 --- 0 Export withdraws: 300 --- --- --- 0 bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 1 Number of areas: 1 Number of LSAs in DB: 1 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 29 Number of neighbors: 0 Number of adjacent neighbors: 0 bird> show ospf interface "bge0" ospf1: Interface bge0 (10.22.40.16/30) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) Priority: 1 Cost: 5 Hello timer: 10 Wait timer: 40 Dead timer: 40 Retransmit timer: 5 If you have any suggestion please let me know. Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Fri, Jan 6, 2017 at 6:11 PM, Plamen Stoev <plamen.stoev@profitbricks.com> wrote:
Hi David,
It turned out you have 25 ospf interfaces but I'm guessing the bge0 is out of the applied running configuration.
Did you dry to comment out that part of your config?
interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; };
Please give it a try and let us know if this will help so far to establish the adjacency?
It would be great to provide us with the output of birdc show ospf interface.
Thanks, Plamen
On Thu, Jan 5, 2017 at 5:13 PM, David S. <david@zeromail.us> wrote:
Hi Plamen,
Here is the ifconfig for bge0 both on routera and routerb
#routera bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWC SUM,LINKSTATE> ether 1c:98:ec:13:5e:60 inet 10.22.40.17 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:5e60%bge0 prefixlen 64 scopeid 0x5 inet6 2400:6:: prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#routerb bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWC SUM,LINKSTATE> ether 1c:98:ec:13:4e:f0 inet 10.22.40.18 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:4ef0%bge0 prefixlen 64 scopeid 0x7 inet6 2402:6980::1 prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#ping from routera to routerb root@:~ # ping -S 10.22.40.17 10.22.40.18 PING 10.22.40.18 (10.22.40.18) from 10.22.40.17: 56 data bytes 64 bytes from 10.22.40.18: icmp_seq=0 ttl=64 time=0.215 ms 64 bytes from 10.22.40.18: icmp_seq=1 ttl=64 time=0.328 ms 64 bytes from 10.22.40.18: icmp_seq=2 ttl=64 time=0.274 ms 64 bytes from 10.22.40.18: icmp_seq=3 ttl=64 time=0.174 ms 64 bytes from 10.22.40.18: icmp_seq=4 ttl=64 time=0.346 ms
--- 10.22.40.18 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.174/0.267/0.346/0.065 ms
#from routerb to routera # ping -S 10.22.40.18 10.22.40.17 PING 10.22.40.17 (10.22.40.17) from 10.22.40.18: 56 data bytes 64 bytes from 10.22.40.17: icmp_seq=0 ttl=64 time=0.145 ms 64 bytes from 10.22.40.17: icmp_seq=1 ttl=64 time=0.149 ms 64 bytes from 10.22.40.17: icmp_seq=2 ttl=64 time=0.141 ms 64 bytes from 10.22.40.17: icmp_seq=3 ttl=64 time=0.207 ms 64 bytes from 10.22.40.17: icmp_seq=4 ttl=64 time=0.165 ms
--- 10.22.40.17 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.141/0.161/0.207/0.024 ms
I don't know why routera couldn't sent ospf hello packets to routerb vice versa. You can find on my previous post (pastebin) for the tcpdump resulst.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Thu, Jan 5, 2017 at 7:00 PM, Plamen Stoev < plamen.stoev@profitbricks.com> wrote:
Hi David,
Can you please provide us with the output of 'ifconfig bge0' from both machines?
It would also be helpful to get ping router-a from router-b and vise versa. Does this work?
Thank you in advance.
Best, Plamen
On Tue, Jan 3, 2017 at 9:43 PM, David S. <david@zeromail.us> wrote:
Hi,
After installing a 1 server with FreeBSD11 and configure BIRD with minimum configuration I saw that error "invalid argument" for bge0 is still appear but not for igb*.
This takes more than 4 days, still confusing.
Does netmap cased this problem? Netmap is enabled by default on FreeBSD11 (CMIIW).
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Tue, Jan 3, 2017 at 4:53 PM, David S. <david@zeromail.us> wrote:
Hi Ondrej,
I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet.
It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11.
I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp.
So, it's only happen to me? :d
Thanks anyway.
Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110
On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org
wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote: > Hi, > > I tried to setup new environment using FreeBSD11 amd64 on vmware and > everything work without a problem, I didn't see any error or interface > issue like on routera and routerb. Let's say that new router we called it > routerc and routerd. > I try to create ospf session between routera to routerc, routerb to routerd > and the neighbor is appear, everything is normal. > I don't know why but the ospf hello packets are not sent by routera to > routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- 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."
Now your bge0 is set as stub. It won't connect on that interface.
protocol ospf { import none; export none;
This blocks all the routes send through ospf, beware.
area 0 { interface "bge0" { cost 5; };
No more tweaking needed, all the other lines are unnecessary. If this does not work, try adding "type pointopoint;" to both sides. If this still does not work, return to this thread.
interface "*" { cost 1000; stub; };
This adds the routes from other interfaces but doesn't connect on them (the "stub" directive means "do not connect")
}; }
MQ On 01/07/2017 09:06 AM, David S. wrote:
Hi Plamen,
Here is my current ospf configuration both on routera and routerb:
protocol ospf { import none; export none; area 0 { interface "bge0" { stub; cost 5; type pointopoint; #hello 5; #retransmit 2; #wait 10; #dead 20; };
interface "*" { cost 1000; stub; }; }; }
Here is ospf status print:
#routera
bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 14:30:00 Alone Preference: 150 Input filter: REJECT Output filter: REJECT Routes: 0 imported, 0 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 28 0 28 0 0 Import withdraws: 2 0 --- 30 0 Export updates: 639949 0 639949 --- 0 Export withdraws: 263 --- --- --- 0
bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 1 Number of areas: 1 Number of LSAs in DB: 1 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 26 Number of neighbors: 0 Number of adjacent neighbors: 0
bird> show ospf interface "bge0" ospf1: Interface bge0 (10.22.40.16/30 <http://10.22.40.16/30>) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) Priority: 1 Cost: 5 Hello timer: 10 Wait timer: 40 Dead timer: 40 Retransmit timer: 5
#routerb
bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 14:33:06 Alone Preference: 150 Input filter: REJECT Output filter: REJECT Routes: 0 imported, 0 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 29 0 29 0 0 Import withdraws: 0 0 --- 29 0 Export updates: 644034 0 644034 --- 0 Export withdraws: 300 --- --- --- 0
bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 1 Number of areas: 1 Number of LSAs in DB: 1 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 29 Number of neighbors: 0 Number of adjacent neighbors: 0
bird> show ospf interface "bge0" ospf1: Interface bge0 (10.22.40.16/30 <http://10.22.40.16/30>) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) Priority: 1 Cost: 5 Hello timer: 10 Wait timer: 40 Dead timer: 40 Retransmit timer: 5
If you have any suggestion please let me know. Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Fri, Jan 6, 2017 at 6:11 PM, Plamen Stoev <plamen.stoev@profitbricks.com <mailto:plamen.stoev@profitbricks.com>> wrote:
Hi David,
It turned out you have 25 ospf interfaces but I'm guessing the bge0 is out of the applied running configuration.
Did you dry to comment out that part of your config?
interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; };
Please give it a try and let us know if this will help so far to establish the adjacency?
It would be great to provide us with the output of birdc show ospf interface.
Thanks, Plamen
On Thu, Jan 5, 2017 at 5:13 PM, David S. <david@zeromail.us <mailto:david@zeromail.us>> wrote:
Hi Plamen,
Here is the ifconfig for bge0 both on routera and routerb
#routera bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE> ether 1c:98:ec:13:5e:60 inet 10.22.40.17 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:5e60%bge0 prefixlen 64 scopeid 0x5 inet6 2400:6:: prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#routerb bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,LINKSTATE> ether 1c:98:ec:13:4e:f0 inet 10.22.40.18 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:4ef0%bge0 prefixlen 64 scopeid 0x7 inet6 2402:6980::1 prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#ping from routera to routerb root@:~ # ping -S 10.22.40.17 10.22.40.18 PING 10.22.40.18 (10.22.40.18) from 10.22.40.17 <http://10.22.40.17>: 56 data bytes 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=0 ttl=64 time=0.215 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=1 ttl=64 time=0.328 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=2 ttl=64 time=0.274 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=3 ttl=64 time=0.174 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=4 ttl=64 time=0.346 ms
--- 10.22.40.18 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.174/0.267/0.346/0.065 ms
#from routerb to routera # ping -S 10.22.40.18 10.22.40.17 PING 10.22.40.17 (10.22.40.17) from 10.22.40.18 <http://10.22.40.18>: 56 data bytes 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=0 ttl=64 time=0.145 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=1 ttl=64 time=0.149 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=2 ttl=64 time=0.141 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=3 ttl=64 time=0.207 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=4 ttl=64 time=0.165 ms
--- 10.22.40.17 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.141/0.161/0.207/0.024 ms
I don't know why routera couldn't sent ospf hello packets to routerb vice versa. You can find on my previous post (pastebin) for the tcpdump resulst.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Thu, Jan 5, 2017 at 7:00 PM, Plamen Stoev <plamen.stoev@profitbricks.com <mailto:plamen.stoev@profitbricks.com>> wrote:
Hi David,
Can you please provide us with the output of 'ifconfig bge0' from both machines?
It would also be helpful to get ping router-a from router-b and vise versa. Does this work?
Thank you in advance.
Best, Plamen
On Tue, Jan 3, 2017 at 9:43 PM, David S. <david@zeromail.us <mailto:david@zeromail.us>> wrote:
Hi,
After installing a 1 server with FreeBSD11 and configure BIRD with minimum configuration I saw that error "invalid argument" for bge0 is still appear but not for igb*.
This takes more than 4 days, still confusing.
Does netmap cased this problem? Netmap is enabled by default on FreeBSD11 (CMIIW).
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Tue, Jan 3, 2017 at 4:53 PM, David S. <david@zeromail.us <mailto:david@zeromail.us>> wrote:
Hi Ondrej,
I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet.
It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11.
I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp.
So, it's only happen to me? :d
Thanks anyway.
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org <mailto:santiago@crfreenet.org>> wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote: > Hi, > > I tried to setup new environment using FreeBSD11 amd64 on vmware and > everything work without a problem, I didn't see any error or interface > issue like on routera and routerb. Let's say that new router we called it > routerc and routerd. > I try to create ospf session between routera to routerc, routerb to routerd > and the neighbor is appear, everything is normal. > I don't know why but the ospf hello packets are not sent by routera to > routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org <mailto:santiago@crfreenet.org>) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net <http://wwwkeys.pgp.net>) "To err is human -- to blame it on a computer is even more so."
Hi Jan Matejka, I have tried your suggestions but still same. I would use iBGP instead of OSPF, my time is over and I have to finish this job. I'll wait for new machine with same specifications and I'll try again. Thanks to you all. Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Sat, Jan 7, 2017 at 4:48 PM, Jan Matejka <jan.matejka@nic.cz> wrote:
Now your bge0 is set as stub. It won't connect on that interface.
protocol ospf { import none; export none;
This blocks all the routes send through ospf, beware.
area 0 { interface "bge0" { cost 5; };
No more tweaking needed, all the other lines are unnecessary. If this does not work, try adding "type pointopoint;" to both sides. If this still does not work, return to this thread.
interface "*" { cost 1000; stub; };
This adds the routes from other interfaces but doesn't connect on them (the "stub" directive means "do not connect")
}; }
MQ
On 01/07/2017 09:06 AM, David S. wrote:
Hi Plamen,
Here is my current ospf configuration both on routera and routerb:
protocol ospf { import none; export none; area 0 { interface "bge0" { stub; cost 5; type pointopoint; #hello 5; #retransmit 2; #wait 10; #dead 20; };
interface "*" { cost 1000; stub; }; }; }
Here is ospf status print:
#routera
bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 14:30:00 Alone Preference: 150 Input filter: REJECT Output filter: REJECT Routes: 0 imported, 0 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 28 0 28 0 0 Import withdraws: 2 0 --- 30 0 Export updates: 639949 0 639949 --- 0 Export withdraws: 263 --- --- --- 0
bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 1 Number of areas: 1 Number of LSAs in DB: 1 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 26 Number of neighbors: 0 Number of adjacent neighbors: 0
bird> show ospf interface "bge0" ospf1: Interface bge0 (10.22.40.16/30 <http://10.22.40.16/30>) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) Priority: 1 Cost: 5 Hello timer: 10 Wait timer: 40 Dead timer: 40 Retransmit timer: 5
#routerb
bird> show protocols all ospf1 name proto table state since info ospf1 OSPF master up 14:33:06 Alone Preference: 150 Input filter: REJECT Output filter: REJECT Routes: 0 imported, 0 exported, 0 preferred Route change stats: received rejected filtered ignored accepted Import updates: 29 0 29 0 0 Import withdraws: 0 0 --- 29 0 Export updates: 644034 0 644034 --- 0 Export withdraws: 300 --- --- --- 0
bird> show ospf ospf1: RFC1583 compatibility: disabled Stub router: No RT scheduler tick: 1 Number of areas: 1 Number of LSAs in DB: 1 Area: 0.0.0.0 (0) [BACKBONE] Stub: No NSSA: No Transit: No Number of interfaces: 29 Number of neighbors: 0 Number of adjacent neighbors: 0
bird> show ospf interface "bge0" ospf1: Interface bge0 (10.22.40.16/30 <http://10.22.40.16/30>) Type: ptp Area: 0.0.0.0 (0) State: PtP (stub) Priority: 1 Cost: 5 Hello timer: 10 Wait timer: 40 Dead timer: 40 Retransmit timer: 5
If you have any suggestion please let me know. Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Fri, Jan 6, 2017 at 6:11 PM, Plamen Stoev <plamen.stoev@profitbricks.com <mailto:plamen.stoev@profitbricks.com>> wrote:
Hi David,
It turned out you have 25 ospf interfaces but I'm guessing the bge0 is out of the applied running configuration.
Did you dry to comment out that part of your config?
interface "bge0" { stub; cost 5; hello 10; retransmit 2; wait 10; dead 40; type pointopoint; };
Please give it a try and let us know if this will help so far to establish the adjacency?
It would be great to provide us with the output of birdc show ospf interface.
Thanks, Plamen
On Thu, Jan 5, 2017 at 5:13 PM, David S. <david@zeromail.us <mailto:david@zeromail.us>> wrote:
Hi Plamen,
Here is the ifconfig for bge0 both on routera and routerb
#routera bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_ HWCSUM,LINKSTATE> ether 1c:98:ec:13:5e:60 inet 10.22.40.17 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:5e60%bge0 prefixlen 64 scopeid 0x5 inet6 2400:6:: prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#routerb bge0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
options=8009b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_ HWCSUM,LINKSTATE> ether 1c:98:ec:13:4e:f0 inet 10.22.40.18 netmask 0xfffffffc broadcast 10.22.40.19 inet6 fe80::1e98:ecff:fe13:4ef0%bge0 prefixlen 64 scopeid 0x7 inet6 2402:6980::1 prefixlen 127 nd6 options=21<PERFORMNUD,AUTO_LINKLOCAL> media: Ethernet autoselect (1000baseT <full-duplex>) status: active
#ping from routera to routerb root@:~ # ping -S 10.22.40.17 10.22.40.18 PING 10.22.40.18 (10.22.40.18) from 10.22.40.17 <http://10.22.40.17>: 56 data bytes 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=0 ttl=64 time=0.215 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=1 ttl=64 time=0.328 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=2 ttl=64 time=0.274 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=3 ttl=64 time=0.174 ms 64 bytes from 10.22.40.18 <http://10.22.40.18>: icmp_seq=4 ttl=64 time=0.346 ms
--- 10.22.40.18 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.174/0.267/0.346/0.065 ms
#from routerb to routera # ping -S 10.22.40.18 10.22.40.17 PING 10.22.40.17 (10.22.40.17) from 10.22.40.18 <http://10.22.40.18>: 56 data bytes 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=0 ttl=64 time=0.145 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=1 ttl=64 time=0.149 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=2 ttl=64 time=0.141 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=3 ttl=64 time=0.207 ms 64 bytes from 10.22.40.17 <http://10.22.40.17>: icmp_seq=4 ttl=64 time=0.165 ms
--- 10.22.40.17 ping statistics --- 5 packets transmitted, 5 packets received, 0.0% packet loss round-trip min/avg/max/stddev = 0.141/0.161/0.207/0.024 ms
I don't know why routera couldn't sent ospf hello packets to routerb vice versa. You can find on my previous post (pastebin) for the tcpdump resulst.
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Thu, Jan 5, 2017 at 7:00 PM, Plamen Stoev <plamen.stoev@profitbricks.com <mailto:plamen.stoev@profitbricks.com>> wrote:
Hi David,
Can you please provide us with the output of 'ifconfig bge0' from both machines?
It would also be helpful to get ping router-a from router-b and vise versa. Does this work?
Thank you in advance.
Best, Plamen
On Tue, Jan 3, 2017 at 9:43 PM, David S. <david@zeromail.us <mailto:david@zeromail.us>> wrote:
Hi,
After installing a 1 server with FreeBSD11 and configure BIRD with minimum configuration I saw that error "invalid argument" for bge0 is still appear but not for igb*.
This takes more than 4 days, still confusing.
Does netmap cased this problem? Netmap is enabled by default on FreeBSD11 (CMIIW).
Thank you
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Tue, Jan 3, 2017 at 4:53 PM, David S. <david@zeromail.us <mailto:david@zeromail.us>> wrote:
Hi Ondrej,
I have no firewall enable and it's not work on all card. I have 4 port 1gbe broadcom and 4 port 1gbe intel I350 chipset based. The clue I only have is ospf not sending hello packet between routera to routerb vice versa, both of server use HP DL360 Gen9 FreeBSD11. Both router has multiple bgp session and receive full route from the internet.
It's weird, when routera able to send and receive ospf hello packets from and to routerc vice versa, both of them are FreeBSD11.
I'll try to reinstall the OS and configure ospf first and then one by one configure the bgp.
So, it's only happen to me? :d
Thanks anyway.
Best regards, David S. ------------------------------------------------ e. david@zeromail.us <mailto:david@zeromail.us> w. pnyet.web.id <http://pnyet.web.id/> p. 087881216110
On Mon, Jan 2, 2017 at 9:04 PM, Ondrej Zajicek <santiago@crfreenet.org <mailto:santiago@crfreenet.org>> wrote:
On Mon, Jan 02, 2017 at 01:33:57AM +0700, David S. wrote: > Hi, > > I tried to setup new environment using FreeBSD11 amd64 on vmware and > everything work without a problem, I didn't see any error or interface > issue like on routera and routerb. Let's say that new router we called it > routerc and routerd. > I try to create ospf session between routera to routerc, routerb to routerd > and the neighbor is appear, everything is normal. > I don't know why but the ospf hello packets are not sent by routera to > routerb or vice versa.
It seems like some specific problem in your setup. Perhaps firewall or insufficient privileges? Does it work with different network card?
-- Elen sila lumenn' omentielvo
Ondrej 'Santiago' Zajicek (email: santiago@crfreenet.org <mailto:santiago@crfreenet.org>) OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net <http://wwwkeys.pgp.net>) "To err is human -- to blame it on a computer is even more so."
On Sat, Dec 31, 2016 at 2:00 AM, David S. <david@zeromail.us> wrote:
Dear All,
I have trouble to establish ospf on BIRD 1.6.3 using FreeBSD 11 amd64, here is my topology and BIRD configuration:
Hi, FreeBSD's official bird port version is 1.6.0: If you are using bird 1.6.3, this mean you're using your own upgraded version of bird. But take care to use the UDP RAW socket bird patch from the FreeBSD port [2] if you are running FreeBSD 11. Meanwhile you can try this bird port patch [3] that upgrade FreeBSD port from 1.6.0 to 1.6.3: It's fix your problem. And I've proposed a push [4] for including this patch to bird code. Sorry for didn't react more rapidly, Olivier [1] https://wiki.freebsd.org/SOCK_RAW [2] https://svnweb.freebsd.org/ports/head/net/bird/files/patch-bsd-sysdep.h?revi... [3] https://github.com/ocochard/BSDRP/blob/master/BSDRP/patches/ports.bird.patch [4] https://github.com/BIRD/bird/pull/1
On Sat, Jan 14, 2017 at 10:56:42AM +0100, Olivier Cochard-Labbé wrote:
FreeBSD's official bird port version is 1.6.0: If you are using bird 1.6.3, this mean you're using your own upgraded version of bird. But take care to use the UDP RAW socket bird patch from the FreeBSD port [2] if you are running FreeBSD 11.
Hi Thanks for the answer, we were testing BIRD on FreeBSD 10, so we did not notice this API change. I am bit confused by [1] w.r.t. whether ip_len is expected to contain whole packet length or just data length. In BIRD, we always set it to whole packet length and it worked, but according to [1] it should be whole packet length on FreeBSD 10+ and just data length on older ones. But as we use it only for TX, it is possible that BIRD just sends OSPF packets that contain additional 20B garbage at the end. OSPF would tolerate that. [1] https://wiki.freebsd.org/SOCK_RAW
And I've proposed a push [4] for including this patch to bird code.
Thanks, i will merge that. -- 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 Oliver and Ondrej, I use bird-1.6.3 from source, I'll wait for patched version and try again. I hope it wont be a long. Thank you Best regards, David S. ------------------------------------------------ e. david@zeromail.us w. pnyet.web.id p. 087881216110 On Sat, Jan 14, 2017 at 7:18 PM, Ondrej Zajicek <santiago@crfreenet.org> wrote:
On Sat, Jan 14, 2017 at 10:56:42AM +0100, Olivier Cochard-Labbé wrote:
FreeBSD's official bird port version is 1.6.0: If you are using bird 1.6.3, this mean you're using your own upgraded version of bird. But take care to use the UDP RAW socket bird patch from the FreeBSD port [2] if you are running FreeBSD 11.
Hi
Thanks for the answer, we were testing BIRD on FreeBSD 10, so we did not notice this API change.
I am bit confused by [1] w.r.t. whether ip_len is expected to contain whole packet length or just data length. In BIRD, we always set it to whole packet length and it worked, but according to [1] it should be whole packet length on FreeBSD 10+ and just data length on older ones.
But as we use it only for TX, it is possible that BIRD just sends OSPF packets that contain additional 20B garbage at the end. OSPF would tolerate that.
[1] https://wiki.freebsd.org/SOCK_RAW
And I've proposed a push [4] for including this patch to bird code.
Thanks, i will merge that.
-- 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 (7)
-
dave seddon -
David S. -
Jan Matejka -
Keenan Tims -
Olivier Cochard-Labbé -
Ondrej Zajicek -
Plamen Stoev