MAC Address da placa de rede
Ir para navegação
Ir para pesquisar
Índice
Como alterar o MacAddress
Utilizatários
apt install network-manager apt install ifupdown apt-get install macchanger
Ubuntu
ifconfig eth0 down ifconfig eth0 hw ether #NUMERO DO SEU MAC# ifconfig eth0 up
Onde eth0 é o nome da placa, para verificar os nomes us
ip a s
Atualizando DHCP placa de rede eth0
dhclient eth0
Caso o sistema gere algum erro informando que o dispositivo não foi encontrado ou está ocupado utilize o comando como root:
ifdow eth0 #a minha placa é eth0# ifconfig eht0 hw ether #seu mac,usando dois pontos# ifup
Setting up a second IP address or Virtual IP address
If you need to set up a second ip address you need to edit the /etc/network/interfaces.
sudo vi /etc/network/interfaces
auto eth0:1 iface eth0:1 inet static address 192.168.1.24 netmask 255.255.255.0 network 192.168.1.1 broadcast 192.168.1.255 gateway 192.168.1.1
Alteração do MacAddress no Boot
Crie um arquivo no diretório
/etc/network/if-up.d
ex:
pico /etc/network/if-up.d/mac-start
Em seu conteúdo
#!/bin/bash # Change the MAC address of the target network interface # Interface enp3s0 /sbin/ip link set enp3s0 address d0:50:99:a0:f0:a7 # Interface enp2s0 /sbin/ip link set enp2s0 address d0:50:99:a0:f0:a8
Defina como arquivo executável
chmod +x /etc/network/if-up.d/mac-start