From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Lunn Subject: Re: [Query]: DSA Understanding Date: Thu, 26 Jul 2018 17:39:06 +0200 Message-ID: <20180726153906.GA10686@lunn.ch> References: <20180725161923.GD16819@lunn.ch> <20180726140818.GB8325@lunn.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: netdev To: "Lad, Prabhakar" Return-path: Received: from vps0.lunn.ch ([185.16.172.187]:47335 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730298AbeGZQ4b (ORCPT ); Thu, 26 Jul 2018 12:56:31 -0400 Content-Disposition: inline In-Reply-To: Sender: netdev-owner@vger.kernel.org List-ID: > I am bit confused on how dsa needs to be actually working, > Q's > 1] should I be running a dhcp server on eth1 (where switch is connected) > so that devices connected on lan* devices get an ip ? Nope. You need eth1 up, but otherwise you do not use it. Use the lanX interfaces like normal Linux interfaces. Run your dhclient on lanX, etc. > > 2] From the device where switch is connected if the cpu port wants to send > any data to any other user ports lan* how do i do it (just open > socket on eth1 or lan*) ? Just treat the lanX interfaces as normal Linux interfaces. Andrew