Advertisement

04.08.2008 at 12:50PM PDT, ID: 23306037
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.6

Change from DHCP to Static IP Address in Fedora Core 7

Asked by nathan8 in Linux Administration

Tags: ,

I installed Fedora Core 7 several months ago. At the time, it was setup to take a DHCP address.  Now, I need to assign a static IP address to the machine.

This seemed easy, as there were many examples online.  However, none of them seem to work on this particular machine.  I need to do this on the command line, or using Webmin.

Here is my initial ifconfig output:
eth0      Link encap:Ethernet  HWaddr 00:0D:56:27:C5:D4
          inet addr:192.168.2.174  Bcast:192.168.255.255  Mask:255.255.0.0
          inet6 addr: fe80::20d:56ff:fe27:c5d4/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:837 errors:0 dropped:0 overruns:0 frame:0
          TX packets:113 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:66399 (64.8 KiB)  TX bytes:24590 (24.0 KiB)
          Base address:0xdf40 Memory:feae0000-feb00000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:11962 errors:0 dropped:0 overruns:0 frame:0
          TX packets:11962 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:94217656 (89.8 MiB)  TX bytes:94217656 (89.8 MiB)


Here are the things I tried.

1.  On the command line:  setup
    1a.  In the setup utility, I chose Network Configuration.
    1b.  DHCP: Unchecked
    1c.  Static IP:  192.168.1.150
    1d.  Netmask:  255.255.0.0
    1e.  Default Gateway IP:  192.168.0.2

2.  I saved this.
3.  Here is the output of /etc/sysconfig/network-scripts/ifcfg-eth0
PEERDNS=yes
HWADDR=00:0d:56:27:c5:d4
TYPE=Ethernet
IPV6INIT=no
DEVICE=eth0
MTU=1500
NETMASK=255.255.0.0
BROADCAST=192.168.255.255
IPADDR=192.168.1.150
NETWORK=192.168.0.0
USERCTL=no
ONBOOT=yes
GATEWAY=192.168.0.2

4.  Next, I restarted networking:  /etc/init.d/network restart

5.  ifconfig has not changed.

6.  Next, just to try, I restarted the Linux box with shutdown -r now

7.  ifconfig has not changed.  It still shows the old DHCP address for eth0.

8.  Someone suggested that I modify /etc/sysconfig/network-scripts/ifcfg-eth0 manually, but, as you can see above, it looks correct.

9.  Next, I tried system-config-network, which is the same network configuration found in setup.  No luck.

So, what am I doing wrong, or what has not yet been done?  Thanks.
Start Free Trial
[+][-]04.08.2008 at 01:11PM PDT, ID: 21309100

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 01:39PM PDT, ID: 21309348

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 01:41PM PDT, ID: 21309368

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 01:45PM PDT, ID: 21309417

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 02:02PM PDT, ID: 21309578

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 02:17PM PDT, ID: 21309723

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 05:47PM PDT, ID: 21310986

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 07:41PM PDT, ID: 21311473

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.08.2008 at 08:05PM PDT, ID: 21311545

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.16.2008 at 03:04AM PDT, ID: 21366130

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Linux Administration
Tags: Redhat, Fedora Core 7
Sign Up Now!
Solution Provided By: elf_bin
Participating Experts: 4
Solution Grade: A
 
 
[+][-]05.10.2008 at 02:09PM PDT, ID: 21540487

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.07.2008 at 11:57AM PDT, ID: 21736489

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628