Re: altq for vlans?

From: Max Laier (max_at_love2party.net)
Date: 02/14/05

  • Next message: David Gilbert: "Re: altq for vlans?"
    To: freebsd-net@freebsd.org
    Date: Mon, 14 Feb 2005 01:57:29 +0100
    
    
    

    On Sunday 13 February 2005 22:36, David Gilbert wrote:
    > Has anyone considered patching the vlan driver to support altq? I
    > gather that since tun works, so should vlan.

    This should be a FAQ. Anyway, here is the story:

    While you can do ALTQ queueing on vlan interfaces the usefulness of this is
    very little. If the physical interface supports ALTQ it is *always* better
    to do the queueing there. If the physical interface does not support ALTQ it
    must be patched.

    To configure queueing on physical interfaces you do the following:

    Suppose we have the following VLAN:
    vlan0: flags=8842<BROADCAST,RUNNING,SIMPLEX,MULTICAST> mtu 1500
            inet 192.168.10.1 netmask 0xffffff00
            ether [---]
            media: Ethernet autoselect (100baseTX <full-duplex>)
            status: active
            vlan: 1 parent interface: xl0

    pf.conf:

    phy_if = xl0
    vlan_if = vlan0
    slow_peers = "{ 192.168.10.23, 192.168.10.42 }"

    # QUEUE on physical interface:
    altq on $phy_if cbq bandwidth 10Mb queue { default, limited }
      queue default bandwidth 75% cbq(borrow default)
      queue limited bandwidth 25% cbq

    block all

    # CLASSIFY on virtual interface:
    pass on $vlan_if from $vlan_if:network to any keep state queue default
    pass on $vlan_if from $slow_peers to any keep state queue limited

    #EOF

    If that does not help you, please try to explain what exactly you try to
    achieve and why it is not possible with this method. Thanks.

    -- 
    /"\  Best regards,                      | mlaier@freebsd.org
    \ /  Max Laier                          | ICQ #67774661
     X   http://pf4freebsd.love2party.net/  | mlaier@EFnet
    / \  ASCII Ribbon Campaign              | Against HTML Mail and News
    
    



  • Next message: David Gilbert: "Re: altq for vlans?"

    Relevant Pages

    • Re: altq for vlans?
      ... >> gather that since tun works, so should vlan. ... Max> interface does not support ALTQ it must be patched. ... you seem to be saying that if the queue is attached to (in this ...
      (freebsd-net)
    • Re: altq on vlan
      ... physical interface, ... queue vlan0_foo ... But the patch simplify the cases where you need one queue per vlan. ...
      (freebsd-net)
    • Re: altq on vlan
      ... physical interface, ... queue vlan0_foo ... But the patch simplify the cases where you need one queue per vlan. ...
      (freebsd-net)
    • Re: altq on vlan
      ... physical interface, ... queue vlan0_foo ... But the patch simplify the cases where you need one queue per vlan. ...
      (freebsd-net)
    • Re: vlan
      ... >i'm strongly needet to set up vlan on my freebsd-box ... pseudo-device vlan ... ... Assume you have xl0 physical interface and you want to setup 2 ... Free unices for a free world. ...
      (FreeBSD-Security)