This assignment doesn't seem to have anything to do with L2 learning. Do you have to base your solution on forwarding.l2_learning? It seems like what you're describing could be written from scratch in half a dozen lines of code.
-- Murphy On Nov 28, 2013, at 4:35 AM, Jerry Wang <wjy19890...@gmail.com> wrote: > Hi all, > I just start to use POX controller to study OpenFlow. I have constructed > a single topology in Mininet by inputting ' sudo mn --topo single 3, --mac > --switch ovsk --controller remote ', and I have tried the > forwarding.l2_learning component in POX to ping h1 and h2. > It works! > My tutor requires me NOT to use the flood but use the PORT number of the > hosts and switch to send the traffic from h1 to h2. I know that how does the > l2 learning switch work and it should know the MAC address then it can send > the traffic to the right destination. But my tutor wants me to use the port > number which can be obtained by inputting 'net' in Mininet console, it will > shows eth0 eth1 etc. To achieve this target, my tutor needs me to modify some > parts of the Python code of forwarding.l2_learning but I`m a rookie of > Python! I really need your help for doing that!! > > Thanks all! > Regards! > > Jerry