When both devices are plugged in, only wlan0 device can obtain IP address and eth0 device doesn't obtain any IP address. I have to execute
Code: Select all
dhcpcd eth0The wlan0 device is configure using systemd and wpa_supplicant:
Create a systemd unit, e.g /etc/systemd/system/network-wireless@.service:
Code: Select all
cat /etc/systemd/system/network-wireless@.service
[Unit]
Description=Wireless network connectivity (%i)
Wants=network.target
Before=network.target
BindsTo=sys-subsystem-net-devices-%i.device
After=sys-subsystem-net-devices-%i.device
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/bin/ip link set dev %i up
ExecStart=/usr/bin/wpa_supplicant -B -i %i -c /etc/wpa_supplicant/wpa_supplicant.conf
ExecStart=/usr/bin/dhcpcd %i
ExecStop=/usr/bin/ip link set dev %i down
[Install]
WantedBy=multi-user.target