Hi everyone.

I'm having difficulties to add flow to the switch.

I
 assigned the datapath-id using the command below: (obtain from: 
http://yuba.stanford.edu/foswiki/bin/view/OpenFlow/Deployment/HOWTO/LabSetup#3_2_Setup_OpenFlow_Switch_on_Net)
./openflow/udatapath/ofdatapath --detach punix:/var/run/dp0 -d 004E46324304 -i 
nf2c0,nf2c1,nf2c2,nf2c3

I'm
 using POX controller and the switch can communicate with the 
controller. But i'm having problem to ping the 2 computer hosts. 
I added the flow using :
dpctl
 add-flow unix:/var/run/dp0 
in_port=3,dl_vlan=*,dl_src=*,dl_dst=*,dl_type=*,nw_src=*,nw_dst=*,nw_proto=*,tp_src=*,tp_dst=*,icmp_type=*,icmp_code=*,actions=output:1
dpctl
 add-flow unix:/var/run/dp0 
in_port=2,dl_vlan=*,dl_src=*,dl_dst=*,dl_type=*,nw_src=*,nw_dst=*,nw_proto=*,tp_src=*,tp_dst=*,icmp_type=*,icmp_code=*,actions=output:2

Then, I dpctl dump-flows unix:/var/run/dp0
The result is
stats_reply (xid=0xff3765f9): flags=none type=1(flow)
 
 cookie=0, duration_sec=16s, duration_nsec=911000000s, table_id=1, 
priority=32768, n_packets=0, n_bytes=0, 
idle_timeout=60,hard_timeout=0,in_port=3,actions=output:1

Actually
 i do not understand the meaning of those arguments inside the add-flow 
command. Can someone please explain to me? After i added the flow, my 
computer hosts still cannot ping each other. Do i add flow correctly? 

Another question is, do in_port=3 refers to nf2c3? what is output:1 and 
output:2? 
Hope to hear from you all soon. Thank you very much!
_______________________________________________
openflow-discuss mailing list
openflow-discuss@lists.stanford.edu
https://mailman.stanford.edu/mailman/listinfo/openflow-discuss

Reply via email to