How to use wifi and lan?

Configure WiFi. Unplug it.
Configure Ethernet.

Plug both in.

To enable both at once:

sudo connmanctl
scan wifi

You’ll get a list of services.

Add connmanctl connect ....................................... to /etc/rc.local.