LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Manually assigning ip address using Slackware (https://www.linuxquestions.org/questions/linux-newbie-8/manually-assigning-ip-address-using-slackware-495125/)

mpdsal 10-24-2006 09:47 AM

Manually assigning ip address using Slackware
 
Hello. I am trying to assign a static ip address using Slackware 2.4.26. This is the command that I am typing in:

ifconfig eth0 xxx.xxx.xxx.xxx. netmask yyy.yyy.yyy.yyy up route -n add default gw zzz.zzz.zzz.zzz

I did this once before and it worked. Now I get an error statement that says "Host name lookup failure". When I do ifconfig to see the ip settings they all look correct except for the gateway value. That was not accepted for some reason and of course I can't reach the internet to download my Nessus updates.

Can anyone help? Thanks

lord-fu 10-24-2006 10:21 AM

http://www.slackbook.org/html/networ...ion-tcpip.html

I think adding ".local" onto the end of your hostname would fix your issues, that and assigning the proper gateway and dns as well.

Hope that helps some.

mpdsal 10-24-2006 12:18 PM

So it would look like: xxx.xxx.xxx.xxx.local? This would be for the static ip address value I presume? Thanks

dracolich 10-24-2006 02:26 PM

You have two commands on one line. They need to be separated.

Code:

ifconfig eth0 xxx.xxx.xxx.xxx. netmask yyy.yyy.yyy.yyy up
route -n add default gw zzz.zzz.zzz.zzz

or if you prefer one line, separate them with a semicolon

Code:

ifconfig eth0 xxx.xxx.xxx.xxx. netmask yyy.yyy.yyy.yyy up ; route -n add default gw zzz.zzz.zzz.zzz


All times are GMT -5. The time now is 08:40 AM.