From owner-freebsd-mips@FreeBSD.ORG Fri Mar 14 19:51:35 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 7A428850 for ; Fri, 14 Mar 2014 19:51:35 +0000 (UTC) Received: from mail-qc0-x22c.google.com (mail-qc0-x22c.google.com [IPv6:2607:f8b0:400d:c01::22c]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 38010797 for ; Fri, 14 Mar 2014 19:51:35 +0000 (UTC) Received: by mail-qc0-f172.google.com with SMTP id i8so3508795qcq.31 for ; Fri, 14 Mar 2014 12:51:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=2lPREXmfQxrQ3vS3f0C4Dc/p69UIfYnwdiWqQ5IlFd4=; b=yCuAa48wgYC7G6XArmb8H/Xzzs7fdzQl7QjCwMKGUXQF0v7dOjLtbWu/z1xkI1AFO8 uUWY7ClklHCR3BOTW4MXY/NEN9QbZZ19A00e1ipRDvQKsreLUR+XGL2MF9NTUKwSvjWR Wxhm/WSIm7UbZtReRJTKxn3/JOmwNYqRMdsmmWztKmgJzvZ5wSS1a2PfyR5JaK6kGD2Z KuBnXzTzHfcWP6IXzlJg5C16gGPrp865fA8WKqGv0shXZme3rSOp88bj6uZV8gvoW5Ex H0vrghU2jrejsjJyYaWcclvxujgRvl9WTKi7CFzbDAKshQwqjKOzHKdwrtY6uYbmvN1c rvTw== MIME-Version: 1.0 X-Received: by 10.140.50.169 with SMTP id s38mr11655356qga.12.1394826694387; Fri, 14 Mar 2014 12:51:34 -0700 (PDT) Sender: adrian.chadd@gmail.com Received: by 10.224.8.137 with HTTP; Fri, 14 Mar 2014 12:51:34 -0700 (PDT) In-Reply-To: References: <20140313215332.7824a6e5@zeta.dino.sk> <20140314143905.081f073d@zeta.dino.sk> Date: Fri, 14 Mar 2014 12:51:34 -0700 X-Google-Sender-Auth: xFxGDSX2NqdMUQdNApTmqgVx7S0 Message-ID: Subject: Re: Router Station Pro etherswitchcfg problem From: Adrian Chadd To: Luiz Otavio O Souza 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:51:35 -0000 Hi, It's per port because that's how it's logically supposed to be. Ie, there's a set of VLANs in the switch. Then you have a native VLAN on a port, which is the untagged VLAN. Then you allow other VLANs to show up on the port, which are the tagged VLANs that show up on said port. -a On 14 March 2014 12:42, Luiz Otavio O Souza wrote: > 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 > _______________________________________________ > freebsd-mips@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-mips > To unsubscribe, send any mail to "freebsd-mips-unsubscribe@freebsd.org"