今天早上,我的 Ubuntu 18.04 服务器版中的网络不再工作:
marco@pc01:$ sudo lshw -class network
*-network DISABLED
description: Ethernet interface
product: RTL8111/8168/8411 PCI Express
Gigabit Ethernet Controller
*-network DISABLED
description: Wireles interface
product: AR9227 Wireless Network Adapter
*-network:0
description: Ethernet interface
physical id: 2
logical name : docker0
*-network:1
description: Ethernet interface
physical id: 3
Run Code Online (Sandbox Code Playgroud)
须藤纳米 /etc/nework/interfaces :
iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
network 192.168.1.1
broadcast 192.168.0.255
post-up iptables-restore <
/etc/iptables.up.rules
gateway 192.168.1.1
dns-nameservers 192.168.0.5 8.8.8.8
marco@pc01:$ sudo service network-manager restart
Failed to …Run Code Online (Sandbox Code Playgroud)