Re: Routes with ranges of destinations

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 01, 2005 at 10:03:24PM +0100, Alpt wrote:
>  192.168.1.45 = c0a8012d
>  192.168.1.45 + 688 = c0a803dd = 192.168.3.221

This remains a very strange request. Routing is designed to work with
CIDR blocks. No operating system can do what you want directly, because
it's hard to make it fast and it's easier to simply setup your network
so you don't have this problem.

That said, you don't need to make a route for each destination. For
example, the minimum set is:

192.168.1.45/32
192.168.1.46/31
192.168.1.48/28
192.168.1.64/26
192.168.1.128/25
192.168.2.0/24
192.168.3.0/25
192.168.3.128/26
192.168.3.192/28
192.168.3.208/29
192.168.3.216/30
192.168.3.220/31

The more you align the beginning and end with powers of two, the
shorter the list becomes. But I'm still confused what possible network
setup you could have that would require such a strange setup.
-- 
Martijn van Oosterhout   <kleptog@xxxxxxxxx>   http://svana.org/kleptog/
> Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a
> tool for doing 5% of the work and then sitting around waiting for someone
> else to do the other 95% so you can sue them.

Attachment: pgpVSUQQ4ulh6.pgp
Description: PGP signature


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux