2016년 9월 19일 월요일

CentOs static ip setting

You can set the CentOs ip as static as below.

[root@localhost /]# vi /etc/sysconfig/network-scripts/ifcfg-eno16777736

TYPE=Ethernet
BOOTPROTO=static
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=yes
IPV6_AUTOCONF=yes
IPV6_DEFROUTE=yes
IPV6_FAILURE_FATAL=no
NAME=eno16777736
UUID=####################################
DEVICE=eno16777736
ONBOOT=yes
PEERDNS=yes
PEERROUTES=yes
IPV6_PEERDNS=yes
IPV6_PEERROUTES=yes
IPADDR=192.168.188.128
NETMASK=255.255.255.0
GATEWAY=192.168.188.2
NM_CONTROLLED=no
DNS1=192.168.188.2

댓글 없음 :

댓글 쓰기