LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   From DHCP to static IP. (https://www.linuxquestions.org/questions/slackware-14/from-dhcp-to-static-ip-355770/)

dave`2005 08-22-2005 07:39 AM

From DHCP to static IP.
 
Hi all, the 1st time i installed slackware 10.1 i configured the network stuff to give the slackware box its own IP (192.168.0.3) and the stuff (DNS etc) at my router (192.168.0.1) but after completing the install it wouldnt connect to any webpages, i messed things up a bit on that install so i went through again this time using DHCP, when finished i can now see websites etc. The problem is i want to get the box working using a static IP and i cant see anything for configuring that in the control center. Anyone know how to go about doing this? And maybe why it didnt work on the 1st install? (got a funny feeling it wont work when i tell it to use a static IP)

Any help appreciated,

Dave

keefaz 08-22-2005 07:44 AM

Try to edit /etc/rc.d/rc.inet1.conf and add your ISP nameserver in /etc/resolv.conf

heltreko 08-22-2005 08:58 AM

You can easily work your ipconfig using
/sbin/netconfig

I use it when I switch between static ip and dhcp (two different locations) for my laptop.

dave`2005 08-22-2005 09:12 AM

Both work :) Thanks alot.


All times are GMT -5. The time now is 07:26 PM.