How to Configure Static IP Address on Linux Fedora 16 Server

Share this Article :

This post will show the quick steps to configure static ip address on linux Fedora 16 server. By default the linux Fedora 16 server will auto get the ip from DHCP server. DHCP is not recommended if you use as a server. This steps including the configuration of ip address, netmask, gateway and dns server.

Open network configuration file as below :

[[email protected] ~]# vi /etc/sysconfig/network-scripts/ifcfg-p3p1

At first, the setting will look like this :

DEVICE="p3p1"
HWADDR="00:0C:29:6F:37:B5"
BOOTPROTO="dhcp"
ONBOOT="yes"
NM_CONTROLLED="yes"

This examples shows how you can configure static ip address, netmask and dns server on Fedora 16 server :

DEVICE="p3p1"
HWADDR="00:0C:29:6F:37:B5"
BOOTPROTO="none"
ONBOOT="yes"
NM_CONTROLLED="yes"
IPADDR=192.168.1.47
NETMASK=255.255.255.0
DNS1=8.8.8.8
DNS2=8.8.4.4
TYPE=Ethernet
IPV6INIT=no
USERCTL=no

Configure the server gateway :

[[email protected] ~]# vi /etc/sysconfig/network
NETWORKING=yes
HOSTNAME=fedora16.ehowstuff.com
GATEWAY=192.168.1.1

Start the network service :

[[email protected] ~]# systemctl restart network.service

Set network auto start at boot :

[[email protected] ~]# chkconfig network on

3 Comments

  1. Leslie Satenstein
  2. Rororunner
  3. mhstar

Leave a Reply