[Click] Ethernet Switch Config and more

Junhe Jian Junhe.Jian at hhi.fraunhofer.de
Wed Jul 20 08:13:59 EDT 2005


Hi Click Users,

i have some questions.
1. Does the Ethernet Switch Elements as Bridge(STP)(without IP) working
in User-Level or only in Kernel-Level?
2. Did anybody here have some Example Config of Ethernet Switch with
Element Suppressor EtherSwitch ans EtherSpanTree?
I want use Click Router with the Ethernet Switch Config like in Manual
working as a Bridge or should be working as a Bridge.

scenario:
linux1(eth0) <-> (eth2)click_bridge(eth1) <-> (eth0)linux2
I tried to write a own Config and tested using User-Level, see below:
////////////////////////////////////////////////////////////////////
sw  :: EtherSwitch;
insup :: Suppressor;
outsup:: Suppressor;

FromDevice(eth1) -> c0 :: Classifier(14/4242, 17/000000, -);
FromDevice(eth2) -> c1 :: Classifier(14/4242, 17/000000, -);

outq1 :: Queue(10000) -> ToDevice(eth2);
outq2 :: Queue(10000) -> ToDevice(eth1);

c0[2] -> [0]insup[0] -> [0]sw[0] -> [0]outsup[0] -> outq1;
c1[2] -> [1]insup[1] -> [1]sw[1] -> [1]outsup[1] -> outq2;

st :: EtherSpanTree(00:30:4F:34:01:02, insup, outsup, sw);
c0[0] -> [0]st[0] -> outq1;
c1[0] -> [1]st[1] -> outq2;

c0[1] -> Discard;
c1[1] -> Discard;
///////////////////////////////////////////////////////////////////////
and the log message:
*********************************************
Setting send_tc_msg: BLOCK -> FORWARD on 0
Changing port 0 from 0 to 1
Setting send_tc_msg: BLOCK -> FORWARD on 1
Changing port 1 from 0 to 1
Changing port 0 from 1 to 2
Changing port 1 from 1 to 2
Changing port 0 from 2 to 3
Changing port 1 from 2 to 3
**********************************************
What that all mean? and why changed it port 6 times???
And i can't ping linux2 from linux 1 or reverse. cause i use Click as
brigde?
Or give other Methods to test it?

Can anybody tell me where i wrong?

Best Regards
Jian



More information about the click mailing list