Send connman mailing list submissions to
[email protected]
To subscribe or unsubscribe via email, send a message with subject or
body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of connman digest..."
Today's Topics:
1. Re: MTU (Damien LEFEVRE)
----------------------------------------------------------------------
Date: Wed, 12 Feb 2020 12:07:08 +0200
From: Damien LEFEVRE <[email protected]>
Subject: Re: MTU
To: Daniel Wagner <[email protected]>
Cc: [email protected]
Message-ID:
<ca+fhbv85rq7tn6w9qfssqthc+hdkwn59dy3imighskzzhbp...@mail.gmail.com>
Content-Type: multipart/alternative;
boundary="000000000000523a33059e5e2346"
--000000000000523a33059e5e2346
Content-Type: text/plain; charset="UTF-8"
HI Daniel,
I tried the patch. The MTU is set properly. The provision approach won't
work for me. I need to be able to configure the MTU for each interfaces but
also let the user change the IP settings.
My use case it that:
- device is flashed with default static IP config + MTU settings for each
interface names
- user connects to the known IP on one interface to reach a webUI
- from that webUI, user can change network settings, host name, date time,
etc
- the second ethernet port is for a private network were various devices
can talk to each others: i.e motors, I/O boxes, encoders, etc. User needs
to be able to configure this too. Default MTU would be 9000 for data
streaming but it could need to be changed if some network devices do no
support >1500 MTU
Right now I've made a boot hacky script that sets MTU for the connected
adapters and deploy the default IP settings. But it's not very robust if
for example a USB ethernet dongle is connected after boot. I cannot deploy
the default IP settings for this adapter, because the MAC isn't known and
connman will create the new interface settings folder with DHCP default IP
mode.
I wish there would be a way to configure the default IP settings per
adapter name instead of MAC address to have a robust method. The provision
approach doesn't work for me because I cannot change the settings, unless I
have missed something completely =)
Cheers,
-Damien
On Sat, Feb 8, 2020 at 6:57 PM Daniel Wagner <[email protected]> wrote:
> Hi Damien,
>
> On 03.02.20 12:45, Damien LEFEVRE wrote:
> > What's the correct way to set the MTU with connman? All I see from the
> > doc is that the value is reported as read-only
>
> So far there was no way to set the MTU. I've just posted
> a patch which allows to set the MTU via provisioning.
>
> > I have a yocto system where I tried to use systemd-networkd for setting
> > the MTU only. Out of 2 interfaces, one goes crazy after the DHCP request
> > goes through and I'm not able to ping from it or the device from another
> > PC. The network adapter led is flashing until I restart the connman
> service.
>
> Having two network manager running is surely good for some
> entertainment :)
>
> Can you check if the patch would work for you? I've chicken out
> implementing the writing part via D-Bus because that's bit
> more complex and if you are happy with the provision approach
> than there is no need to go an extra mile.
>
>
> https://lists.01.org/hyperkitty/list/[email protected]/message/E5FSVIP3DWRDG6MNC2UAOD5VSVBA4GL5/
>
> Thanks,
> Daniel
>
--000000000000523a33059e5e2346
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">HI Daniel,<div><br></div><div>I tried the patch. The MTU i=
s set properly. The provision=C2=A0approach won't work for me. I need t=
o be able to configure the MTU for each interfaces but also let the user ch=
ange the IP settings.</div><div><br></div><div>My use case it that:</div><d=
iv>- device is flashed with default static IP config + MTU settings for eac=
h interface names</div><div>- user connects to the known IP on one interfac=
e to reach a webUI</div><div>- from that webUI, user can change network set=
tings, host name, date time, etc</div><div>- the second ethernet port is fo=
r a private network were various devices can talk to each others: i.e motor=
s, I/O boxes, encoders, etc. User needs to be able to configure this too. D=
efault MTU would be 9000 for data streaming but it could need to be changed=
if some network devices do no support >1500 MTU</div><div><br></div><di=
v>Right now I've made a boot hacky script that sets MTU for the connect=
ed adapters and deploy the default IP settings. But it's not very robus=
t if for example a USB ethernet dongle is connected after boot. I cannot de=
ploy the default IP settings for this adapter, because the MAC isn't kn=
own and connman will create the new interface settings folder with DHCP def=
ault IP mode.</div><div><br></div><div>I wish there would be a way to confi=
gure the default IP settings per adapter name instead of MAC address to hav=
e a robust method. The provision approach doesn't work for me because I=
cannot change the settings, unless I have missed something completely =3D)=
</div><div><br></div><div>Cheers,</div><div>-Damien</div></div><br><div cla=
ss=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Feb 8, 202=
0 at 6:57 PM Daniel Wagner <<a href=3D"mailto:[email protected]">wagi@monom=
.org</a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"mar=
gin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1=
ex">Hi Damien,<br>
<br>
On 03.02.20 12:45, Damien LEFEVRE wrote:<br>
> What's the correct way to set the MTU with connman? All I see from=
the <br>
> doc is that the value is reported as read-only<br>
<br>
So far there was no way to set the MTU. I've just posted<br>
a patch which allows to set the MTU via provisioning.<br>
<br>
> I have a yocto system where I tried to use systemd-networkd for settin=
g <br>
> the MTU only. Out of 2 interfaces, one goes crazy after the DHCP reque=
st <br>
> goes through and I'm not able to ping from it or the device from a=
nother <br>
> PC. The network adapter led is flashing until I restart the connman se=
rvice.<br>
<br>
Having two network manager running is surely good for some<br>
entertainment :)<br>
<br>
Can you check if the patch would work for you? I've chicken out<br>
implementing the writing part via D-Bus because that's bit<br>
more complex and if you are happy with the provision approach<br>
than there is no need to go an extra mile.<br>
<br>
<a href=3D"https://lists.01.org/hyperkitty/list/[email protected]/messag=
e/E5FSVIP3DWRDG6MNC2UAOD5VSVBA4GL5/" rel=3D"noreferrer" target=3D"_blank">h=
ttps://lists.01.org/hyperkitty/list/[email protected]/message/E5FSVIP3DW=
RDG6MNC2UAOD5VSVBA4GL5/</a><br>
<br>
Thanks,<br>
Daniel<br>
</blockquote></div>
--000000000000523a33059e5e2346--
------------------------------
Subject: Digest Footer
_______________________________________________
connman mailing list -- [email protected]
To unsubscribe send an email to [email protected]
------------------------------
End of connman Digest, Vol 52, Issue 14
***************************************