Adding a static IP onto a CentOS Ethernet device

You will need to edit the interface configuration files under "/etc/sysconfig/network-scripts/".

Each interface will have its own config file named as "ifcfg-ethX", where X is the number of the interface.

DEVICE=eth0
HWADDR=XX:XX:XX:XX:XX:XX
TYPE=Ethernet
UUID=xxxxxxxxxxxxxxxxx
ONBOOT=yes
NM_CONTROLLED=yes
BOOTPROTO=none
NETWORK=xxx.xxx.xxx.xxx
NETMASK=xxx.xxx.xxx.xxx
IPADDR=xxx.xxx.xxx.xxx

  • 90 Users Found This Useful
Was this answer helpful?

Related Articles

IBM RSA Card User Guide

This is the link to the IBM RSA User Guide...

Can you provide redundant PSUs?

Our racks have dual power feeds from separate power distribution units, as well as backup diesel...

Can you provide redundant PSUs?

Our racks have dual power feeds from separate power distribution units, as well as backup diesel...

Fix permissions of all directories and files

To change all the directories to 755 (-rwxr-xr-x): find /home/xxx/public_html -type d -exec...

Preparing your server for colocation

To prepare your server for colocation with us, we'd advise that you: Setup the IP addresses...