Hi Mahmoud,
Excuse me for cutting in.
This app seems to be developed on out-side of Ryu-devel, and I don't know the
details...
How about contacting to the author of this app?
FYI, from source code, this app supposes the topology with a single switch.
I've tried as the following, and it seemed to work.
$ sudo mn --controller remote
...(snip)...
### Manually install "table-miss" flow entry
mininet> sh ovs-ofctl add-flow s1 actions=CONTROLLER
mininet> sh ovs-ofctl dump-flows s1
NXST_FLOW reply (xid=0x4):
cookie=0x0, duration=1.112s, table=0, n_packets=0, n_bytes=0, idle_age=1,
actions=CONTROLLER:65535
...(snip)...
$ ryu-manager dhcp.py
...(snip)...
loading app dhcp.py
loading app ryu.controller.ofp_handler
instantiating app ryu.controller.ofp_handler of OFPHandler
instantiating app dhcp.py of SimpleDHCPServer
...(snip)...
### Remove all address which Mininet automatically assigned
h1> ip address flush h1-eth0
h1> ip address
...(snip)...
2: h1-eth0@if21: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
qlen 1000
link/ether fe:94:14:05:6b:9a brd ff:ff:ff:ff:ff:ff link-netnsid 0
### Run DHCP client
h1> dhclient h1-eth0
h1> ip address
...(snip)...
2: h1-eth0@if21: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc noqueue state UP group default
qlen 1000
link/ether fe:94:14:05:6b:9a brd ff:ff:ff:ff:ff:ff link-netnsid 0
inet 192.168.8.254/24 brd 192.168.8.255 scope global h1-eth0
valid_lft forever preferred_lft forever
...(snip)...
Thanks,
Iwase
On 2017年08月07日 07:39, Mahmoud Elzoghbi wrote:
I found someone implemented DHCP server application and share source code in Github site but i
can't create topology in mininet deal with this application.
source code : https://github.com/John-Lin/nat/blob/master/dhcp.py
thank you,,
On Tue, Aug 1, 2017 at 2:16 AM, Fujimoto Satoshi <satoshi.fujimo...@gmail.com
<mailto:satoshi.fujimo...@gmail.com>> wrote:
Hi, Mahmoud
Ryu has the packet library for DHCP, so it may be possible to make your own
DHCP server in Ryu
application.
However it will be very difficult work. Ryu does not provide any DHCP
server features.
I don't know what you want to do with DHCP,
but how about running DHCP server independently from Ryu?
I assume you have the topology like below:
┌-c0-┐
| |
h1------s1-----s2-----h2
(h1 and h2 means hosts, and s1 and s2 means OVS)
I suggest you to run DHCP server in c0 besides Ryu application,
and install flows to forward DHCP packets to DHCP server.
Then the DHCP server can receive DHCP packets in the topology.
In this case, how to get the binding table depends on the DHCP server you
use.
Thanks,
Fujimoto
On 2017年07月31日 23:57, Mahmoud Elzoghbi wrote:
hi
i need to implement DHCP server in RYU controller and topology file in
mininet to deal with dhcp
and how to get binding table of DHCP server
any help to accomplish this task
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org!http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net <mailto:Ryu-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/ryu-devel
<https://lists.sourceforge.net/lists/listinfo/ryu-devel>
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Ryu-devel mailing list
Ryu-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ryu-devel