Last active
October 21, 2025 01:50
-
-
Save rakeshtembhurne/4a35175006bb220eba2aa50e84d46976 to your computer and use it in GitHub Desktop.
Ubuntu network config with disabled ipv6 and having fixed IP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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