From patchwork Mon Jul 27 09:37:41 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Bastian X-Patchwork-Id: 500276 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from arrakis.dune.hu (arrakis.dune.hu [78.24.191.176]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 7535B140307 for ; Mon, 27 Jul 2015 19:38:07 +1000 (AEST) Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id EBB32280F20; Mon, 27 Jul 2015 11:37:18 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on arrakis.dune.hu X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.2 Received: from arrakis.dune.hu (localhost [127.0.0.1]) by arrakis.dune.hu (Postfix) with ESMTP id 1A4B42805A2 for ; Mon, 27 Jul 2015 11:37:14 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .netcologne. - helo: .cc-smtpout2.netcologne. - helo-domain: .netcologne.) FROM/MX_MATCHES_HELO(DOMAIN)=-2; rate: -8.5 Received: from cc-smtpout2.netcologne.de (cc-smtpout2.netcologne.de [89.1.8.212]) by arrakis.dune.hu (Postfix) with ESMTPS for ; Mon, 27 Jul 2015 11:37:13 +0200 (CEST) Received: from cc-app3.netcologne.de (cc-app3.netcologne.de [89.1.9.192]) by cc-smtpout2.netcologne.de (Postfix) with ESMTP id B13911223A; Mon, 27 Jul 2015 11:37:42 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by cc-app3.netcologne.de (Postfix) with ESMTP id AC82311DC4; Mon, 27 Jul 2015 11:37:42 +0200 (CEST) Received: from [127.0.0.1] (helo=cc-app3.netcologne.de) by localhost with ESMTP (eXpurgate 4.0.9) (envelope-from ) id 55b5fbe6-0cb5-7f0000012729-7f000001945f-1 for ; Mon, 27 Jul 2015 11:37:42 +0200 Received: from cc-app3.netcologne.de (localhost [127.0.0.1]) by cc-app3.netcologne.de (Postfix) with ESMTPA; Mon, 27 Jul 2015 11:37:41 +0200 (CEST) Date: Mon, 27 Jul 2015 11:37:41 +0200 (CEST) From: Michael Bastian To: openwrt-devel , Piotr Dymacz Message-ID: <632289031.913.1437989861829.JavaMail.open-xchange@cc-app3.netcologne.de> In-Reply-To: <1437927878-30771-5-git-send-email-pepe2k@gmail.com> References: <1437927878-30771-1-git-send-email-pepe2k@gmail.com> <1437927878-30771-5-git-send-email-pepe2k@gmail.com> MIME-Version: 1.0 X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.6.2-Rev25 X-Originating-IP: 193.227.145.22 X-Originating-Client: com.openxchange.ox.gui.dhtml Subject: Re: [OpenWrt-Devel] [PATCH 04/13] ramips: sort boards alphabetically and optimize base-files/etc/{diag.sh, board.d/*} scripts X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: Michael Bastian List-Id: OpenWrt Development List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: openwrt-devel-bounces@lists.openwrt.org Sender: "openwrt-devel" > diff --git a/target/linux/ramips/base-files/etc/board.d/02_network > b/target/linux/ramips/base-files/etc/board.d/02_network > index 334e889..a781f46 100755 [...] > + re6500) > + ucidef_set_interface_lan "eth0.1" > + ucidef_add_switch "switch0" "1" "1" > + ucidef_add_switch_vlan "switch0" "1" "1 2 3 4 6t" > + ;; The four physical lan ports on the Linksys RE6500 are connected to switchport 0-3 so it must read: + ucidef_add_switch_vlan "switch0" "1" "0 1 2 3 6t" Personally I build my images with a WAN port on physical port 1 but since this box has no dedicated WAN port labeled on the backside it might be confusing use something like this as a default? https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel --- a/target/linux/ramips/base-files/etc/board.d/02_network +++ b/target/linux/ramips/base-files/etc/board.d/02_network @@ -104,7 +104,13 @@ ramips_setup_interfaces() ucidef_add_switch_vlan "switch0" "2" "0 9t" ;; - re6500 | \ + re6500) + ucidef_set_interfaces_lan_wan "eth0.1" "eth0.2" + ucidef_add_switch "switch0" "1" "1" + ucidef_add_switch_vlan "switch0" "1" "1 2 3 6t" + ucidef_add_switch_vlan "switch0" "2" "0 6t" + ;; + _______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org