Sometimes its necessary that your machine gets a static IP-address. For example if you want to run a server or a other service on that machine. On Debian based machines you can do this by: Edit /etc/network/interfaces (f.e.: with nano)
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
auto lo iface lo inet loopback auto eth0 iface eth0 inet static address 192.168.88.6 netmask 255.255.255.0 gateway 192.168.88.1 auto wlan0 allow-hotplug wlan0 iface wlan0 inet static address 192.168.99.6 netmask 255.255.255.0 gateway 192.168.88.1 wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf iface default inet dhcp |
In this case we set the IP fix to 192.168.88.6 for both wlan and ethernet. Setup […]