Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Servers & Networking
FedoraForum Search

Forgot Password? Join Us!

Servers & Networking Discuss any Fedora server problems and Networking issues such as dhcp, IP numbers, wlan, modems, etc.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 9th October 2007, 03:04 PM
baritono Offline
Registered User
 
Join Date: Sep 2007
Location: Beijing, China
Age: 27
Posts: 2
how to change ip address without a reboot?

I'm currently using a Fedora 7 on a Dell laptop. And I need to switch the ip address of my ethernet card between two alternative ones.
Each time I change the ip address through System > Management > Networking, I am promptted that I need to restart my computer or networking manually, but
su -c "/etc/init.d/network restart"
does not work sometimes, and I don't know what to do other than a reboot in this case. So I am wandering if there is a better way to do this.
Thanks in advance!
Reply With Quote
  #2  
Old 9th October 2007, 03:34 PM
William Haller Offline
Registered User
 
Join Date: Jul 2005
Age: 52
Posts: 1,013
Restarting the network will take care of things as far as the kernel is concerned. There is no guarantee, however, that any program that is running and uses networking hasn't already read the information they needed when they started running and will not continue to use that information under the assumption that it hasn't changed. Restarting the offending applications would enable them to begin using the new IP information.

Changing the IP address (if a server) or the gateway IP address or subnet information for most networked applications may require a reboot to absolutely ensure that all applications will correctly use the new information.
Reply With Quote
  #3  
Old 9th October 2007, 03:46 PM
ppesci's Avatar
ppesci Offline
Registered User
 
Join Date: May 2006
Location: Caracas, Venezuela
Posts: 1,828
The command:

Quote:
su -c "/etc/init.d/network restart"
must to work fine. If you have statics networks addresses to exchange, you can use the command ifconfig. Example:

Quote:
ifconfig eth0 down
shutdown the interface eth0

Quote:
ifconfig eth0 192.168.1.1 netmask 255.255.255.0
Assign the network adress and mask to eth0 interface

Quote:
ifconfig eth0 up
Activate the eth0 interface.

Consult the ifconfig command using "man ifconfig"
But remember, the command you used must to work fine.

HTH
__________________
Pietro Pesci Feltri

PowerBook 15" G4 and
MacBook Pro 17" Intel Core 2 Duo
Intel I5 Desktop
Reply With Quote
  #4  
Old 9th October 2007, 04:59 PM
baritono Offline
Registered User
 
Join Date: Sep 2007
Location: Beijing, China
Age: 27
Posts: 2
Thanks for your answers.
I really think
su -c "/etc/init.d/network restart"
should always work, but seems that as soon as eth0 is brought up again, NetworkManager tries to apply the cached (old) ip configuration to eth0.
I killed NetworkManager and NetworkManagerDispatcher deamons, tried the above command again, every thing works just fine.
Reply With Quote
  #5  
Old 9th October 2007, 05:09 PM
ppesci's Avatar
ppesci Offline
Registered User
 
Join Date: May 2006
Location: Caracas, Venezuela
Posts: 1,828
Nice you solved it. Think in a faster way to switch ip address. May be ifconfig will be useful for that.

BTW: Welcome to this forum
__________________
Pietro Pesci Feltri

PowerBook 15" G4 and
MacBook Pro 17" Intel Core 2 Duo
Intel I5 Desktop
Reply With Quote
Reply

Tags
address, change, reboot

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to change MAC Address varinder Servers & Networking 9 28th December 2008 05:03 PM
Fedora 7 Loses IP Address After Reboot kjloh Servers & Networking 7 7th January 2008 03:18 PM
Mac Address Change afzal Servers & Networking 3 4th July 2007 04:45 PM
How change/set IP address and change time on multibooting menu? booter Servers & Networking 5 8th June 2007 01:46 AM
Problem to keep MAC address change after reboot spin0us Servers & Networking 1 20th January 2005 02:14 PM


Current GMT-time: 17:56 (Saturday, 18-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat