Skip to content

Instantly share code, notes, and snippets.

@rakeshtembhurne
Last active October 21, 2025 01:50
Show Gist options
  • Save rakeshtembhurne/4a35175006bb220eba2aa50e84d46976 to your computer and use it in GitHub Desktop.
Save rakeshtembhurne/4a35175006bb220eba2aa50e84d46976 to your computer and use it in GitHub Desktop.
Ubuntu network config with disabled ipv6 and having fixed IP
network:
version: 2
ethernets:
eno1:
dhcp4: false
nameservers:
addresses:
- 8.8.8.8
- 8.8.4.4
dhcp6: false
link-local: [ ipv4 ]
addresses:
- 192.168.29.213/24
routes:
- to: default
via: 192.168.29.1
# sudo vim /etc/netplan/50-cloud-init.yaml
# sudo netplan apply
# ip addr show eno1
# ip route show
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment