Centos 6 network ayarları

Centos 6 network ayarları

Ip tanımlama

nano /etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0

ONBOOT=yes

BOOTPROTO=static   or dhcp

IPADDR=192.168.x.x

NETMASK=255.255.255.0

—————————————–

Gateway tanımlama

 nano /etc/sysconfig/network

NETWORKING=yes

HOSTNAME=local.local

GATEWAY=192.168.x.x

—————————————

Nameserver tanımlama

nano /etc/resolv.conf

nameserver 8.8.8.8

nameserver 8.8.4.4

service network restart

Bir cevap yazın