Not able to connect remote floodlight controller to mininet












0















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.




  1. NAT

  2. 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.
This is for adapter settings



This is for dhcp server settings



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.










share|improve this question



























    0















    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.




    1. NAT

    2. 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.
    This is for adapter settings



    This is for dhcp server settings



    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.










    share|improve this question

























      0












      0








      0








      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.




      1. NAT

      2. 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.
      This is for adapter settings



      This is for dhcp server settings



      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.










      share|improve this question














      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.




      1. NAT

      2. 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.
      This is for adapter settings



      This is for dhcp server settings



      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.







      virtualbox sdn opendaylight mininet






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 26 '18 at 6:20









      Coding batCoding bat

      151110




      151110
























          1 Answer
          1






          active

          oldest

          votes


















          0














          As per your setup, I guess FLC is running on Host OS and mininet is running in Oracle VM.



          Your Host-Only network is useful if you are trying to reach something deployed in VM from your Host Os.



          It will not work other way around. Here you want to access FLC running on Host inside your VM.



          I would suggest using Floodlight VM for Virtual Box. It has mininet and FLC inbuild.





          1. Once imported. Start VM.



            Credentials: floodlight/floodlight



          2. Inside VM start FLC


          3. Do ifconfig ithe n terminal and get IP



          4. change to that IP in this



            sudo mn --controller=remote,ip=192.168.122.1,port=6653



          5. and execute, all will work fine.


          6. You can access FLC in Host using above IP






          share|improve this answer
























          • I changed the command a bit. I removed controller = remote and it worked. I was able to connec to flc oj my host machine. Again no idea how this worked.

            – Coding bat
            Dec 4 '18 at 8:07











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53475674%2fnot-able-to-connect-remote-floodlight-controller-to-mininet%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          As per your setup, I guess FLC is running on Host OS and mininet is running in Oracle VM.



          Your Host-Only network is useful if you are trying to reach something deployed in VM from your Host Os.



          It will not work other way around. Here you want to access FLC running on Host inside your VM.



          I would suggest using Floodlight VM for Virtual Box. It has mininet and FLC inbuild.





          1. Once imported. Start VM.



            Credentials: floodlight/floodlight



          2. Inside VM start FLC


          3. Do ifconfig ithe n terminal and get IP



          4. change to that IP in this



            sudo mn --controller=remote,ip=192.168.122.1,port=6653



          5. and execute, all will work fine.


          6. You can access FLC in Host using above IP






          share|improve this answer
























          • I changed the command a bit. I removed controller = remote and it worked. I was able to connec to flc oj my host machine. Again no idea how this worked.

            – Coding bat
            Dec 4 '18 at 8:07
















          0














          As per your setup, I guess FLC is running on Host OS and mininet is running in Oracle VM.



          Your Host-Only network is useful if you are trying to reach something deployed in VM from your Host Os.



          It will not work other way around. Here you want to access FLC running on Host inside your VM.



          I would suggest using Floodlight VM for Virtual Box. It has mininet and FLC inbuild.





          1. Once imported. Start VM.



            Credentials: floodlight/floodlight



          2. Inside VM start FLC


          3. Do ifconfig ithe n terminal and get IP



          4. change to that IP in this



            sudo mn --controller=remote,ip=192.168.122.1,port=6653



          5. and execute, all will work fine.


          6. You can access FLC in Host using above IP






          share|improve this answer
























          • I changed the command a bit. I removed controller = remote and it worked. I was able to connec to flc oj my host machine. Again no idea how this worked.

            – Coding bat
            Dec 4 '18 at 8:07














          0












          0








          0







          As per your setup, I guess FLC is running on Host OS and mininet is running in Oracle VM.



          Your Host-Only network is useful if you are trying to reach something deployed in VM from your Host Os.



          It will not work other way around. Here you want to access FLC running on Host inside your VM.



          I would suggest using Floodlight VM for Virtual Box. It has mininet and FLC inbuild.





          1. Once imported. Start VM.



            Credentials: floodlight/floodlight



          2. Inside VM start FLC


          3. Do ifconfig ithe n terminal and get IP



          4. change to that IP in this



            sudo mn --controller=remote,ip=192.168.122.1,port=6653



          5. and execute, all will work fine.


          6. You can access FLC in Host using above IP






          share|improve this answer













          As per your setup, I guess FLC is running on Host OS and mininet is running in Oracle VM.



          Your Host-Only network is useful if you are trying to reach something deployed in VM from your Host Os.



          It will not work other way around. Here you want to access FLC running on Host inside your VM.



          I would suggest using Floodlight VM for Virtual Box. It has mininet and FLC inbuild.





          1. Once imported. Start VM.



            Credentials: floodlight/floodlight



          2. Inside VM start FLC


          3. Do ifconfig ithe n terminal and get IP



          4. change to that IP in this



            sudo mn --controller=remote,ip=192.168.122.1,port=6653



          5. and execute, all will work fine.


          6. You can access FLC in Host using above IP







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Dec 3 '18 at 7:59









          MyTwoCentsMyTwoCents

          3,3292930




          3,3292930













          • I changed the command a bit. I removed controller = remote and it worked. I was able to connec to flc oj my host machine. Again no idea how this worked.

            – Coding bat
            Dec 4 '18 at 8:07



















          • I changed the command a bit. I removed controller = remote and it worked. I was able to connec to flc oj my host machine. Again no idea how this worked.

            – Coding bat
            Dec 4 '18 at 8:07

















          I changed the command a bit. I removed controller = remote and it worked. I was able to connec to flc oj my host machine. Again no idea how this worked.

          – Coding bat
          Dec 4 '18 at 8:07





          I changed the command a bit. I removed controller = remote and it worked. I was able to connec to flc oj my host machine. Again no idea how this worked.

          – Coding bat
          Dec 4 '18 at 8:07




















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53475674%2fnot-able-to-connect-remote-floodlight-controller-to-mininet%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          Popular posts from this blog

          Wiesbaden

          Marschland

          Dieringhausen