INFORMATICS

The Best

Przełącznik języka

Zaproś mnie na KAWE

Jeżeli podoba Ci się strona i chcesz wspomóc projekt!

Postaw mi kawę na buycoffee.to

This Site

Płatnik

CMS

Hardware

Uncategorised

Emulators

Powershell

Storage Array

DNS

Antivirus program

Licznik

3.png0.png4.png1.png9.png5.png8.png
Today855
Yesterday1207
This week6840
This month16859
Total3041958

Visitor Info

  • IP: 18.222.20.30
  • Browser: Unknown
  • Browser Version:
  • Operating System: Unknown

Who Is Online

4
Online

piątek, 22 listopad 2024 15:39

How to configure static IP address on CentOS

Gwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywnaGwiazdka nieaktywna
 

How to configure static IP address on CentOS 

By default CentOS minimal install does not come with pre-configure network. In this small tutorial i will explain how to set static ip address on CentOS 6.5 minimal.
First, need to edit the set up for the ethernet. Let’s start with editing this file:

EDIT Device:
# vi /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0 HWADDR=DC:41:A9:52:4E:6D TYPE=Ethernet ONBOOT=yes BOOTPROTO=none IPV6INIT=no USERCTL=no NM_CONTROLLED=yes PEERDNS=yes IPADDR=192.168.1.10 NETMASK=255.255.255.0
Now, configure default getaway: EDIT Network:
# vi /etc/sysconfig/network NETWORKING=yes HOSTNAME=centos6 GATEWAY=192.168.1.1 Configure DNS Server
EDIT DNS: # vi /etc/resolv.conf nameserver 8.8.8.8 nameserver 8.8.4.4

Now restart the network interface: # /etc/init.d/networking restart Check eth0:
check configuration: # ifconfig eth0 eth0 Link encap:Ethernet HWaddr DC:41:A9:52:4E:6D inet addr:192.168.1.10 Bcast:192.168.0.255 Mask:255.255.255.0 inet6 addr: fe80::799f:e441:a0f6:8562/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:63262 errors:0 dropped:0 overruns:0 frame:0 TX packets:32456 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:111111111 (233.0 MiB) TX bytes:11111111 (139.0 MiB)


Search