Internet configuration on FC3

dsavage at peaknet.net dsavage at peaknet.net
Sun Jan 23 19:47:03 UTC 2005


On Sun, 2005-01-23 at 13:30, Analog Kid wrote:
>Hi,
>
>    I use FC3 both at work and at home. At work I have a STATIC IP
> address and at home I have a DYNAMIC IP (DHCP) internet connection.
>
>   Everyday when I reach work (or get back home) I edit the
> "/etc/sysconfig/network-scripts/ifcfg-eth0" file in order to change
> from DHCP to static IP (or vice versa) after I start FC3 and then
> restart the system for the new network settings to take effect.
>
>   Is there a command I can run to restart the network detection
> process without rebooting once I edit the ifcfg-eth0 file?

Sid,

After you finish editing ifcfg-eth0, as root:

# ifdown eth0 ; ifup eth0 ; ifconfig eth0

This will disable, then re-enable it with the new settings, and report the
status of your network interface.

--Doc Savage
  Fairview Heights, IL




More information about the users mailing list