Re: ALTQ Vlan



Alexandre Biancalana wrote:
On 3/5/08, Sergey Matveychuk <sem@xxxxxxxxxxx> wrote:
Alexandre Biancalana wrote:
> Hi list,
>
> Is there any patches or plans to support altq on vlan interfaces ??
>


The patch is quite trivial:
http://people.yandex-team.ru/~sem/FreeBSD/vlan+altq.patch

Is this working on 7 ? with pf ?


But may be a better way to shape traffic on parent interface for you?
I did the patch because I couldn't do shaping on a parent interface for
some reason.

My problem is that I've only one physical interface on the server and
this interface provide vlans for local network and remote links (which
I want to shape the traffic) then I had problems because I want to
limit the speed only on remote links.

You can setup atlq on parent interface and assign traffic to queue on
vlan interface:

altq on em0 cbq bandwidth 1Gb queue { def, vlan10 }
queue def bandwidth 80% cbq ( default , borrow )
queue vlan10 bandwidth 20Mb cbq
...
pass out on vlan10 queue vlan10

--
Mykola Dzham, LEFT-(UANIC|RIPE)
JID: levsha@xxxxxxxxxxxxx
_______________________________________________
freebsd-net@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-net
To unsubscribe, send any mail to "freebsd-net-unsubscribe@xxxxxxxxxxx"



Relevant Pages

  • Re: kern/109815: wrong interface identifier at pfil_hooks for vlans + if_bridge
    ... MAC addresses for each ifnet, in addition to the if_lladdr member. ... on the physical interface that is 'hosting' VLAN interfaces and each ... we will still need to check if a bridge member is a VLAN interface ... The only problem that will stay here after our patch is that the pfil ...
    (freebsd-net)
  • em (+pf+vlan+bridge+netgraph) stop sending packets (?)
    ... I run a 6.1-RC and after a day nothing can be sent from em interface. ... This machine also use netgraph netflow for traffic accounting on vlan interfaces, but shutting down all netgraph nodes does not help. ...
    (freebsd-stable)
  • Re: EM(4), vlans & dhclient
    ... I've had some problems with multiple vlan interfaces too. ... MAC addresses for the different vlan interfaces on 5.x. ... e.g. vlan interface A that had MAC address X when the underlying ...
    (freebsd-net)
  • Re: ALTQ Vlan
    ... > Is there any patches or plans to support altq on vlan interfaces ?? ... The patch is quite trivial: ... But may be a better way to shape traffic on parent interface for you? ... limit the speed only on remote links. ...
    (freebsd-net)
  • Re: Carry layer 2 ethernet between vlans over an IP network, anyone?
    ... seem to work with vlan interfaces. ... link vlans across an IP backbone? ... I have tried DLSW+ but it did not do what I wanted. ... You should look at the interface command "xconnect". ...
    (comp.dcom.sys.cisco)