[nos-bbs] Device alias IP addresses

Jay Nugent jjn at nuge.com
Wed May 23 13:57:26 EDT 2007


Greetings,

On Wed, 23 May 2007, Maiko Langelaar (ve4klm) wrote:

> Hi Mitch,
> 
> > I can tell you all that I have exhausted my printed manuals, and have
> > carefully searched the Fedora documentation set for the answer ...
> 
> According to an FAQ I found :
> 
>     IP Alias is standard in kernels 2.0.x and 2.2.x, and available as
>     a compile-time option in 2.4.x (IP Alias has been deprecated in 2.4.x
>     and replaced by a more powerful firewalling mechanism.)
> 
> That essentially says you won't find it in more recent linux distros,
> not by that name anways. IP Aliasing has been *replaced* with :
> 
>     iproute2 and iptables
> 
> Some worthy information that I managed to find on the topic is below :
> 
> 1) You can learn some about it at lartc.org or other such sites.
> 
> 2) I don't know what he means by "more powerful _firewalling_ mechanism"
>     but iproute2 package which replaces whole family of ifconfig/arp/route
>     commands, gives you a neat and more straight forward way of dealing
>     with the IP aliasing.

 
    What Skip is looking for is "ethernet aliases", that is, when a single 
ethernet interface can support multiple IP addresses.

   See:  man ifconfig

-----
interface
       The name of the interface.  This is usually a driver name followed 
       by a  unit  number, for  example  eth0  for  the  first Ethernet 
       interface. If your kernel supports alias interfaces, you can 
       specify them with eth0:0 for the first alias of eth0. You can use
       them to assign a second address. To delete an alias interface use 
       ifconfig eth0:0 down.  All aliases are deleted, if you delete the 
       first (primary).
-----


   For example:  Skips first (or primary) IP assignment for eth0 on his
Linux box may be something like 192.168.1.12.  To add a 44-net address to
this same eth0 interface he would need to issue the comand:

   ifconfig eth0:2 44.102.132.140


   To confirm that BOTH interfaces are indeed ifconfig'ed correctly, 
simply issue the command 'ifconfig':

# ifconfig
eth0      Link encap:Ethernet  HWaddr 00:10:DC:38:FA:D9
          inet addr:192.168.1.12  Bcast:192.168.1.255  Mask:255.255.255.0
          inet6 addr: fe80::210:dcff:fe38:fad9/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7635144 errors:5 dropped:0 overruns:0 frame:0
          TX packets:3128053 errors:0 dropped:0 overruns:0 carrier:0
          collisions:15567 txqueuelen:1000
          RX bytes:1384136412 (1.2 GiB)  TX bytes:232378712 (221.6 MiB)
          Interrupt:177 Base address:0x2000

eth0:2    Link encap:Ethernet  HWaddr 00:10:DC:38:FA:D9
          inet addr:44.102.132.140  Bcast:44.255.255.255  Mask:255.0.0.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:177 Base address:0x2000



   Add a route from your JNOS box to your Linux workstation (route add
44.102.132.140 eth0) and then add a route on Linux to push all 44.0.0.0/8
traffic towards your JNOS box, and your Linux box is now a workstation on
the AMPRnet! :)

      --- Jay


P.S. Skip, wb8rcr.ampr.org is down right now.  So if you are testing to 
     see if you can pull his webpage and weather maps via the AMPRnet, ya 
     might wanna try again when his node is back online.  

             
"Getting rid of terrorism is like getting rid of dandruff.  It cannot
 be done completely no matter how hard you try." -- Gore Vidal
+------------------------------------------------------------------------+
| Jay Nugent   jjn at nuge.com    (734)484-5105    (734)544-4326/Fax        |
| Nugent Telecommunications  [www.nuge.com]     (734)649-0851/Cell       |
|   Internet Consulting/Linux SysAdmin/Engineering & Design/ISP Reseller |
| ISP Monitoring [www.ispmonitor.net] ISP & Modem Performance Monitoring |
| Web-Pegasus    [www.webpegasus.com] Web Hosting/DNS Hosting/Shell Accts|
| LinuxNIC, Inc. [www.linuxnic.net]   Registrar of the .linux TLD        |
+------------------------------------------------------------------------+
  1:01pm  up 73 days,  9:05,  3 users,  load average: 0.07, 0.11, 0.09





More information about the nos-bbs mailing list