Yongbok Blog

Ubuntu 네트워크 설정

Ubuntu 리눅스에서 네트워크 설정을 하는 방법입니다.
이 방법은 고정아이피를 설정 할때 많이 사용됩니다.

# vi /etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0
# 고정 아이피 설정
iface eth0 inet static
    address 192.168.10.2
    netmask 255.255.255.0
    network 192.168.10.0
    broadcast 192.168.10.255
    gateway 192.168.10.1
    # dns-* options are implemented by the resolvconf package, if installed
    dns-nameservers 168.126.63.1 168.126.63.2

네임 서버 설정

# vi /etc/resolv.conf

search kns.korenet.net
nameserver 168.126.63.1
nameserver 168.126.63.2

네트워크 재시작을 합니다.

/etc/init.d/networking restart

Exit mobile version