Networking Forums

Networking Forums > Computer Networking > Linux Networking > 2 IP in one adapter

Reply
Thread Tools Display Modes

2 IP in one adapter

 
 
Jason
Guest
Posts: n/a

 
      07-19-2004, 03:43 AM
Hi,

How do I assign 2 IP in one adapter? Redhat 7.3 in my linux box.
Thanks.

Jason


 
Reply With Quote
 
 
 
 
Skylar Thompson
Guest
Posts: n/a

 
      07-19-2004, 07:09 AM
On Mon, 19 Jul 2004 11:43:25 +0800, Jason <(E-Mail Removed)> wrote:
> Hi,
>
> How do I assign 2 IP in one adapter? Redhat 7.3 in my linux box.
> Thanks.


You're going to want IP aliasing. Do that like this:

ifconfig eth0:0 <ip-addr>

--
-- Skylar Thompson ((E-Mail Removed))
-- http://www.os2.dhs.org/~skylar/
 
Reply With Quote
 
Jason
Guest
Posts: n/a

 
      07-19-2004, 07:44 AM
It works! Thank you.


"Skylar Thompson" <(E-Mail Removed)> ¦b¶l¥ó
news:(E-Mail Removed) ¤¤¼¶¼g...
> On Mon, 19 Jul 2004 11:43:25 +0800, Jason <(E-Mail Removed)> wrote:
> > Hi,
> >
> > How do I assign 2 IP in one adapter? Redhat 7.3 in my linux box.
> > Thanks.

>
> You're going to want IP aliasing. Do that like this:
>
> ifconfig eth0:0 <ip-addr>
>
> --
> -- Skylar Thompson ((E-Mail Removed))
> -- http://www.os2.dhs.org/~skylar/



 
Reply With Quote
 
Juha Laiho
Guest
Posts: n/a

 
      07-19-2004, 08:57 AM
"Jason" <(E-Mail Removed)> said:
>How do I assign 2 IP in one adapter?


These are interface aliases; they are named based on the real interface
(f.ex. eth0), but have a trailing ":n", where n is the alias number,
so f.ex. you could have eth0:1, eth0:2, ... .

>Redhat 7.3 in my linux box.


Take a look at the ifcfg-eth* files in /etc/sysconfig/network-scripts
directory; just create a new one and "ifup" it (so, "ifup eth0:1").
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
ExpressCard wireless adapter vs PC card wireless adapter kevinla Wireless Networks 6 12-21-2008 07:18 PM
Trendnet wireless USB adapter installed on Win98SE, but winipcfg not seeing adapter Captain@BigWheelRally.com Windows Networking 1 10-07-2007 08:57 PM
Can't start internal wireless adapter after installing a buffalo adapter Knight Wireless Internet 8 08-14-2007 03:10 AM
mimo XR 802.115 cardbus adapter vs. non-mimo XR adapter aaronep@pacbell.net Wireless Internet 3 08-02-2006 06:11 PM
Belkin PCI Ethernet adapter not in adapter list Paul Plummer Windows Networking 0 11-17-2003 01:21 AM



1 2 3 4 5 6 7 8 9 10 11