...
코드 블럭 | ||||||
---|---|---|---|---|---|---|
| ||||||
# cat /etc/netplan/50-cloud-init.yaml
network:
version: 2
ethernets:
enp1s0:
mtu: 1500
addresses:
- aaa.bbb.207.9/24
nameservers:
addresses:
- 8.8.8.8
routes:
- to: default
via: aaa.bbb.207.1
enp7s0:
mtu: 9000
addresses:
- ccc.ddd.248.239/24
routes:
- to: ccc.ddd.248.0/24
via: ccc.ddd.248.1
- to: 1.1.1.0/24
via: ccc.ddd.248.1
# netplan apply |
Interfaces
코드 블럭 | ||||||
---|---|---|---|---|---|---|
| ||||||
# ip addr 1: lo: 2: enp1s0: mtu 1500 inet aaa.bbb.207.9/24 brd aaa.bbb.207.255 scope global enp1s0 3: enp7s0: mtu 9000 inet ccc.ddd.248.239/24 brd aaa.bbb.248.255 scope global enp7s0 |
...