Assigning Static Ip Address to Ethernet and WLAN

Assigning a static address would make managing the systems easy.

Edit /etc/network/interfaces

Change the entries as below,

Also we need to edit /etc/wpa_supplicant/wpa_supplicant.conf to configure the WLAN athentication settings.

Change the values as below,

Reboot the machine.

With above settings machine will be assigned 192.168.1.40 either on ethernet or on WLAN.