Skip to content

Instantly share code, notes, and snippets.

@mrladeia
Last active March 26, 2024 20:49
Show Gist options
  • Save mrladeia/9db64b282f19163a7ccc49c4a867880c to your computer and use it in GitHub Desktop.
Save mrladeia/9db64b282f19163a7ccc49c4a867880c to your computer and use it in GitHub Desktop.
BuyVM Private IP / ipv6 / Netplan Config Ubuntu 22.04 /etc/netplan/01-netcfg.yaml
network:
version: 2
ethernets:
eth0:
dhcp4: no
dhcp6: no
addresses:
- 45.61.1xx.xxx/24 #WAN IP
- 2605:6400:40:xxxx::/48 #IPv6 WAN
nameservers:
addresses:
- 8.8.8.8
- 1.1.1.1
- 2001:4860:4860::8888
- 2606:4700:4700::1111
routes:
- to: default
via: 2605:6400:xxxx::1 #Gateway ipv4
- to: default
via: 45.61.xxx.xxx #Gateway ipv6
eth1:
dhcp4: no
addresses:
- 172.16.xxx.xxx/16 #LAN / Internal IP, /16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment