การตั้งค่า IP ALIAS บน NETPLAN
#sudo vi /etc/netplan/01-netcfg.yaml
network:
version: 2
renderer: networkd
ethernets:
eno1:
addresses:
- IP1/24
- IP2/24
- IP3/24
gateway4: IPGATEWAY
nameservers:
search: [ domain ]
addresses:
- "IPDNS1"
- "IPDNS1"
ทำการ restart network
#ip -4 addr list
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
inet IP1/24 brd ......
valid_lft forever preferred_lft forever
inet IP2/24 brd ......
valid_lft forever preferred_lft forever
inet IP3/24 brd ......
valid_lft forever preferred_lft forever
- Log in to post comments
- 40 views