Hello All,

I want to run a DHCP server in the POX controller. The controller has to be
able to capture all the DHCP requests that come in so that the DHCP server
can lease out an IP address to each host.

The POX controller resides in the host machine whereas the OF switch
(OpenVSwitch) with 3 hosts reside in the Mininet VM. These hosts are
assigned IP addresses by default in the range 10.x/24.

I used the "misc.dhcpd" module for the DHCP server by issuing the following
command in the host machine:

*./pox.py openflow.of_01 --address=192.168.56.1 forwarding.l2_learning
flow_stats misc.dhcpd --network=10.1.1.0/24 --ip=10.0.0.4 --first=10
--last=None*

where, 192.168.56.1 is the IP address of the Mininet VM, *flow-stats* is
the module to display the flow table entries in the controller fetched from
the OF Switch. 10.0.0.4 is the IP address of one of the Mininet hosts.

In one of the Mininet hosts (IP_addr = 10.0.0.2, MAC_addr =
00:00:00:00:00:02), when I run the dhclient with the following command:

*sudo dhclient h2-eth0  *,

whr, h2-eth0 is the name of its interface, I can see the following message
in the POX controller:

*                  INFO:misc.dhcpd:Leased 10.1.1.10 to 00:00:00:00:00:02*

But now, when I do an *ifconfig* in the host, it still gives me the old IP
address, 10.0.0.2.


Can someone please point out where the mistake is and what exactly should
it be done?


Thanks,
Udita

Reply via email to