상세 컨텐츠

본문 제목

CentOS IP설정

시스템설정

by webtattoo 2016. 3. 12. 19:16

본문

###############################################################

CentOS 6.x


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


EVICE="eth0"

HWADDR="XX:XX:XX:XX:XX:XX"

BOOTPROTO="static"

IPV6INIT="no"

IPV6_AUTOCONF="no"

NM_CONTROLLED="yes"

ONBOOT="yes"

TYPE="Ethernet"

UUID="XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

BROADCAST=192.168.10.255

IPADDR=192.168.10.111

NETMASK=255.255.255.0

GATEWAY=192.168.10.1

IPV4_FAILURE_FATAL=yes


DNS1=203.248.252.2

DNS2=164.124.101.2



###############################################################

CentOS 7.x


TYPE=Ethernet

BOOTPROTO=static

DEFROUTE=yes

PEERDNS=yes

PEERROUTES=yes

IPV4_FAILURE_FATAL=no

IPV6INIT=yes

IPV6_AUTOCONF=yes

IPV6_DEFROUTE=yes

IPV6_PEERDNS=yes

IPV6_PEERROUTES=yes

IPV6_FAILURE_FATAL=no

NAME=enp2s0

UUID=xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

DEVICE=enp2s0

ONBOOT=yes

IPADDR=192.168.20.111

NETMASK=255.255.255.0

GATEWAY=192.168.20.1

DNS1=203.248.252.2

DNS2=164.124.101.2




'시스템설정' 카테고리의 다른 글

Momentum Scrolling on iOS Overflow Elements  (0) 2016.05.21
Windows2012 + Tomcat 연동 설정  (0) 2016.04.27
c6 실행목록  (0) 2016.01.30
레드마인 백그라운드에서 실행  (0) 2015.08.01
Windows 2008 R2 에서 PHP 설치  (0) 2015.07.11

관련글 더보기