ipv4 gateway is missing after configurations

Daniel WANG hao-daniel.wang at se.com
Tue Jul 30 17:59:49 PDT 2019


Hi,

Gateway address of eth0 cannot be configured or retrieved in IPv4 manual mode after some configurations.
The connection diagram: eth0 is connected to a switch chip that exposes swop0 and swop1. Ethernet cable is connected to swop1.
Version is v1.35.
Reproduce step:

  1.  eth0 is configured as IPv4 dhcp mode. All are ok. IP of eth0 is 10.177.71.43.
  2.  eth0 is re-configured as IPv4 manual mode by "connmanctl> config ethernet_xxxxxxxxxxxx_cable --ipv4 manual 192.168.0.2 255.255.255.0 192.168.0.1".

Then gateway of eth0 is empty and also cannot be configured again using "conmanctl".

>From "connmanctl", the status of Eth0 is as below:

Ethernet = [ Method=auto, Interface=eth0, Address=xx:xx:xx:xx:xx:xx, MTU=1500 ]

IPv4 = [ Method=manual, Address=192.168.0.2, Netmask=255.255.255.0 ]

IPv4.Configuration = [ Method=manual, Address=192.168.0.2, Netmask=255.255.255.0, Gateway=192.168.0.1 ]

  1.  Restart connman.service, the IPv4 manual mode is ok again. The status is as below:

Ethernet = [ Method=auto, Interface=eth0, Address=xx:xx:xx:xx:xx:xx, MTU=1500 ]

IPv4 = [ Method=manual, Address=192.168.0.2, Netmask=255.255.255.0, Gateway=192.168.0.1 ]

IPv4.Configuration = [ Method=manual, Address=192.168.0.2, Netmask=255.255.255.0, Gateway=192.168.0.1 ]

Sometimes, gateway is missing also in dhcp mode, but normally manual mode is easy to reproduce.
Is this a defect of ConnMan?
Thanks in advance for your reply.

Best Regards,
Daniel


*Please consider the environment before printing this e-mail



-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.01.org/pipermail/connman/attachments/20190731/65a77168/attachment.html>


More information about the connman mailing list