Model | Raspberry PI B+ |
OS | RASPBIAN 3.12 |
문제점
인터넷 접속을 위해 고정 ip설정과 유동 ip 설정을 하기 위한 방법.
해결 방안
1. interfaces 파일을 편집기를 통해 실행한다.
sudo vi /etc/network/interfaces
2. 유동IP로 되어있는 기본 설정을 주석처리하고 고정IP를 추가한다.
#iface lo inet loopback #iface eth0 inet dhcp auto eth0 iface eth0 inet static address [ip 주소] network [ip주소에 마지막을 0으로] netmask [서브넷마스크] gateway [기본 게이트웨이] broadcast [기본DNS서버]
3. 저장한 뒤, 네트웍을 재시작한다.
/etc/init.d/networking restart 혹은 sudo /etc/init.d/networking restart
오류 사항
에러메세지 ifup failed to open statefile /run/network/ifstate permission denied 해결방안 위와 같은 에러 메시지가 발생할 경우 라즈베리파이를 재부팅하였더니 해결되었다.
에러메세지 Running /etc/init.d/networking restart is deprecated because it may not re-enable some interfaces 해결방안 $ sudo ifdown eth0 $ sudo ifup eth0
출처 : http://blog.opid.kr/445
'Raspberry Pi' 카테고리의 다른 글
[Raspberrypi] 라즈베리파이 비밀번호 분실시 초기화 하기 (0) | 2015.06.01 |
---|---|
[Raspberrypi] 라즈베리파이 OS 설치하기 (1) | 2015.02.24 |
[Raspberrypi] SD카드 볼륨이 이상해요..T^T (0) | 2015.02.24 |
[Raspberrypi] 라즈베리파이 SD카드 포멧 (1) | 2015.02.24 |
[도서] 라즈베리 파이 활용백서, 파이썬 표준 라이브러리 (0) | 2014.05.27 |