LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 09-14-2004, 09:55 PM   #1
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Rep: Reputation: 30
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
 
Old 09-14-2004, 10:01 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,004
Blog Entries: 11

Rep: Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903Reputation: 903
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
 
Old 09-14-2004, 10:12 PM   #3
zaicheke
Member
 
Registered: Apr 2004
Distribution: Slackware 10, Open BSD 3.6, Mac OS 10.3.7, Splack 10 beta
Posts: 393

Original Poster
Rep: Reputation: 30
thanks a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to switch from DHCP to Static IP with Slackware 10.1 dmkh Linux - Networking 9 09-15-2005 04:41 AM
How Do I Switch From Static IP To DHCP Psibur Linux - Networking 3 06-23-2005 10:40 AM
Switch DHCP to static Darkangel90 Linux - Networking 1 03-29-2004 06:15 AM
switch RH 7.2 from DHCP over to static IP dwichman Linux - Networking 3 03-04-2002 02:28 AM
Switch from static IP to dhcp ? Fuel Linux - Networking 2 02-23-2002 10:21 PM


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

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration