From owner-freebsd-mips@FreeBSD.ORG Fri Mar 14 19:42:57 2014 Return-Path: Delivered-To: freebsd-mips@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 754D6F6 for ; Fri, 14 Mar 2014 19:42:57 +0000 (UTC) Received: from mail-we0-x229.google.com (mail-we0-x229.google.com [IPv6:2a00:1450:400c:c03::229]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 0F8A16DB for ; Fri, 14 Mar 2014 19:42:56 +0000 (UTC) Received: by mail-we0-f169.google.com with SMTP id w62so2567793wes.14 for ; Fri, 14 Mar 2014 12:42:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=GE57NawrTckhwbgDyVfAOEPz+DncRWRiE0F411AFN1c=; b=an1KaTtZiCglXcNMThCZNG+gUJQ/J+OG6VxULrNbHH0MZEfwGu+Wd9XkhenSbIYnGh 7qooveysqtRqJUhYXgugpsqjqEgpsDymWN6TF2jAanTnxOiszlJdQmziB6X18H9JuHUN ZXaS1JVmuKefH+Rg9sc83dj8qE2gcoSwnIyZED2SPYsaauO1+LXm7d8ElhzBSEQ7OpQD ZPJJnz2lBqlG6Cb6gnbS4iE/O4AwTZ6IzGPEb4Tjm9dclz2qDnCr3cCwfjMAC2deB4xp uEA9ZcediXaZUP3+b2FqZBgPJ+JgFOAX63Ly+WB778TN8h7VSeF0khaCqmcFviud3Ktu +5/g== MIME-Version: 1.0 X-Received: by 10.195.13.103 with SMTP id ex7mr8074936wjd.3.1394826175485; Fri, 14 Mar 2014 12:42:55 -0700 (PDT) Received: by 10.216.40.72 with HTTP; Fri, 14 Mar 2014 12:42:55 -0700 (PDT) In-Reply-To: <20140314143905.081f073d@zeta.dino.sk> References: <20140313215332.7824a6e5@zeta.dino.sk> <20140314143905.081f073d@zeta.dino.sk> Date: Fri, 14 Mar 2014 16:42:55 -0300 Message-ID: Subject: Re: Router Station Pro etherswitchcfg problem From: Luiz Otavio O Souza To: Milan Obuch Content-Type: text/plain; charset=ISO-8859-1 Cc: "freebsd-mips@freebsd.org" X-BeenThere: freebsd-mips@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting FreeBSD to MIPS List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 Mar 2014 19:42:57 -0000 On 14 March 2014 10:39, Milan Obus wrote: > On Fri, 14 Mar 2014 09:28:37 -0300 > Luiz Otavio O Souza wrote: > >> Hey Milan, >> >> I'll look into this. Just give me a couple of days so i can recycle my >> RSPRO setup. >> >> Regards, >> Luiz >> > > I found a workaround (kind of), see below. > > > [ snip ] > > With command 'etherswitchcfg port0 addtag pvid 1', config for port 0 > becomes > > port0: > pvid: 1 > flags=5 > media: Ethernet 1000baseT > status: active > > and _all_ frames sent to CPU have dot1q header. This way I can create > up to 16 vlan groups on etherswitch (and correspondign arge1.n > subinterfaces) to achieve what I usually want, just one thing seems not > to be possible this way - hybrid port with both native (untagged) and > tagged traffic. > > In any case, it would be good to have this better documented. I don't > know if we have any place for this. man page is good, but not > everything did work for me. > > Milan Yes Milan, that is correct i remember now. You have to enable the tagging on the CPU port to receive the tagged packets. What i don't remember is why this switch was coded with the tag/untag feature per port and not per vlan, but i guess that was because i don't have the docs for it. While you can't have the hybrid setup, the trunk setup works fine with FreeBSD. And, yes, we need to get a better man page. If you have suggestions you can send it as text diffs to me, otherwise i'll try to get more working examples when i have some quality time with my RSPRO/RB450G again. Thanks, Luiz