This is another quick post on Fedora 16. Setting up static IP address is little different from Debian based distros and also there is a slight change from the previous Fedora distros.
first check the network devices installed in the machine
for me, there is a device installed p1p1 (except lo). Now, create a network script file.
$ vi /etc/sysconfig/network-scripts/ifcfg-p1p1
and fill it up with your hardware and connection detail.
DEVICE=p1p1 BOOTPROTO=static IPADDR=10.10.10.100 NETMASK=255.255.255.0 GATEWAY=10.10.10.2 HWADDR=94:0C:6D:86:95:F7 DNS1=220.127.116.11 DNS2=18.104.22.168 ONBOOT=yes NM_CONTROLLED=no
I think most of the attributes are understandable. however, NM_CONTROLLED means Network Manager Controlled.
now, restart the network
$ sudo /etc/init.d/network restart $ ping yahoo.com