קוד: |
cat /etc/network/interfaces
auto lo iface lo inet loopback allow-hotplug wlp1s0 iface wlp1s0 inet static address 192.168.1.1 netmask 255.255.255.0 gateway 192.168.1.254 dns-nameservers 8.8.8.8 wpa-ssid mywifi wpa-psk mypassword #wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp metric 1 # governed by ifplugd ... do not use allow-hotplug or auto options iface eno1 inet static address 192.168.2.1 netmask 255.255.255.0 gateway 192.168.2.254 dns-nameservers 8.8.8.8 metric 0 |
קוד: |
cat /etc/default/ifplugd
INTERFACES="eno1" HOTPLUG_INTERFACES="wlp1s0" ARGS="-q -f -u0 -d0 -w -I" SUSPEND_ACTION="none" |