He Chang, when you run dpctl locally on a switch to display its flowtable, you should be passing the dp_id that was used when creating the openflow switch (with the adddp command) so it should look something like ./dpctl show nl:0
similarly, ./dpctl add-flow nl:0 [flow] is used to manually add a flow (as opposed to doing it programatically through nox) dpctl has not much to do with NOX. It is a separate program. It runs on the switch in order to view and manually modify its flow table. (think of it as a 'manual' controller, as in, non-programmatic). Pointing dpctl towards NOX does not make much sense. It is meant to talk to switches. "man dpctl" and "dpctl --help" provide a lot of information on the program's use. 2011/3/8 changhe188 <changhe...@126.com> > Hi, all > > Here's a problem when I used dpctl with my virtual machines (2 switches, 1 > controller, all ubuntu9.04). We set controller's IP 192.168.0.100, two > switches linked to the controller's IP are 192.168.0.1 and 192.168.0.2. > > When I boot nox on controller, and then do following on switch 192.168.0.2, > > sudo ./secchan/ofprotocol unix:/var/run/dp0 tcp:192.168.0.100:6633 > sudo ./dpctl show tcp:192.168.0.2:6633 > > it returns, > > dpctl: talking to tcp:192.168.0.2:6633: Connection refused > > and I also tried following, > > ./dpctl show tcp:192.168.0.100:6633 > > it returns. > > dpctl: talking to tcp:192.168.0.100:6633: unexpected end of file > > and on the controller, it gives following message, > > 00005|nox|WARN:Received unsupported message type during handshake (5) > > > The main problem is how can I show the switch's flow table using dpctl, > and how can I add an item to the flow table. It confuses me a lot, thanks. > > He Chang > > > -- > 常 贺 > Tel:(+86)1381-138-9007 > > > > > > _______________________________________________ > nox-dev mailing list > nox-dev@noxrepo.org > http://noxrepo.org/mailman/listinfo/nox-dev > >
_______________________________________________ nox-dev mailing list nox-dev@noxrepo.org http://noxrepo.org/mailman/listinfo/nox-dev