LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-16-2004, 06:05 AM   #1
dhammika
Member
 
Registered: Dec 2003
Location: Colombo. (Sri Lanka)
Distribution: RH 9, RH AS 3, Fedora Core
Posts: 65

Rep: Reputation: 15
Changing DHCP Network Settings


Hi....................

I installed RH9 , configured network to use DHCP. Now I need to remove it from DHCP and give my own IP. But I couldn't find the way out.

pls help me.......

 
Old 03-16-2004, 08:22 AM   #2
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
look at /etc/sysconfig/network-scripts/ifcfg-eth0
at the very least it should look something like:
DEVICE=eth0
BOOTPROTO=static
IPADDR=x.x.x.x
NETMASK=x.x.x.x

IPADDR is the ip address you want it to have, NETMASK is the subnet mask

substitute your network device for eth0
 
Old 03-16-2004, 08:22 AM   #3
skel
Member
 
Registered: Jan 2004
Distribution: Slackware 10 ; Gentoo ; OpenBSD 3.6
Posts: 101

Rep: Reputation: 15
oh, one more thing after you make the changes do:
ifdown eth0
ifup eth0

from a terminal
 
Old 03-16-2004, 08:36 PM   #4
dhammika
Member
 
Registered: Dec 2003
Location: Colombo. (Sri Lanka)
Distribution: RH 9, RH AS 3, Fedora Core
Posts: 65

Original Poster
Rep: Reputation: 15
Thumbs up

Thanks skel

It is working ............

 
  


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
Changing Network Settings ComputerErik Slackware 1 08-06-2005 12:21 AM
dhcp file settings matthewa Linux From Scratch 1 06-07-2005 11:36 PM
manually changing DHCP settings minm Linux - Newbie 2 01-10-2005 01:28 PM
Randomly changing network settings with pcmcia rhubarb Linux - Newbie 0 01-31-2003 09:02 AM
Changing US keyboard settings to Spain (SP) settings or Mexico. zLinuxz Linux - General 4 12-01-2002 12:49 AM

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

All times are GMT -5. The time now is 10:14 AM.

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
Open Source Consulting | Domain Registration