Centos 7 Network Settings
How to Configure Centos Network?
You can configure the network on your Linux / Centos servers by following the steps below.
Remember, you must login as "root" for all commands.
1 - We reach the directory where the network files are located
Enter ↵
2 - We list our network scripts
Enter ↵
3 - File with network settings that are automatically created when you install your operating system
Enter ↵
4 - Network Settings
DEVICE=eth0
HWADDR=//It will come automatically
TYPE=Ethernet
UUID=//It will come automatically
ONBOOT=Yes
NM_CONTROLLED=yes
BOOTPROTO=static
NETMASK=//Enter your Network Netmask
IPADDR=//Enter the IP address you will use on your server (from your current IP block)
DEFROUTE=yes
PEERDNS=yes
PEERROUTES=yes
GATEWAY=//Enter your network output IP
DNS1=8.8.8.8 //Google DNS1
DNS2=8.8.4.4 //Google DNS2
5 - We restart our network services
Enter ↵
6 - After the restart, we open the following file and check the nameserver(DNS) definition.
Enter ↵
Must be;
nameserver 8.8.8.8
nameserver 8.8.4.4
7 - We perform our tests by pinging any IP address
Enter ↵
8 - Now we can update our system
Enter ↵
----------------------------
If you want us to give you technical support as VDS Server Technologies, simply open a Ticket from your Customer Panel or contact us via Live Chat
Support
Our communication channels where you can reach us at any time if you need any help