본문 바로가기

이것저것 배운것/라즈베리파이

3. 고정IP

Path


/etc/network/interfaces



auto lo


iface lo inet loopback    // ???

iface eth0 inet dhcp     // ???


// 추가설정 부분

auto eth0

iface eth0 inet static   //    static 일 경우 고정. dhcp 일 경우 자동

address               //    고정IP주소

network               //    IP주소의 마지막단위만 0

netmask               //    Subnet Mask

gateway               //    Default Gateway

broadcast              //    Default DNS Server

// 여기까지


allow-hotplug wlan0

iface wlan0 inet manual

wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp