Re: Shaping Device Aliases

Linux Advanced Routing and Traffic Control

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

 



On Friday 16 Jan 2004 06:23, Damion de Soto wrote:
> Gordan Bobic wrote:
> > I understand that device aliases (e.g. eth2:3) are not shapeable.
> > Does anybody know if this functionality is planned in the future?
>
> None of the new(er) networking tools recognise device aliases,
> because on all recent linux releases, aliases don't exist.
> the ethX:X notation is a legacy notation used only by the ifconfig
> program. everything else just sees a ethX with more than one IP
> address.
>
> So you just run your shaping rules on the real interfaces, and
> restrict it's operation with IP address filtering.

Yes, I am aware of that. However, that makes shaping multiple 
independent "streams" going through one interface much more difficult.

The only other thing I can think of is setting up a dummy network device 
and giving it the IP addresses on all the non-primary subnets (e.g. 
multiple DSL lines), and setting up the arp and routing to make the 
packet actually go via the primary interface.

However, therein lies another problem - it means that the primary (real) 
interface (with the first subnet) could then not be shaped properly (I 
THINK), because shaping it would shape the overall traffic on that 
interface, and not only the traffic on the primary connection.

So, the solution might be to set up the real interface with a dummy IP 
address, and assigning all valid, real subnets to the dummy interfaces, 
and set up the routes for those subnets to go via the real interface, 
and set up arp to make sure things go via the real interface.

Has anybody got any thoughts on this?

If this would work, maybe it should be documented in the advanced 
routing howto, as I can see how there might be a lot of people out 
there who would find it useful.

Regards.

Gordan
_______________________________________________
LARTC mailing list / LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux