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 |
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. |
So it would look like: xxx.xxx.xxx.xxx.local? This would be for the static ip address value I presume? Thanks
|
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 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. |