[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mudando o MAC (HWaddr) de uma interface ethernet



On Wed, 21 May 2003 21:55:43 +0000
Michelle Ribeiro <michelle@cipsga.org.br> wrote:

> Você pode fazer em qualquer distribuição Linux com o ifconfig, opção hw. 
> 
> Um man ifconfig vai te ajudar bastante. :)

Ok, feito.
Agora estou em dúvida onde colocar esses parâmetros para que possam ser
passados no momento da inicialização.

meu /etc/network/interfaces está assim:

### etherconf DEBCONF AREA. DO NOT EDIT THIS AREA OR INSERT TEXT BEFORE IT.
auto lo eth0 eth1

iface lo inet loopback

iface eth0 inet static
        address 192.168.0.2
        netmask 255.255.255.0
        broadcast 192.168.255.255
        gateway 192.168.0.1

iface eth1 inet dhcp
### END OF DEBCONF AREA.  PLACE YOUR EDITS BELOW; THEY WILL BE PRESERVED.

Preciso passar  'hw ether XX:XX:XX:XX:XX:XX' ao ifconfig da 'eth1'. Já tentei
colocar logo abaixo mas me parece que foi ignorado.

Além disso, preciso que a rota seja sempre estabelecida no boot, no caso 'route
add default dev eth1'. Qual o procedimento/local seria indicado?

Grato,

-- 
Douglas Augusto



Reply to: