in Computing

How to configure the network in CentOs

Just as a side note, these are the steps to re-configure the network in CentOS:

1) Identify the interface that you want to modify with “# ip a”

2) Once the interface has been identified, edit the corresponding file @ /etc/sysconfig/network-scripts

3) Modify the file as required.

The most common fields are:

IPADDR=
NETMASK=
GATEWAY=
DNS1=
DNS2=

4) Restart the network service

# service network restart