I find a statement in session-overview.txt:
Multiple per-session routing tables
By default, ConnMan maintains only one online service. So it is impossible to send external traffic (routed through a gateway) on multiple interfaces.
In order to enable this functionality, an application needs to issue the
following API calls:
- create multiple sessions, one for each interface to be used
- set each session's AllowedInterface config field to the required interface name (eth0, eth1, wlan0, ppp0, etc.)
- set each session's SourceIPRule config field to true
- connect each session (or the service it is using)
That will instruct ConnMan to create multiple routing tables, with default routes in them. After that, the application can issue a bind() call on each
socket, using required interface's source IP address. The bind() call must be made before a connect() call on a socket.
I am wondering if my issue is related to this statement.
Now I have two network interfaces: eth0, eth1. They are connected to different networks.
I observe that by default only eth0 can get IP address from DHCP server. For eth1, IP is an APIPA address, as below:
Thank you in advance for your reply.