Skip to content

Instantly share code, notes, and snippets.

@muhamad-ridwant-tech
Last active August 14, 2025 16:49
Show Gist options
  • Save muhamad-ridwant-tech/e99a62c5f439f7bfe722f5c54c78098e to your computer and use it in GitHub Desktop.
Save muhamad-ridwant-tech/e99a62c5f439f7bfe722f5c54c78098e to your computer and use it in GitHub Desktop.
netplan config for ubuntu netwok dengan dua adapter erthenet
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