LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   Setting a static IP address (http://www.linuxquestions.org/questions/slackware-14/setting-a-static-ip-address-639286/)

thedp 05-02-2008 03:22 AM

Setting a static IP address
 
Hello,

I've trying to set a static IP address on my Slackware 12.0.
Google search came out pretty much useless since every guide talks about RedHat and /etc/sysconfig which is no where to be found on Slackware.

I need to set a static IP address and default gateway.


Thank you.

Zmyrgel 05-02-2008 03:24 AM

The file your looking for is in /etc/rc.d/

I think it's the rc.inet1.conf or something similar. It should be pretty well documented so it's easy to edit.

ottavio 05-02-2008 04:45 AM

sudo su
netconfig

zoran119 05-02-2008 05:09 AM

Read this as well

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

Alstare 05-02-2008 01:09 PM

As the poster above already pointed out...

Edit your "/etc/rc.d/rc.inet1.conf" file with your static IP settings.
Edit your "/etc/resolve" file and insert your DNS IP's <nameserver x.x.x.x>

Then restart or run "/etc/rc.d/rc.inet1 restart" and your all set.


All times are GMT -5. The time now is 09:12 AM.