LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-20-2004, 03:19 PM   #1
monc
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Rep: Reputation: 0
changed ifcfg from dhcp to static ip


We have redhad installed minimum.
we want to change the ifcfg-eth0 from dhcp to static ip, but when we restart the network service eth0 doesn't come up.

our ifcfg-eth0:

device=eth0
ipaddr=192.168.1.1
netmask=255.255.255.0
network= 192.168.1.0
broadcast=192.168.1.250
onboot=yes

gr monc
 
Old 01-20-2004, 03:35 PM   #2
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Try the following:
DEVICE=eth0
BOOTPROTO=static
IPADDR=192.168.1.1
NETMASK=255.255.255.0
ONBOOT=yes
 
Old 01-21-2004, 01:16 AM   #3
monc
LQ Newbie
 
Registered: Oct 2003
Posts: 17

Original Poster
Rep: Reputation: 0
I changed ifcfg-eth0 but when i type ifconfig i don't get an Ipadress
it stil doesn't work. Must i change other scripts also?

gr monc
 
Old 01-21-2004, 08:12 AM   #4
stickman
Senior Member
 
Registered: Sep 2002
Location: Nashville, TN
Posts: 1,552

Rep: Reputation: 53
Just using ifconfig isn't going to help unless you manually specify the settings. ifconfig doesn't read ifcfg-eth0. You must restart networking to verify that it reads from the config files properly. On a RH system, do the following:
service network restart
 
  


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
fedora/redhat: ifcfg-eth0 and ifcfg-eth1 Shaun2222 Linux - Networking 9 01-23-2008 03:25 PM
From DHCP to static IP. dave`2005 Slackware 3 08-22-2005 09:12 AM
ip from dhcp changed after new install mht Linux - Networking 7 07-07-2005 07:02 AM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 11:13 AM
machine name changed by DHCP serquicia Linux - General 4 12-18-2002 08:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:21 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