Home > OS >  Ubuntu 18.04 system add card about VMware virtual machine
Ubuntu 18.04 system add card about VMware virtual machine

Time:11-18

Want to add a card, according to some online information, modify/etc/netplan yaml files under/can
Finish modification as follows:
# Let NetworkManager manage all devices on this system
Network:
2 # version:
# the renderer: NetworkManager
Ethernets:
Ens33:
Dhcp4: no
Dhcp6: no
Addresses: [192.168.68.140/24]
Nameservers:
Addresses: [8.8.8.8, 8.8.4.4]
Eth1:
Dhcp4: no
Dhcp6: no
Addresses: [192.168.68.142/24]
Gateway4:192.168.68.140
Nameservers:
Addresses: [8.8.8.8, 8.8.4.4]
Version: 2
Type the command sudo netplan ens33 nic IP address is changed after the apply, but no eth1 adapter,
Type the command ifconfig eth1 up times wrong eth1: an error occurred when access interface sign: no equipment
According to the traditional method to modify the/etc/network/interface file
Enter sudo/etc/init. D/networking restart after an error:

[...]. Restarting networking (via systemctl) : networking serviceJob for networking. The service failed because th
E control process exited with the error code. See "systemctl status. Networking service" and "journalctl - xe" for details.
Failed!

Input systemctl status networking. Results after the service the following

Networking. Service - Raise the network interfaces
The Loaded: the Loaded (./lib/systemd/system/networking service; Enabled. Vendor preset: enabled)
Active: failed (Result: exit - code) since Fri 2020-06-12 16:20:58 CST; 39 s line
Docs: man: interfaces (5)
Process: ExecStop=11719/sbin/ifdown - a - read - environment - exclude=lo (code=exited, status=0/SUCCESS)
Process: ExecStart=12019/sbin/ifup -a - read - environment (code=exited, status=1/FAILURE)
Process: ExecStartPre=/bin/sh - 12016 c [" $CONFIGURE_INTERFACES! "=" no "] & amp; & [-n "$(ifquery - read - envir
The Main PID: 12019 (code=exited, status=1/FAILURE)

June 12 16:20:57 server - virtual machine - systemd [1] : Starting Raise network interfaces...
June 12 16:20:57 server -- virtual machine ifup [12019] : always find a device "eth0
"June 12 16:20:57 server -- virtual machine ifup [12019] : Failed to "bringing up eth0.
June 12 16:20:58 server -- virtual machine ifup [12019] : always find a device "eth1"
June 12 16:20:58 server -- virtual machine ifup [12019] : Failed to "bringing up eth1.
June 12 16:20:58 server -- virtual machine systemd [1] : networking. Service: the Main process exited, code=exited, the sta
June 12 16:20:58 server -- virtual machine systemd [1] : networking. Service: Failed with result 'exit - code.
June 12 16:20:58 server -- virtual machine systemd [1] : Failed to start the -raise network interfaces.


Bosses advice on how to add a second network card
  • Related