우분투 IP설정

리눅스 2017. 5. 17. 09:11

1. ip설정


vi /etc/network/interfaces


# The loopback network interface

auto lo

iface lo inet loopback


# The primary network interface

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


# 자동으로 받을려면

# The primary network interface

auto eth0

iface eth0 inet dhcp






2. nameserver 설정


vi /etc/resolv.conf

dns-nameservers 168.126.63.1 168.126.63.2


Posted by 올케이알
,