vSphere 自定义规范和 Ubuntu 17.10

vSphere 自定义规范和 Ubuntu 17.10

是否有人注意到#vSphere Customization Specification 和#Ubuntu 17.10 (GNU/Linux 4.13.0-25-generic x86_64) 存在问题 – 现在网络设置位于:/etc/netplan/01-netcfg.yaml,我又回到了手动更新 IP 信息(服务器命名仍然有效)。

尽管传统方式/etc/network/interfaces反映了定制过程提供的信息,但主机仍然会获取 DHCP 颁发的地址。经过一番挖掘,我发现此信息不再被引用,现在被提取自: /etc/netplan/01-netcfg.yaml

以下是 IP 配置详细信息

/etc/network/interfaces

# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

source /etc/network/interfaces.d/*

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto ens160
#iface ens160 inet dhcp
iface ens160 inet static
address 10.200.255.6
netmask 255.255.255.0
network 10.200.255.0
broadcast 10.0.255.255
gateway 10.200.255.1
dns-nameservers 10.200.255.1

/etc/netplan/01-netcfg.yaml

# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
ens160:
dhcp4: no
addresses: [10.200.255.6/24]
gateway4: 10.200.255.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]

分享方式http://jermsmit.com/vsphere-customization-specification-and-ubuntu-17-10/

相关内容