All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bridge] 4 ports bridge problem
@ 2008-09-21 23:58 czj
  2008-09-22  5:51 ` Stephen Hemminger
  0 siblings, 1 reply; 3+ messages in thread
From: czj @ 2008-09-21 23:58 UTC (permalink / raw)
  To: bridge

Hi all,
I work on a SOC based on AMCC/glacier based on PPC460GT. (
http://WWW.AMCC.com <http://micrel.com/page.do?page=product-info/sys_on_chip.jsp>)
This component has 4 network interfaces. 

Every one is connected to a PC.

eth0 =>192.168.1.11
eth1 => 192.168.1.22
eth2 => 192.168.1.33
eth3 => 192.168.1.44

I want to make a bridge with these 4 ports

#brctl addbr br0

#ifconfig br0 192.168.1.20 netmask 255.255.255.0

#ifconfig eth0 0.0.0.0 up

#ifconfig eth1 0.0.0.0 up

#ifconfig eth2 0.0.0.0 up

#ifconfig eth3 0.0.0.0 up

# brctl addif br0 eth0

# brctl addif br0 eth1

# brctl addif br0 eth2

# brctl addif br0 eth3

#brctl stp on

but my problem is that when I used the PC(which IP is 192.168.1.11/24) to ping other PCs,

the ping reply time from 192.168.1.22 was about 1000ms;
the ping reply time from 192.168.1.33 was about 0.2ms;
the ping reply time form 192.168.1.44 was about 300ms;

Why? and how to configure  the 4 ethernet-ports glacier board to be a bridge or switch correctly? thanks a lot.


Thanks,
Cheng Zijing



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] 4 ports bridge problem
  2008-09-21 23:58 [Bridge] 4 ports bridge problem czj
@ 2008-09-22  5:51 ` Stephen Hemminger
  2008-09-22 17:52   ` Srinivas M.A.
  0 siblings, 1 reply; 3+ messages in thread
From: Stephen Hemminger @ 2008-09-22  5:51 UTC (permalink / raw)
  To: czj; +Cc: bridge

On Mon, 22 Sep 2008 07:58:21 +0800
czj <linuxdemo@126.com> wrote:

> Hi all,
> I work on a SOC based on AMCC/glacier based on PPC460GT. (
> http://WWW.AMCC.com <http://micrel.com/page.do?page=product-info/sys_on_chip.jsp>)
> This component has 4 network interfaces. 
> 
> Every one is connected to a PC.
> 
> eth0 =>192.168.1.11
> eth1 => 192.168.1.22
> eth2 => 192.168.1.33
> eth3 => 192.168.1.44

You have layer 2 and 3 confused. Are you sure you don't intend
to route (layer 3) rather than bridging.

> I want to make a bridge with these 4 ports
> 
> #brctl addbr br0
> 
> #ifconfig br0 192.168.1.20 netmask 255.255.255.0
> 
> #ifconfig eth0 0.0.0.0 up
> 
> #ifconfig eth1 0.0.0.0 up
> 
> #ifconfig eth2 0.0.0.0 up
> 
> #ifconfig eth3 0.0.0.0 up
> 
> # brctl addif br0 eth0
> 
> # brctl addif br0 eth1
> 
> # brctl addif br0 eth2
> 
> # brctl addif br0 eth3
> 
> #brctl stp on
> 
> but my problem is that when I used the PC(which IP is 192.168.1.11/24) to ping other PCs,
> 
> the ping reply time from 192.168.1.22 was about 1000ms;
> the ping reply time from 192.168.1.33 was about 0.2ms;
> the ping reply time form 192.168.1.44 was about 300ms;
> 
> Why? and how to configure  the 4 ethernet-ports glacier board to be a bridge or switch correctly? thanks a lot.

Don't assign IP addresses to the ethernet devices, only one common address
to the bridge. 

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Bridge] 4 ports bridge problem
  2008-09-22  5:51 ` Stephen Hemminger
@ 2008-09-22 17:52   ` Srinivas M.A.
  0 siblings, 0 replies; 3+ messages in thread
From: Srinivas M.A. @ 2008-09-22 17:52 UTC (permalink / raw)
  To: Stephen Hemminger; +Cc: bridge, czj

>> Every one is connected to a PC.
>>
>> eth0 =>192.168.1.11
>> eth1 => 192.168.1.22
>> eth2 => 192.168.1.33
>> eth3 => 192.168.1.44
>
> You have layer 2 and 3 confused. Are you sure you don't intend
> to route (layer 3) rather than bridging.

The IP addresses above seem to be the addresses of the connected PCs,
not what is assigned to the interfaces. The commands mentioned later
to set up the bridge seem okay.


>> but my problem is that when I used the PC(which IP is 192.168.1.11/24) to ping other PCs,
>>
>> the ping reply time from 192.168.1.22 was about 1000ms;
>> the ping reply time from 192.168.1.33 was about 0.2ms;
>> the ping reply time form 192.168.1.44 was about 300ms;

>>
>> Why? and how to configure  the 4 ethernet-ports glacier board to be a bridge or switch correctly? thanks a lot.

czj,
 The bridge seems configured okay. (You have not mentioned "ifconfig
br0 up", but you must have done that if the bridge is working at all.)
The delay could be due to many factors. Could be in the interfaces or
their drivers, or could even be delay on the part of the host
responding to ping. You could diagnose this further by taking packet
captures (with tcpdump or wireshark) while you do the pings, both on
the bridge and on the source and destination of the ping, and looking
at the packet times in these.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2008-09-22 17:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-09-21 23:58 [Bridge] 4 ports bridge problem czj
2008-09-22  5:51 ` Stephen Hemminger
2008-09-22 17:52   ` Srinivas M.A.

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.