[참고]

라즈베리파이 유선랜 ip 고정 할당 설정 - Raspberry pi ethernet setup static ip address :

https://altongmon.tistory.com/637

 

[실행]

1. $ifconfig (현재의 네트워크 설정값 표시)

2. $netstat -nr (게이트웨이 주소 확인)

3. $sudo nano /etc/dhcpcd.conf (본인이 사용하는 에디터 vi 등으로 파일 열기)

4. (유선 설정일 경우) eth0의 static ip_address, static routers, static domain_name_servers 의 앞에 '#' 삭제

5. static ip_address는 설정하고자 하는 ip로 수정(ifconfig로 확인한 값)

6. static routers와 static domain_name_servers는 게이트웨이 주소(netstat -nr로 확인한 값)로 변경

7. 저장 후 재부팅

8. 터미널 - $ifconfig (변경 사항 확인하기)

+ Recent posts