FC8 how to get static IP working

Ed Greshko Ed.Greshko at greshko.com
Tue Nov 13 06:58:48 UTC 2007


Chu Tan wrote:
> I've used fedora's network configuration tool to setup eth0 to use a
> static IP address, however it always boot up using DHCP.
> 
> Here's my config files and I have tried ifdown and ifup on eth0 on
> command line and it is still using the dhcp ip address.
> 
> /etc/sysconfig/network
> NETWORKING=yes
> HOSTNAME=localhost.localdomain
> 
> /etc/sysconfig/network-scripts/ifcfg-eth0
> # Please read /usr/share/doc/initscripts-*/sysconfig.txt
> # for the documentation of these parameters.
> GATEWAY=192.168.2.1
> TYPE=Ethernet
> DEVICE=eth0
> BOOTPROTO=none
> NETMASK=255.255.255.0
> IPADDR=192.168.2.3
> ONBOOT=yes
> USERCTL=no
> IPV6INIT=no
> PEERDNS=yes

Change BOOTPROTO=static


-- 
A lie is an abomination unto the Lord and a very present help in time of
trouble.
		-- Adlai Stevenson




More information about the fedora-list mailing list