centos默认启动网卡未使能
/etc/sysconfig/network-scripts/ifcfg-enp0s3
BOOTPROTO=dhcp
ONBOOT=yes
ubuntu server默认网卡未使能,如何配置网络
/etc/network/interfaces:
auto enp0s3
iface enp0s3 inet dhcp
/etc/init.d/networking restart
ubuntu18.04 server,启用了新的网络工具netplan:
/etc/netplan/01-netcfg.yaml
network:
version: 2
ethernets:
eth0:
dhcp4: true
match:
macaddress: 52:54:00:d4:51:ad
set-name: eth0