Project

General

Profile

Actions

Bug #3030

closed

When using LAGG+VLAN+ALTQ, the shaper wizard does not fill in the interface bandwidth

Added by Jim Pingle almost 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
-
Category:
Traffic Shaper (ALTQ)
Target version:
Start date:
06/07/2013
Due date:
% Done:

100%

Estimated time:
Plus Target Version:
Release Notes:
Affected Version:
2.1
Affected Architecture:

Description

If you are using LAGG+VLAN interfaces (e.g. lagg0_vlan10) in the shaper wizard, the wizard does not fill in the bandwidth for the interface when creating the queues. This leads to an invalid ruleset because the value entered for the WAN bandwidth will always be higher than the other interface, since they don't have any bandwidth defined.

The bandwidth for an interface is normally reported by the OS in ifconfig, for example:

bce0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
[...]
media: Ethernet autoselect (100baseTX <full-duplex>)

But that doesn't seem to work on lagg:

lagg0: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
[...]
media: Ethernet autoselect

It does normally work on VLAN interfaces, such as:

fxp0_vlan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
[...]
media: Ethernet autoselect (100baseTX <full-duplex>)

But because the lagg interface is the parent of the VLANs, it doesn't show the bandwidth there either:

lagg0_vlan10: flags=8843<UP,BROADCAST,RUNNING,SIMPLEX,MULTICAST> metric 0 mtu 1500
[...]
media: Ethernet autoselect

The shaper wizard would either have to assume some other value as a default, or account for lagg and track down the link speed of the parent interface(s).

Actions

Also available in: Atom PDF