Ferramentas do usuário

Ferramentas do site


infra-estrutura:linux:alterar_nomes_interfaces_enp0s1_para_nomes_antigos

Essa é uma revisão anterior do documento!


Abrir o arquivo /etc/default/grub e procurar a linha que contém a string GRUB_CMDLINE_LINUX, é a variável que contém as entradas que são adicionadas a linha de comando do kernel.

Adicione ambas opções net.ifnames=0 biosdevname=0 dentro da variável GRUB_CMDLINE_LINUX.

# If you change this file, run 'update-grub' afterwards to update
# /boot/grub/grub.cfg.
# For full documentation of the options in this file, see:
#   info -f grub -n 'Simple configuration'

GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_DISTRIBUTOR=`lsb_release -i -s 2> /dev/null || echo Debian`
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash"
**GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"**
GRUB_DISABLE_RECOVERY="true"