본문 바로가기
넷칼리지

CentOS - 이더넷셋팅

by 북한산산적 2009. 6. 8.
네트워크 세팅
/etc/sysconfig/network
NETWORKING=yes
HOSTNAME=localhost
GATEWAY={gateway IP}


이더넷 세팅
/etc/sysconfig/network-scripts/ifcfg-eth0

DEVICE=eth0
BOOTPROTO=static
BROADCAST={ip}
HWADDR={hwaddr}
IPADDR={yourIP}
NETMASK=255.255.255.0
NETWORK={ip}
ONBOOT=yes
TYPE=Ethernet


네임서버 세팅
/etc/resolv.conf

nameserver {nameserver1}
nameserver {nameserver2}
search localhost


이렇게 하신 후, 리스타트

/etc/init.d/network restart