본문 바로가기

Study/Linux

Ubuntu 고정 IP 설정

[ Ubuntu 고정 IP 설정 ]


# 수정해야 할 부분 

/etc/network/interfaces


# 추가/수정해야 할 내용 example

 iface eth0 inet static
        address 210.129.123.138
        netmask 255.255.255.0 
        gateway 210.129.123.1
        # network 210.129.123.0
        # broadcast 210.129.123.255


# 수정완료 후, networking 서비스 재시작

sudo /etc/init.d/networking restart