Figured it out,  iproute2 docs rather vague.

ip addr add 3.3.3.5/24 dev eth0  label eth0:0

SO:  I can use  -o eth0:0 as a match to NAT?  cool.






Ray Olszewski <[EMAIL PROTECTED]> on 10/31/2002 12:56:56 PM

To:   Phillip Watts/austin/Nlynx@Nlynx
cc:   [EMAIL PROTECTED]

Subject:  Re: [leaf-user] Weird NAT/routing problem. (fwd)



I cc'd the LEAF list with this reply.

At 12:41 PM 10/31/02 -0600, [EMAIL PROTECTED] wrote:

>How do you define a virtual interface,   :0.
>This would definitely solve the problem.

The correct name for this is IP Aliasing, BTW, and it requires a kernel
module to work. I haven't actually done it with LEAF or using "ip". The
basics of how to do it (although the examples use ifconfig) are here:

         http://www.ibiblio.org/mdw/HOWTO/mini/IP-Alias/


>what I do  is:  ip addr 3.3.3.5/24 dev eth0
>which does not produce an eth0:0

Again, I have not used "ip" with this, and, as you probably already know,
there is no convenient online version of an "ip" command reference (or is
there?). So I'm left to guess based on analogies to "ifconfig". If the
appropriate module is loaded (or the capability is compiled in the kernel,
I suppose), it *might* work to do -- "ip addr 3.3.3.5/24 dev eth0:0". (I
didn't test this because I don't have the IP_alias module installed on my
Linux workstation or my router.)


--
-------------------------------------------"Never tell me the odds!"--------
Ray Olszewski                      -- Han Solo
Palo Alto, California, USA                 [EMAIL PROTECTED]
-------------------------------------------------------------------------------



-------------------------------------------------------
This sf.net email is sponsored by: Influence the future
of Java(TM) technology. Join the Java Community
Process(SM) (JCP(SM)) program now.
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html






-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to