problem with vlan interfaces tagging/untagging in a simulated
switch box
Peter Jeremy
peterjeremy at acm.org
Mon Mar 5 11:30:36 UTC 2012
On 2012-Mar-04 10:01:07 +0330, h bagade <bagadeh at gmail.com> wrote:
>I have problems with vlan interfaces on freebsd. I want to make my
>system like a switch with vlan ports and also a trunk port in
>conjuction with other switches. I thought that vlan interfaces would
>help me tagging traffic when traffic is going out the trunk port(or
>when it receives on vlan ports).
>The problem, I've encountered is that vlan interafaces on freebsd do
>tagging/untagging when the traffic is sourced/destined from/to them
>which in this case they should be assigned IP addresses. In other
>words they won't tag the traffic passing through their parent
>interface which I need to.
I am doing this with no problems so I suspect you are doing something
wrong. As an example, the following creates a IEEE802.1Q trunk on
em0 with 192.168.1.0/24 untagged and the remaining subnett tagged:
ifconfig em0 inet 192.168.1.123/24
ifconfig vlan10 inet 192.168.10.123/24 vlandev em0 vlan 10
ifconfig vlan11 inet 192.168.11.123/24 vlandev em0 vlan 11
ifconfig vlan12 inet 192.168.12.123/24 vlandev em0 vlan 12
ifconfig vlan13 inet 192.168.13.123/24 vlandev em0 vlan 13
Can you post the rc.conf etc entries that you are using and a
description of what you are trying to achieve.
--
Peter Jeremy
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 196 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-net/attachments/20120305/61251047/attachment.pgp
More information about the freebsd-net
mailing list