root@test:~# vi /etc/netplan/01-netcfg.yaml
# This file describes the network interfaces available on your system # For more information, see netplan(5). network: version: 2 renderer: networkd ethernets: eth0: addresses: - 192.168.0.111/24 gateway4: 192.168.0.1 nameservers: addresses: [168.126.63.1,8.8.4.4]
24:255.255.255.0
16: 255.255.0.0
Step 3. config를 반영한다.
root@test:~# sudo netplan apply
댓글
댓글 쓰기