Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jan 2007 15:52:17 -0500 (EST)
From:      "Dan Mahoney, System Admin" <danm@prime.gushi.org>
To:        questions@freebsd.org
Cc:        rizzo@icir.org
Subject:   Dummynet with vlans
Message-ID:  <20070116150757.A95855@prime.gushi.org>

next in thread | raw e-mail | index | archive | help
Hey all,

Note: I'm cc'ing Luigi Rizzo because, well, he's authoritative.   This is 
NOT the same issue I asked about a couple years ago (which related to 
vlans, and bridging -- there is no bridge in play here).

Anyway...

We have a machine playing vlan aggregator.  Gigabit nics (intels).

em0 is the uplink to the core router.  Straight gigabit link over copper 
to a 6500-series cisco switch (speaks OSPF using quagga). em1 is the 
downlink (over fiber) to the switch, and has no interface on it, but it IS 
a parent interface to 48 "vlan" entries, numbered vlan101 through vlan148 
(where each is relative to a switch port).  This setup works fine.

Each vlan entry has it's own /29 IP address.

That said, what is the "proper" syntax for adding dummynet rules to this? 
For example, to constrain one of those ports to (say) 50 megabits.

I'm using

pipe 440 config bw 50mbit/s
pipe 441 config bw 50mbit/s
add 44000 pipe 440 ip from any to any recv vlan144 in
add 44001 pipe 441 ip from any to any xmit vlan144 out

But this seems not to work.

Do I need to define queues as well?  The manpage cites examples similar to 
this, but I can't find any definitive reference.

Should I just not use the vlan interfaces, and instead go by IP on the 
"outside" interface?

-Dan

--

"It's buttery kettle ASS corn!"

-Dan Mahoney, Ezzi Computers,
10/22/03, 2AM

--------Dan Mahoney--------
Techie,  Sysadmin,  WebGeek
Gushi on efnet/undernet IRC
ICQ: 13735144   AIM: LarpGM
Site:  http://www.gushi.org
---------------------------




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070116150757.A95855>