PDA

View Full Version : Statically assign IP


CICA
2005-10-13, 05:26 PM CDT
Hi Guys,

I was wondering if anyone could help me out with this one. I'm still slowly but surely get a feel to Linux, but I have been unable to complete the following task. I have been trying to statically assign my machine an ip address which is easily done by typing:

ifconfig wlan0 192.168.x.x

But every time I reboot the machine I loose this ip address I was just wondering if I could some how have it so that when my machine boots it will always have this desired ip address...

Thanks in advance
CICA

Iron_Mike
2005-10-13, 05:29 PM CDT
Go to Network Device Control and select the device you want and hit configure, select the device again and select edit, cycle through the tabs at the top and set the parameters.....Also make sure you check the DNS tab and set the DNS....

CICA
2005-10-13, 05:37 PM CDT
Nice one...

Thanks
CICA

chili555
2005-10-13, 08:26 PM CDT
Or, me mate, edit /etc/sysconfig/network-scripts/ifcfg-wlan0 to read:

BOOTPROTO=none

and

IPADDR=192.168.x.x

CICA
2005-10-14, 06:13 AM CDT
Cheers ma friend!

CICA