原文地址:http://stackoverflow.com/questions/21432620/how-to-setup-static-ip-in-fedora-19
First find out your interface using ifconfig
Edit the config file for that interfaceusing your favorite text editor:
vi /etc/sysconfig/network-scripts/ifcfg-eth1 //where eth1 is your interface
You will need to change BOOTPROTO from dhcp to static and add IPADDR, NETMASK, BROADCAST and NETWORK variables.
NM_CONTROLLED="yes"
BOOTPROTO=static
DEVICE=eth1
ONBOOT=yes
IPADDR=192.168.8.248
NETMASK=255.255.255.0
BROADCAST=192.168.8.255
NETWORK=192.168.8.0
GATEWAY=192.168.8.1
TYPE=Ethernet
PEERDNS=no
Save the file with ESC, then
:w !sudo tee % > /dev/null
Restart your network via
/etc/init.d/network restart
Also add your DNS servers
vi /etc/resolv.conf
nameserver your_Router_ip
nameserver 8.8.8.8 # Google's DNS Server
You are ready to browse!
IF YOU CANNOT BROWSE STILL AFTER TRYING THE METHOD MENTIONED ABOVE...LOOK AT THE BELOW SOLUTION!!!!