linux

우분투 ip설정

bogus919 2013. 8. 30. 15:45

1. ip설정

vi /etc/network/interfaces


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


자동으로 받을려면


auto lo
iface lo inet loopback
 
auto eth0
iface eth0 inet dhcp


2. nameserver 설정

vi /etc/resolv.conf


dns-nameservers 168.126.63.1 168.126.63.2