Last active
August 14, 2025 16:49
-
-
Save muhamad-ridwant-tech/e99a62c5f439f7bfe722f5c54c78098e to your computer and use it in GitHub Desktop.
netplan config for ubuntu netwok dengan dua adapter erthenet
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 | |
renderer: networkd | |
ethernets: | |
enp1s0: ## Interface sebagai slave dari br0 | |
dhcp4: false | |
optional: true | |
enp5s0: ## Interface sebagai internal traffic only | |
addresses: | |
- 192.168.100.103/24 | |
dhcp4: false | |
optional: true | |
# Tidak ada default route di sini, karena internal traffic/ local routing | |
bridges: | |
br0: ## config IP di dapat dari slave | |
interfaces: [enp1s0] | |
addresses: | |
- 192.168.124.103/24 | |
routes: | |
- to: default | |
via: 192.168.124.1 | |
nameservers: | |
addresses: [8.8.8.8, 8.8.4.4] | |
dhcp4: false | |
optional: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment