Created
October 25, 2024 20:45
-
-
Save serverok/712b85432d188f16c9d32e44455b419a to your computer and use it in GitHub Desktop.
netplan bridge network config
This file contains 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
before | |
root@ns5028044:~# cat /etc/netplan/50-cloud-init.yaml | |
network: | |
version: 2 | |
ethernets: | |
eno1np0: | |
match: | |
macaddress: "9c:6b:00:3f:4f:f9" | |
addresses: | |
- "2402:1f00:8001:226d::/64" | |
- "2402:1f00:8001:226d::1/64" | |
- "15.235.216.109/32" | |
nameservers: | |
addresses: | |
- 2001:41d0:3:163::1 | |
accept-ra: false | |
set-name: "eno1np0" | |
routes: | |
- on-link: true | |
to: "default" | |
via: "2402:1f00:8001:22ff:ff:ff:ff:ff" | |
- on-link: true | |
to: "default" | |
via: "15.235.216.254" | |
root@ns5028044:~# | |
after | |
root@ns5028044:~# cat /etc/netplan/50-cloud-init.yaml | |
network: | |
version: 2 | |
ethernets: | |
eno1np0: | |
match: | |
macaddress: "9c:6b:00:3f:4f:f9" | |
bridges: | |
br0: | |
interfaces: [eno1np0] | |
addresses: | |
- "2402:1f00:8001:226d::/64" | |
- "2402:1f00:8001:226d::1/64" | |
- "15.235.216.109/32" | |
nameservers: | |
addresses: | |
- 2001:41d0:3:163::1 | |
accept-ra: false | |
routes: | |
- on-link: true | |
to: "default" | |
via: "2402:1f00:8001:22ff:ff:ff:ff:ff" | |
- on-link: true | |
to: "default" | |
via: "15.235.216.254" | |
root@ns5028044:~# |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment