Knowledgebase

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

 

cd /etc/sysconfig/network-script/

Enter 

 

2 - We list our network scripts

 

11

Enter 

 

3 - File with network settings that are automatically created when you install your operating system

 

vi ifcfg-eth0

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

 

service network restart

Enter 

 

6 - After the restart, we open the following file and check the nameserver(DNS) definition.

 

vi /etc/resolv.conf

Enter 

 

Must be;

nameserver 8.8.8.8

nameserver 8.8.4.4

 

7 -  We perform our tests by pinging any IP address

ping 94.103.23.23

Enter 

 

8 - Now we can update our system

yum update

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

 

Support:   Ticket
LiveSupport:   www.vdssunucu.net
WhatsApp:   +90 216 606 2837

 

VDS Server - VDS Rent - VDS Türkiye - Server Rental

  • Centos 7 Network Ayarları, Centos 7 Network Settings, Centos 7, Network Settings, VDS Sunucu, vdssunucu, vds, www.vdssunucu.net

Was this answer helpful?

53 Users Found This Useful