Correct the syntax accordingly. Save the file and apply the changes.
What command can you use to check these have been applied?
What would the subnet mask be for this address in dotted decimal format?
Create a new file:
sudo touch /etc/netplan/02-static-ip.yamlCreate the below syntax in the file. You can also open the Firefox browser on the VM and follow this link to copy and paste the configuration: https://bit.ly/4265-5
network:
version: 2
renderer: NetworkManager
ethernets:
enp0s3:
dhcp4: false
addresses:
- 192.168.0.4/36
nameservers:
addresses:
- 192.168.0.1
gateway4: 192.168.0.1
Save the file and try the changes. What happens?
Display the routing table. Enter the command you used in the box below.