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 03-25-2008, 09:31 AM   #1
hessond
LQ Newbie
 
Registered: Jan 2008
Location: Florida US
Distribution: Fedora8, Ubuntu
Posts: 18

Rep: Reputation: 0
Resetting Static IP


Hello and thank you for reading this post.

I am running Fedora 8 with all updates. Fedora is the only OS on this computer.
When I first installed Fedora, I gave it a static IP of 10.1.100.187. Everything worked fine.

My Network Admin recently pulled that address back and gave me 10.1.100.204.
I used Network Manager to make these changes. All appears fine, however, I cannot ping the .204 address. I can, however ping my computer at .187.

/sbin/ifconfig shows:
Code:
eth0      Link encap:Ethernet  HWaddr 00:08:02:40:7E:7D  
          inet addr:10.1.100.187  Bcast:10.1.100.255  Mask:255.255.255.0
          inet6 addr: fe80::208:2ff:fe40:7e7d/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3846 errors:0 dropped:0 overruns:0 frame:0
          TX packets:102 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:454761 (444.1 KiB)  TX bytes:12342 (12.0 KiB)

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:3071 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3071 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:2427476 (2.3 MiB)  TX bytes:2427476 (2.3 MiB)
I've looked at files here:
/etc/sysconfig/network-scripts/ifcfg-eth0
/etc/sysconfig/networking/devices/ifcfg-eth0
/etc/sysconfig/networking/profiles/default/ifcfg-eth0

and all show the new IP, however, SOMEthing is grabbing the old ip.

How can I delete the .187 address and place the correct static address in its place?

Thank you for your time!
Cheers,
D
 
Old 03-25-2008, 09:34 AM   #2
Jay_Drummond
Member
 
Registered: Jul 2005
Location: Ohio
Distribution: CentOS 4 & 5, Ubuntu 7.04 & 7.10
Posts: 38

Rep: Reputation: 15
Try to run the following as root.

/etc/init.d/network restart

Then run ifconfig to see if it's picked up the changes.
 
Old 03-25-2008, 09:35 AM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
you'd need to restart the network interface to use the new ip address. just edting the text file directly will do nothing in itself.
 
Old 03-25-2008, 10:29 AM   #4
simplicissimus
Registered User
 
Registered: Mar 2008
Posts: 104

Rep: Reputation: 15
ifconfig

Based on your ifconfig output your Fedora Box still uses the .187 address.

From the menu:
System > Applications > Network
choose your Ethernet device and in the 'General' tab set your statical IP to the new value.

You HAVE to restart networking after that to make the settings apply, or simply do a reboot (restarting networking is faster, however).

Hope this helps,
Regards,
SIMP

Fedora Development

Last edited by simplicissimus; 04-02-2008 at 05:59 AM.
 
Old 03-25-2008, 10:44 AM   #5
hessond
LQ Newbie
 
Registered: Jan 2008
Location: Florida US
Distribution: Fedora8, Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you all for your replies -

SIMP -
Yes, System -> Administration -> Network takes me to Network Manager which is where I reset the new IP originally. Listed here is the new address. Looks like it *should* work....

Jay -
I did restart the Network as you suggested:
/etc/init.d/network restart (Chris, this is what you're talking about, right?)

In fact I restarted the whole box.

Darn! It's doing the same old thing. Still coming up in the old address.

I know I'm missing something. I just don't know where to start. Any ideas from here?

Thanks,
D
 
Old 03-25-2008, 11:03 AM   #6
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
i would guess that network manager could be fscking around with things. uninstall it, disable it, it's a sack of rubbish for a fixed machine like yours.
 
Old 03-25-2008, 12:30 PM   #7
hessond
LQ Newbie
 
Registered: Jan 2008
Location: Florida US
Distribution: Fedora8, Ubuntu
Posts: 18

Original Poster
Rep: Reputation: 0
Thank you very much, Chris!

I disabled Network Manager, and all worked just as you said.

Now on to my next challenge....

Cheers,
D
 
  


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
How to initialize a static array of a class in a static member function lali.p Programming 9 02-16-2008 10:27 AM
Making a static lib from objects + static libs kovacsp Programming 2 12-19-2007 01:53 PM
Howto Assign Multiple Static Public IP Addresses under SBC's PPPoE Static Ip system o trekgraham Linux - Networking 8 04-17-2007 11:51 AM
Java: non-static variable this cannot be referenced from a static context chief_officer Programming 4 05-29-2006 02:37 PM
FC2 Overriding static if in favor of dhcp system set for static pkraus109 Linux - Networking 8 09-21-2004 12:13 PM


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