hi,

The process of assiginingtwo ips on a lan card is as
under : -

The existing interface on ur lan card will be eth0,
hence use the ifconfig command to add a new interface
to it: 

/sbin/ifconfig eth0:1 192.168.1.200 ** in place of
this u can type ur own ip address & the same is
applicable below.

Now we have to add a route to the new interface:
/sbin/route add -host 192.168.1.200 dev
eth0:1

u can issue the ifconfig command to check whether it
is assigned or not.

make a script of the same commands at put it in ur
respective run level startup directory so that it can
be active when there is a reboot.

kshitij

--- Pinku Hussain <[EMAIL PROTECTED]> wrote:
> Read IP Alias.
> 
> cd /etc/sysconfig/network-scripts/
> cp ifcfg-eth0 ifcfg-eth0:0 
> 
> open the file ifcfg-eth0:0 using any editor.
> Change the following lines:
> DEVICE=eth0:0
> IPADDR=what_ever_u_like
> 
> restart your m/c
> 
> Thats it!!!
> 
> test it by ifconfig
> 
> 
> regards
> Pinku
> 
> 
> --- Amit Gupta <[EMAIL PROTECTED]> wrote:
> > Hi all,
> > 
> > I am a newbie to Linux. Can anybody tell me if it
> is
> > possible to
> > configure one network card for 2 seperate IPs on
> > different subnet mask.
> > 
> > Thanks in advance
> > Amit.
> > 
> > 
> >
>
-----------------------------------------------------------------------
> > LIH is all for free speech.  But it was created
> for
> > a purpose - to help
> > people discuss issues about installing and running
> > Linux.  If your
> > messages are counterproductive to this purpose,
> your
> > privileges to
> > submit messages can and will be revoked.
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Photos -- now, 100 FREE prints!
> http://photos.yahoo.com
> 
>
-----------------------------------------------------------------------
> The LIH mailing list archives are available at:
>
http://lists.linux-india.org/cgi-bin/wilma/linux-india-help


__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

-----------------------------------------------------------------------
Check out the 'What to do before posting to the list' site
for a list of things to try before posting.  The site is
at http://botsie.tripod.com/beforeposting/

Reply via email to