On 24/06/2010 03:44, Mark wrote:
> Hello,
>
> Pascal Hambourg wrote:
>> What kind of switch chip is it ?
>
> What I have is bcm5358u - Broadcom's SoC containing MIPS core, 5-port
> switch core connected to the CPU via internal MII.
>
>> However if it is a hardware switch (the device eth0 being the internal
>> connection to the switch) just like an external switch then this is
>> not possible unless it supports VLANs : then you could create one
>> VLAN per physical port and create VLAN tagged subinterfaces on the
>> internal interface eth0. This way each physical port would be
>> associated to a VLAN subinterface.
>
> I think I should've given more details in my original message.
>
> bcm5358's ethernet driver supports VLANs and currently it seperates
> these 5 ports in two VLAN groups. Now I'm going to
> use two ports of bcm5358 to connect to external 24-port switch, thus
> these two ports will serve as WAN and LAN ports respectively and should
> be able to have IP addresses on them. I see no other reason rather then
> make them look distinct interfaces form the point of view of OS.
>
> PS. I've skimmed through
> http://tomoyo.sourceforge.jp/cgi-bin...ource/net/dsa/ and it seems
> that it's possible to do what I need, although the kernel ported for my
> platform is older and doesn't have some features used by DSA.
>
Mark, could you give us a more precise picture of your setup here?
As I see it, you have an external 24-port switch. Is this a managed
switch (that can assign VLAN tags according to port)? If it is not a
managed switch, then I can't see why you want to connect both ports on
your broadcom device to the switch. If it /is/ a managed switch, then
everything you are trying to do with the broadcom device can be handled
more easily using the managed switch.
I have been under the assumption that you have one port of the broadcom
device switch connected to your WAN network (such as an ADSL modem),
while another port is connected to an unmanaged external switch for a LAN.