-   Linux - Newbie (
-   -   Switch DHCP to STATIC (

zaicheke 09-14-2004 08:55 PM

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 09: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



zaicheke 09-14-2004 09:12 PM

thanks a lot.

All times are GMT -5. The time now is 02:45 PM.