IP Configuration

CentOS 7

For CentOS 7, the network adapter will vary depending on the installation. You will need to verify what is the adapter name and use it to configure your Virtual Machine. Use the command ipaddr to find your interface name.

File: /etc/sysconfig/network-scripts/ifcfg-(insert interface Name)

DEVICE=(insert interface Name)
BOOTPROTO=none
ONBOOT=yes
USERCTL=no
IPV6INIT=no
PEERDNS=yes
TYPE=Ethernet
NETMASK=255.255.255.255
IPADDR=IP.ASSIGNED
GATEWAY=GATEWAY_ASSIGNED
ARP=yes
HWADDR=MY:VI:RT:UA:LM:AC
If the file route-(insert interface Name) does not exist, you’ll have to create it.
For CentOS 7, NETWORK_GW_VM is the main IP of your server where you replace the last octet by 0.

File: /etc/sysconfig/network-scripts/route-(insert interface Name)

GATEWAY_ASSIGNED - 255.255.255.255 (insert interface Name)
NETWORK_GW_VM - 255.255.255.0 (insert interface Name)
default GATEWAY_ASSIGNED

File: /etc/resolv.conf

nameserver 213.186.33.99
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

How to Change the Remote Desktop RDP Port

Port 3389 is the standard port for remote desktop protocol that powers Remote Desktop Services on...

my VPS with CPANEL and CSF is losing packets

Some customers have noticed that when CSF Firewall is installed and active if you try to ping the...

Extend /home disk volume for Centos7 WHM Servers

Here are the steps to follow to  extend the /home volume of a standard centos7 based Utixo VPS...

Utixo VPS Management control panel

Utixo provides its customers with an extremely advanced VPS control panel that allows customers...

How to change SSH port on CentOS 7

One of the most common tasks when setting up a SSH server is to change the SSH port. Changing the...

Powered by WHMCompleteSolution