Hi,
I am looking to enable both Ethernet and WiFi interfaces, where the Ethernet is on a subnet connected to the internet via VPN (192.168.100.0 Gateway 192.168.100.1) and the WiFi is connected to the home network (192.168.200.0, no Gateway.) All internet streaming will go to the VPN, and only KODI notifications will be sent via WiFi.
To achieve this I need to enable static IPs for both interfaces. I am only able to configure one interface via My OSMC. Any suggestions how to do this configuration using perhaps systmctl or Conman commands?
JimKnopf, thanks. I used the tutorial to enable two static IP addresses on two different networks for the eth0 and wlan0. The WiFi doesn’t start automatically. How do I set Debian to connect to WiFi on boot? If I get the WiFi to connect, I will achieve the connections to two different networks on boot.
Tried this on a Vero 4k and ended in this service workaround till this timing issue can be solved
[Unit]
Description= Tries to auto connect to wifi
After=connman-wait-for-network.service
Requires=connman-wait-for-network.service
[Service]
Type=oneshot
ExecStartPre=/usr/bin/connmanctl enable wifi
ExecStartPre=/bin/sleep 20
ExecStart=/usr/bin/connmanctl services
ExecStartPost=/usr/bin/connmanctl connect wifi_<your wifi service>
[Install]
WantedBy=multi-user.target
ExecPres are executed serially and ExecPosts after ExecStart was done successful. There is an ugly sleep which should care about the already running scan wifi till finished. Adapt the time in seconds by your own. Hope this helps as workaround.