joy wrote:
> kernel.lover wrote:
>
>> Hello,
>> I want to assign 2 static ip addresses to single NIC. How can
>> i do that? Also i want to be able to ping to both IP addresses whithin
>> LAN. I am using redhat 9.
>> Also can it be possible with setting eth0 as 10.0.0.100 and
>> 172.16.1.100
>> regards,
>> cranium.
>
>
> you can add alias for network interface using ipconfig ex.:
>
> ifconfig eth0 172.16.0.0 netmask 255.255.255.0 up
> ifconfig eth0:1 10.0.0.1 netmask 255.255.255.240 up
Today it's more advisable to use the command ip and
not aliases, with ip you can give "real" IPs to your
interface.
Regards.
>
> bye
> pep
--
Jose Maria Lopez Hernandez
Director Tecnico de bgSEC
(E-Mail Removed)
bgSEC Seguridad y Consultoria de Sistemas Informaticos
http://www.bgsec.com
ESPAÑA
The only people for me are the mad ones -- the ones who are mad to live,
mad to talk, mad to be saved, desirous of everything at the same time,
the ones who never yawn or say a commonplace thing, but burn, burn, burn
like fabulous yellow Roman candles.
-- Jack Kerouac, "On the Road"