...
코드 블럭 | ||||
---|---|---|---|---|
| ||||
network:
ethernets:
# Network A - Default Route
eno1:
mtu: 9000
dhcp4: false
addresses:
- 172.16.0.20/24
gateway4: 172.16.0.1
nameservers:
addresses: [8.8.8.8, 8.8.4.4]
# Network B
eno2:
mtu: 9000
dhcp4: false
addresses:
- 192.168.0.10/24
# gateway4: 192.168.0.1 # important - disable default gateway for Network B
routes:
# route for internal (if needed)
- to: 192.168.0.10/24
via: 192.168.0.1
metric: 0
# Network B
eno3:
dhcp4: true
dhcp4-overrides:
use-routes: false
routes:
- to: 192.168.100.0/24
via: 192.168.100.1
metric: 0
version: 2 |
interfaces 예제
https://wiki.debian.org/NetworkConfiguration
...