LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-03-2004, 10:57 PM   #1
linux_faq
LQ Newbie
 
Registered: May 2004
Posts: 7

Rep: Reputation: 0
dhcp -> static ip configuration.


My Red Hat 9.0 network interface is currently running in dhcp configuration. I would like to switch to static IP.

My ifcfg-eth0 file looks like below.

DEVICE=eth0
BOOTPROTO=dhcp
ONBOOT=yes
HWADDR=00:04:E2:83:F5:58
MODE=Managed
ESSID=coconut
KEY=xxxxxxxxxxxxxxxxxxxxxxxxxx


My router address is http://192.168.2.1

I know I need to add some kind of IPADDR, NETMASK, GATEWAY and BROADCAST variables and change BOOTPROTO to "static", but don't seem to get the setting correctly.

Please advise.

Thanks in advance.
 
Old 07-04-2004, 12:16 AM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
use:

redhat-config-network-druid

or

netconfig -d eth0

then do a /sbin/service network restart

u need to have root access to do this.
 
  


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
From DHCP to static IP. dave`2005 Slackware 3 08-22-2005 09:12 AM
Using DHCP with a static IP ninmonkeys Linux - Networking 9 11-30-2004 07:32 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
DHCP to static IP ?? davepal Linux - Networking 1 04-21-2004 09:34 AM
DHCP or Static Culbert Linux - Networking 1 03-14-2003 07:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:17 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration