LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (http://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Switch DHCP to STATIC (http://www.linuxquestions.org/questions/linux-newbie-8/switch-dhcp-to-static-230703/)

zaicheke 09-14-2004 09:55 PM

Switch DHCP to STATIC
 
Where is the linux equivalent for /etc/hostname.eth0 and /etc/mygateway in NetBSD. For non NetBSD users /etc/hostname.eth0 allows you to set the NIC to either DHCP or STATIC IP, it also includes netmasks, alias and all that good stuff. /etc/gateway just has the default gateway. I can't find anything that looks like either of these in the /etc directory. I need to know how to do this for Slack and Debian, if they're different. Thanks in advance

Tinkster 09-14-2004 10:01 PM

They are different indeed, and within Slack you'll find
some differences between 10 and older ones.

In Slack 10 you want to edit /etc/rc.d/rc.inet1.conf
(in older versions there was no separation of script
and data, you edited rc.inet1).

In Deb you edit /etc/network/interfaces

In DeadRat (and its clones) it's /etc/syscontrol/network-scripts/ifcfg-ethX

HIH.


Cheers,
Tink

zaicheke 09-14-2004 10:12 PM

thanks a lot.


All times are GMT -5. The time now is 12:35 PM.