I am new to mininet and I was trying to build a mininet topology which uses a remote SDN controller. I tried using floodlight as the remote controller. I installed it and ran it and it is running on "localhost:6653". But it is also running on 192.168.122.1:6653 (And I have no idea why). 192.168.122.1 is my virbr0 interface's address. In my mininet VM which is in virtualbox i have two network adapters.
- NAT
- Host only adapter
And for host only adapter i have the following configuration.
Adapter settings: Ipv4 address: 192.168.56.1 and net mask: 255.255.255.0
DHCP server settings: Sever ip= 192.168.56.100; net mask= 255.255.255.0; Lower bound Ip: 192.168.56.101; Upper bound Ip: 192.168.56.254
To avoid confusion i have added the screenshots as well.
I tried the following command to build my topology:
sudo mn --controller=remote,ip=192.168.122.1,port=6653
I get the following response from mininet
Unable to contact remote controller 192.168.122.1:6653
I have tried changing ip to 192.168.56.1 but that also didn't work. Any kind of help will be appreciated.
Thanks.