본문 바로가기

OS

Ubuntu - IP 설정

# 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.2.109
        netmask 255.255.255.0
        network 192.168.2.0
        gateway 192.168.2.2
        ## dns-* options are implemented by the resolvconf package, if installed
        dns-nameservers 203.248.252.2

auto eth1
iface eth1 inet static
        address 10.1.1.3
        netmask 255.255.255.0
        network 10.1.1.0

auto eth2
iface eth2 inet manual
        up ifconfig eth2 up