[해결방법] 라즈베리파이 고정 아이피 설정하기

This topic contains 0 replies, has 1 voice, and was last updated by  technote 2017-12-31 11:16.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #264

    technote
    Keymaster

    예전 라즈베리파이나 일반 리눅스에서는 아이피 고정을 위해서 /etc/network/interfaces 파일을 설정한다.

    하지만 막상 라즈베리파이에서 해당 파일을 열어보니 뭔가 이상하다.
    # interfaces(5) file used by ifup(8) and ifdown(8) # Please note that this file is written to be used with dhcpcd # For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf' # Include files from /etc/network/interfaces.d: source-directory /etc/network/interfaces.d

    알아보니 이제는 /etc/network/interfaces 가 아닌 /etc/dhcpcd.conf를 수정한다.
    가장 아랫 줄 근처에 보면 아래와 같은 항목이 있는데 아래와 같이 주석을 제거해주고 상황에 맞게 수정한다.
    # Example static IP configuration: interface eth0 static ip_address=192.168.0.35/24 #static ip6_address=fd51:42f8:caae:d92e::ff/64 static routers=192.168.0.1 #static domain_name_servers=192.168.0.1 8.8.8.8 fd51:42f8:caae:d92e::1

    • This topic was modified 8 months, 3 weeks ago by  technote.
    • This topic was modified 3 months ago by  technote.
    • This topic was modified 2 months, 2 weeks ago by  technote.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.