PDA

View Full Version : Setting a static IP in /etc/network/interfaces



gCoreByte
2013-12-03, 17:27
Hi.

I forgot to add a few things.

I'm running Kali 1.0 32bit from my HDD installation GNOME.

I'm having a problem with my wlan1 (Atheros USB2.0 WIFI dongle). I can't seem to set it to a statical IP. When I try, it wont configure and wont work.

Output from commands:

ifdown/ifup wlan1
interface wlan1 is not configured

I want my IP to be xxx.xxx.xxx.138
It wont. I tried EVERY tut on Google. Now I came here.

Here is my interface file regarding wlan1.

auto wlan1
iface wlan1 inet static
address 192.168.1.138
netmask 255.255.255.0
gateway 192.168.1.1

sickn3ss
2013-12-04, 14:08
So if after setting all the configuration parameters in your /etc/network/interfaces files you do:


/etc/init.d/networking restart

It still does not work ?
How about setting the static IP using ifconfig just to see if that works.