# cd /etc/network
# vi interfaces

-- 고정IP설정
auto lo
iface lo inet loopback

auto eth0
iface eth0 inet static
address 192.168.0.1
netmask 255.255.255.0
network 192.168.0.0
broadcast 192.168.0.255
gateway 192.168.0.1
dns-nameservers 168.126.63.1 168.126.63.2




-- DHCP설정
auto lo
iface lo inet loopback
 
auto eth0
iface eth0 inet dhcp
 
 
-- 네임서버 설정
# cd /etc
 
vi resoulv.conf

nameserver 168.126.63.1
nameserver 168.126.63.2

 
# ifup eth0


-- networking 재시작
# /etc/init.d/networking stop
# /etc/init.d/networking start