赞
踩
如下,将 ens3f0np0 网卡改名为 nic0 ,b8:3f:d2:91:f5:4a 为 ens3f0np0 网卡的 mac 地址,通过 ip link show ens3f0np0 命令可查看
ens3f0np0:
match:
macaddress: b8:3f:d2:91:f5:4a
set-name: nic0
完整配置文件如下
cat /etc/netplan/00-installer-config.yaml
# This is the network config written by 'subiquity'
network:
ethernets:
eno1:
dhcp4: false
eno2:
dhcp4: false
optional: true
addresses:
- 10.0.10.201/24
routes:
- to: 0.0.0.0/0
via: 10.0.10.1
nameservers:
addresses:
- 119.29.29.29
- 223.5.5.5
ens3f0np0:
dhcp4: false
match:
macaddress: b8:3f:d2:91:f5:4a
set-name: nic0
addresses:
- 172.18.0.201/24
ens3f1np1:
dhcp4: false
enx2235bec919fd:
dhcp4: false
ibs3f1:
dhcp4: false
addresses:
- 172.19.0.201/24
version: 2
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。