OVH ubuntu服务器新增添加IP

网卡文件位置:/etc/netplan

# This file is generated from information provided by the datasource. Changes
# to it will not persist across an instance reboot. To disable cloud-init’s
# network configuration capabilities, write a file
# /etc/cloud/cloud.cfg.d/99-disable-network-config.cfg with the following:
# network: {config: disabled}
network:
version: 2
ethernets:
ens3:
accept-ra: false
addresses:
– 2001:41d0:701:1100::7a59/128
第二个IP/32 # 添加第二个IP
dhcp4: true
match:
macaddress: fa:16:3e:06:35:3c
mtu: 1500
nameservers:
addresses:
– 213.186.33.99
search: []
routes:
– to: 2001:41d0:701:1100::1/64
via: ‘::’
– to: ::/0
via: 2001:41d0:701:1100::1
set-name: ens3

 

 

 

发表回复