static ip 20.04 desktop
I have a fresh VM installed from ubuntu-
lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal
cat 99_config.yaml
network:
version: 2
renderer: NetworkManager
ethernets:
ens3:
addresses:
- 10.59.2.30/24
gateway4: 10.59.2.1
nameservers:
search: [mydomain, otherdomain]
cat 01-network-
network:
version: 2
renderer: NetworkManager
When I leave only 01-network-
ip route show
default via 10.59.2.1 dev ens3 proto dhcp metric 100
10.59.2.0/24 dev ens3 proto kernel scope link src 10.59.2.124 metric 100
169.254.0.0/16 dev ens3 scope link metric 1000
When I leave only 99_config.yaml in /etc/netplan and do sudo netplan apply I'm NOT able to browse the internet, nor ping the gateway. From another computer I am able to ping the static IP and SSH into host remotely.
ip route show
default via 10.59.2.1 dev ens3 proto static metric 20100
10.59.2.0/24 dev ens3 proto kernel scope link src 10.59.2.37 metric 100
169.254.0.0/16 dev ens3 scope link metric 1000
I'm using same 99_config.yaml (different IP) on VMs created using ubuntu-
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Ricardo Ortega
- Solved:
- Last query:
- Last reply: