Set Static IP Fedora 15



Had some trouble setting a static IP address using Network Manager in Fedora 15 on Virtual Box. after searching around this is what worked for me.
Turn off NetworkManager from startup (we’ll be using network instead):

# chkconfig NetworkManager off
Turn on network manager on start up:

#chkconfig --level 35 network on
Create the start up scripts for your devices. Ensure you know the device name “ethX” and the MAC address:

#cd /etc/sysconfig/network-scripts/

#vi ifcfg-ethX (Your device number where "X" is)

add the following lines with your network information
BOOTPROTO=none
HWADDR=Your_hardware_address
DNS1=192.168.1.1
GATEWAY=192.168.1.1
IPADDR=192.168.1.2
NETMASK=255.255.255.0
ONBOOT=yes
TYPE=Ethernet
IPV6INIT=no
USERCTL=no
NM_CONTROLLED=no
DNS2=8.8.8.8
PREFIX=24
Stop NetworkManager and start network

#service NetworkMananger stop

#service network start

#ifconfig
**If you might have to install network if you haven’t previously done so.

#yum install system-config-network
And that’s it… pretty simple but it took some searching to find a solution for me…
Thanks!
Related Posts with Thumbnails