como renomear wlp2s0 para wlan0 no ubuntu 17.04

0

Tenho ubuntu 17.04 , mas não consigo usar aircrack-ng . Eu digitei "ifconfig" mas não há wlan0 apenas wlp2s0. Como mudar isso? rede

    
por Navod Rathnayake 22.06.2017 / 14:34

2 respostas

3

Para recuperar ethX e wlanX , edite o arquivo grub.

$ sudo nano /etc/default/grub

Procure por GRUB_CMDLINE_LINUX e adicione o seguinte net.ifnames=0 biosdevname=0 .

De:

 GRUB_CMDLINE_LINUX=""

Para:

 GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"

Gere um novo arquivo grub usando o seguinte comando.

$ sudo grub-mkconfig -o /boot/grub/grub.cfg

Generating grub configuration file ...
Warning: Setting GRUB_TIMEOUT to a non-zero value when GRUB_HIDDEN_TIMEOUT is set is no longer supported.
Found linux image: /boot/vmlinuz-4.4.0-15-generic
Found initrd image: /boot/initrd.img-4.4.0-15-generic
Found memtest86+ image: /memtest86+.elf
Found memtest86+ image: /memtest86+.bin
done

Reinicie o PC

    
por 2707974 22.06.2017 / 14:39
0

Gente, por favor, não renomeie. Isso vai fazer você erro de rede pc Eu estou tentando isso e eu recebo erro. Tente renomear GRUB_CMDLINE_LINUX para GRUB_CMDLINE_LINUX="" E isso será corrigido

    
por ACTIOON CRUZHER 13.06.2018 / 15:17