Assigning static IP addresses to Fedora Core hosts


I built a Fedora Core 10 host this weekend, and configured it to use DHCP to retrieve its IP address and network configuration during installation. Once the host was built, I decided to update the ifcfg-eth0 file to use static IP addresses. Here is the configuration I added to /etc/sysconfig/network-scripts/ifcfg-eth0 to assign the static IP address 192.168.1.50 to the server:

DEVICE=eth0
BOOTPROTO=none
BROADCAST=192.168.1.255
HWADDR=00:0c:29:a0:ad:c7
IPADDR=192.168.1.50
NETMASK=255.255.255.0
NETWORK=192.168.1.0
ONBOOT=yes
TYPE=Ethernet
GATEWAY=192.168.1.1
DEFROUTE=yes

I copied this configuration from another Fedora Core host on my network, but wanted to paste it here for future reference.

This article was posted by Matty on 2009-04-04 18:28:00 -0400 -0400