![Raspberry Pi용 Ubuntu Server 18.04.5에 대한 Netplan 구성 문제](https://rvso.com/image/928535/Raspberry%20Pi%EC%9A%A9%20Ubuntu%20Server%2018.04.5%EC%97%90%20%EB%8C%80%ED%95%9C%20Netplan%20%EA%B5%AC%EC%84%B1%20%EB%AC%B8%EC%A0%9C.png)
그래서 로봇 프로젝트를 위해 Ubuntu와 함께 Raspberry Pi를 설정하고 싶습니다. 팔로우 중이에요이 가이드.
말한 대로 /etc/netplan/50-cloud-init.yaml을 다음과 같이 변경합니다.
network:
version: 2
renderer: networkd
# Renderer can be 'networkd' or 'NetworkManager'
ethernets:
eth0:
optional: true
dhcp4: false
wifis:
wlan0:
optional: true
dhcp4: true
access-points:
"YOUR-SSID-NAME":
password: "YOUR-PASSWORD"
# uncomment the line below if you're using a Microsoft DHCP Server
#dhcp-identifier: mac
참고: 저는 macOS 시스템을 사용하고 있기 때문에 마지막 줄의 주석 처리를 제거하지 않았지만 그것이 맞는지는 확실하지 않습니다.
문제는:
다음을 입력하면:
sudo netplan --debug try
sudo netplan --debug generate
그것은 나에게 "알 수 없는 키워드 "wlan0"을 제공합니다.
오류를 Google에 검색해 보았지만 웹에서만 다른 종류의 오류를 발견했습니다. 누군가가 나를 도울 수 있기를 바랍니다.
답변1
.yaml 파일에 적절한 형식이 없습니다...
다음과 같아야 합니다... 동일한 들여쓰기, 간격, 탭 없음:
network:
version: 2
renderer: networkd
ethernets:
eth0:
dhcp4: true
optional: true
wifis:
wlan0:
dhcp4: true
access-points:
"YOUR-SSID-NAME":
password: "YOUR-PASSWORD"
sudo netplan generate
sudo netplan apply
reboot
wpasupplicant도 설치해야 합니다...
sudo apt-get update
sudo apt-get install wpasupplicant
reboot
.yaml이 계속 덮어쓰이는 경우...
다음을 사용하여 /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg를 생성해야 할 수도 있습니다.
network: {config: disabled}