Mais de um IP na mesma interface

2002-06-13 Por tôpico Claudio Ferreira Filho

Olá a todos

Estou com uma dúvida sobre como colocar mais de um ip numa mesma ethernet .
Utilizei o comando

ifconfig eth0 192.168.1.1 255.255.255.0
ifconfig eth0 add 192.168.2.1 255.255.255.0

e ficou tranquilo . Eth0 e Eth0.0 . A dúvida é como mantê-los após a 
inicialização sem ter q digitar no braço . Como ficaria um arquivo de 
conf para essa ethernet ?
Em tempo, ouvi falar q é possível alocar outro endereço de hardware(MAC) 
numa mesma ethernet . A mesma coisa q 2 IPs na mesma placa, colocar 2 
MACs na mesma placa . Alguém já conseguiu fazer isso ? Alguma dica de 
onde procurar material sobre o assunto ?

Desde já, obrigado .

Claudio


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Mais de um IP na mesma interface

2002-06-13 Por tôpico Henrique Pedroni Neto
Olá.

Eu fiz assim:

Edite esse arquivo:
vi /etc/network/interfaces

Adicine:
auto eth0
iface eth0 inet static
address 10.1.0.1
netmask 255.255.0.0
network 10.0.0.0
broadcast 10.0.255.255

iface eth0.0 inet static
address 10.2.0.1
netmask 255.255.0.0
network 10.2.0.0
broadcast 10.2.255.255

Depois rode:
/etc/init.d/networking restart

Aqui funcionou! :)

[]'s
Henrique

 Estou com uma dúvida sobre como colocar mais de um ip numa mesma ethernet .
 Utilizei o comando
 
 ifconfig eth0 192.168.1.1 255.255.255.0
 ifconfig eth0 add 192.168.2.1 255.255.255.0
 
 e ficou tranquilo . Eth0 e Eth0.0 . A dúvida é como mantê-los após a 
 inicialização sem ter q digitar no braço . Como ficaria um arquivo de 
 conf para essa ethernet ?


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Mais de um IP na mesma interface

2002-06-13 Por tôpico Henrique Pedroni Neto
Verdade
:)
Erro de digitação!!!


Valeu!
[]'s
Henrique

 Henrique,
 
 Veja nas configurações network de suas placas... tem alguma incoerência 
 lá, não? ;)
 []'s
 
 ==
 Carlos Emir Mantovani Macedo
 Net Admin
 (19) 3256-4131
 Infosoftware Consulting
 www.infosoftware.com.br
 ==
 
 
 Esta mensagem pode conter informação confidencial e/ou privilegiada. Se 
 você não for o destinatário ou a pessoa autorizada a receber esta 
 mensagem, não pode usar, copiar ou divulgar as informações nela contidas 
 ou tomar qualquer ação baseada nessas informações. Se você recebeu esta 
 mensagem por engano, por favor avise imediatamente o remetente, 
 respondendo o e-mail e em seguida apague-o. Agradecemos sua cooperação.
 
 This message may contain confidential and/or privileged information. If 
 you are not the addressee or authorized to receive this for the addressee, 
 you must not use, copy, disclose or take any action based on this message 
 or any information herein. If you have received this message in error, 
 please advise the sender immediately by reply e-mail and delete this 
 message. Thank you for your cooperation.
 
 
 Olá.
 
 Eu fiz assim:
 
 Edite esse arquivo:
 vi /etc/network/interfaces
 
 Adicine:
 auto eth0
 iface eth0 inet static
 address 10.1.0.1
 netmask 255.255.0.0
 network 10.0.0.0
 broadcast 10.0.255.255
 
 iface eth0.0 inet static
  address 10.2.0.1
  netmask 255.255.0.0
  network 10.2.0.0
  broadcast 10.2.255.255
 
 Depois rode:
 /etc/init.d/networking restart
 
 Aqui funcionou! :)
 
 []'s
 Henrique
 
  Estou com uma dúvida sobre como colocar mais de um ip numa mesma 
 ethernet .
  Utilizei o comando
  
  ifconfig eth0 192.168.1.1 255.255.255.0
  ifconfig eth0 add 192.168.2.1 255.255.255.0
  
  e ficou tranquilo . Eth0 e Eth0.0 . A dúvida é como mantê-los após a 
  inicialização sem ter q digitar no braço . Como ficaria um arquivo de 
  conf para essa ethernet ?
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact 
 [EMAIL PROTECTED]
 
 
 
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED]
 with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Mais de um IP na mesma interface

2002-06-13 Por tôpico Henrique Pedroni Neto
OPA!

Corrigindo um erro de digitação :)

a network da erh0 deveria ser 10.1.0.0
e não 10.0.0.0 como eu coloquei!

[]'s
Henrique


Olá.

Eu fiz assim:

Edite esse arquivo:
vi /etc/network/interfaces

Adicine:
auto eth0
iface eth0 inet static
address 10.1.0.1
netmask 255.255.0.0
network 10.1.0.0
broadcast 10.0.255.255

iface eth0.0 inet static
address 10.2.0.1
netmask 255.255.0.0
network 10.2.0.0
broadcast 10.2.255.255

Depois rode:
/etc/init.d/networking restart

Aqui funcionou! :)

[]'s
Henrique


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]