Em uma caixa da Dell, a Ethernet interna estava funcionando, mas o PCI e as placas PCIe (Rosewill / RealTek) que instalei seriam mostrados como DISABLED
com lshw -c network
. Mesmo se eu os habilitei, não sobreviveria a uma reinicialização.
Veja o que funcionou para mim no servidor 18.04LTS do Ubuntu (sem gui):
Eu fiz um backup de /etc/netplan/01-netcfg.yaml
:
cp 01-netcfg.yaml 01-netcfg.yaml_180504_1232
Eu editei o conteúdo de /etc/netplan/01-netcfg.yaml
de:
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp0s25:
dhcp4: yes
para (usando o logical name:
de lshw -c network
):
# This file describes the network interfaces available on your system
# For more information, see netplan(5).
network:
version: 2
renderer: networkd
ethernets:
enp1s0:
dhcp4: yes
enp3s0:
dhcp4: yes
enp0s25:
dhcp4: yes
Aplique as alterações:
netplan --debug apply
** (generate:2169): DEBUG: 12:36:12.418: Processing input file //etc/netplan/01-netcfg.yaml..
** (generate:2169): DEBUG: 12:36:12.418: starting new processing pass
** (generate:2169): DEBUG: 12:36:12.418: enp3s0: setting default backend to 1
** (generate:2169): DEBUG: 12:36:12.418: enp0s25: setting default backend to 1
** (generate:2169): DEBUG: 12:36:12.418: enp1s0: setting default backend to 1
** (generate:2169): DEBUG: 12:36:12.418: Generating output files..
** (generate:2169): DEBUG: 12:36:12.418: NetworkManager: definition enp3s0 is not for us (backend 1)
** (generate:2169): DEBUG: 12:36:12.418: NetworkManager: definition enp0s25 is not for us (backend 1)
** (generate:2169): DEBUG: 12:36:12.418: NetworkManager: definition enp1s0 is not for us (backend 1)
DEBUG:netplan generated networkd configuration exists, restarting networkd
DEBUG:no netplan generated NM configuration exists
DEBUG:replug enp1s0: unbinding 0000:01:00.0 from /sys/bus/pci/drivers/r8169
DEBUG:replug enp1s0: rebinding 0000:01:00.0 to /sys/bus/pci/drivers/r8169
DEBUG:device enp0s25 operstate is up, not replugging
DEBUG:netplan triggering .link rules for enp0s25
DEBUG:device lo operstate is unknown, not replugging
DEBUG:netplan triggering .link rules for lo
DEBUG:replug enp3s0: unbinding 0000:03:00.0 from /sys/bus/pci/drivers/r8169
DEBUG:replug enp3s0: rebinding 0000:03:00.0 to /sys/bus/pci/drivers/r8169
Dê gorjeta a essas páginas para me mostrar o caminho:
- link
-
link (cuidado com este, pois ele não mostra recuo, que é claro, crucial no yaml)