无法联系到192.168.56.3的遥控器
Unable to contact the remote controller at 192.168.56.3
早上好,
我想在 VirtualBox 中设置 OpenDayLight SDN 控制器和 Mininet。到目前为止,我都安装并获得了它们 运行。
我的界面是:
- 1 个 NAT
- 1 个仅主机适配器
对于两个 VM。
Host only 适配器的 IP 地址为 192.168.56.1。
OpenDayLight VM 收到 192.168.56.3,
Mininet VM 收到 192.168.56.4.
我可以 ping 通这两个虚拟机。我不能做的是使用以下命令创建一个简单的测试拓扑:
sudo mn --topo linear,3 --mac --controller=remote,ip=192.168.56.3,port=6633 --switch ovs,protocols=OpenFlow13
事实上,运行它导致了这个错误:
mininet@mininet-vm:~$ sudo mn --topo linear,3 --mac --controller=remote,ip=192.168.56.3,port=6633 --switch ovs,protocols=OpenFlow13
*** Creating network
*** Adding controller
Unable to contact the remote controller at 192.168.56.3:6633
*** Adding hosts:
h1 h2 h3
*** Adding switches:
s1 s2 s3
*** Adding links:
(h1, s1) (h2, s2) (h3, s3) (s2, s1) (s3, s2)
*** Configuring hosts
h1 h2 h3
*** Starting controller
c0
*** Starting 3 switches
s1 s2 s3 ...
*** Starting CLI:
mininet>
来自主站点:
Important troubleshooting - if you are running VirtualBox on the same
host/desktop where the controller is running, and trying to start the
virtual network on Mininet VM produces this error: "Unable to contact
the remote controller at ...", then the following resolves the
problem:
In VirtualBox, go to File-Preferences-Network and make sure you have
at least one interface defined as Host-Only. Lets say its name is
vboxnet0
In VirtualBox - Mininet Vm - Settings - Network, check that the
adapter is of type Host only , and is connected to the interface from
item 1 (vboxnet0)
On your host where controller and VirtualBox run, do "ifconfig"
command to display all network interfaces on the machine.
Search for the interface as in item 1 (vboxnet0 in our example) Take
the ip address specified there (most probably 192.168.56.1 - default),
and that is the correct remote controller ip address to use when
starting a virtual network in mininet vm as stated in the example
above (--controller=remote,ip=192.168.56.1) .
If you are still not able to connect, you might want to consider
temporarily disabling firewall on the host running the controller (on
Linux, for example, iptables -F will do the job)
Sometimes, the way you start the mininet is a problem, it does not
give error, but does not connect to the remote server. Here is a wrong
example:
sudo mn --topo=tree,3 --mac --switch=ovsk --controller=remote,
ip=192.168.16.10
Here is the correct example:
sudo mn --topo=tree,3 --mac --switch=ovsk
--controller=remote,ip=192.168.16.10
The difference is the "SPACE" between "remote," and "ip".
我没有看到我想念的东西。
提前谢谢你,
大卫
您在 ODL 上有 openflowplugin 功能 运行 吗?你可以从
"feature:list -i | grep openflow"
的 karaf 控制台
您还可以查看 ODL VM 上的端口 6633 是否 运行。像 "netstat -na | grep 6633"
查看是否可以打开从 mininet VM 到 ODL IP 和 openflow 的连接
港口。我想应该是 "nc 192.168.56.3 6633"
只是一些解决问题的想法,但由于您可以从您的设备上 ping ODL ip
mininet VM,我猜连接到 openflow 有问题
港口。所以也许它甚至没有打开(功能未加载或被阻止等)
我终于设法解决了这个问题。
sudo ufw disable
在 mininet 和 ODL 上都解决了这个问题。
再次感谢 jamo 的提示。
早上好,
我想在 VirtualBox 中设置 OpenDayLight SDN 控制器和 Mininet。到目前为止,我都安装并获得了它们 运行。 我的界面是:
- 1 个 NAT
- 1 个仅主机适配器
对于两个 VM。 Host only 适配器的 IP 地址为 192.168.56.1。 OpenDayLight VM 收到 192.168.56.3, Mininet VM 收到 192.168.56.4.
我可以 ping 通这两个虚拟机。我不能做的是使用以下命令创建一个简单的测试拓扑:
sudo mn --topo linear,3 --mac --controller=remote,ip=192.168.56.3,port=6633 --switch ovs,protocols=OpenFlow13
事实上,运行它导致了这个错误:
mininet@mininet-vm:~$ sudo mn --topo linear,3 --mac --controller=remote,ip=192.168.56.3,port=6633 --switch ovs,protocols=OpenFlow13
*** Creating network
*** Adding controller
Unable to contact the remote controller at 192.168.56.3:6633
*** Adding hosts:
h1 h2 h3
*** Adding switches:
s1 s2 s3
*** Adding links:
(h1, s1) (h2, s2) (h3, s3) (s2, s1) (s3, s2)
*** Configuring hosts
h1 h2 h3
*** Starting controller
c0
*** Starting 3 switches
s1 s2 s3 ...
*** Starting CLI:
mininet>
来自主站点:
Important troubleshooting - if you are running VirtualBox on the same host/desktop where the controller is running, and trying to start the virtual network on Mininet VM produces this error: "Unable to contact the remote controller at ...", then the following resolves the problem:
In VirtualBox, go to File-Preferences-Network and make sure you have at least one interface defined as Host-Only. Lets say its name is vboxnet0
In VirtualBox - Mininet Vm - Settings - Network, check that the adapter is of type Host only , and is connected to the interface from item 1 (vboxnet0)
On your host where controller and VirtualBox run, do "ifconfig" command to display all network interfaces on the machine.
Search for the interface as in item 1 (vboxnet0 in our example) Take the ip address specified there (most probably 192.168.56.1 - default), and that is the correct remote controller ip address to use when starting a virtual network in mininet vm as stated in the example above (--controller=remote,ip=192.168.56.1) .
If you are still not able to connect, you might want to consider temporarily disabling firewall on the host running the controller (on Linux, for example, iptables -F will do the job)
Sometimes, the way you start the mininet is a problem, it does not give error, but does not connect to the remote server. Here is a wrong example:
sudo mn --topo=tree,3 --mac --switch=ovsk --controller=remote, ip=192.168.16.10
Here is the correct example:
sudo mn --topo=tree,3 --mac --switch=ovsk --controller=remote,ip=192.168.16.10
The difference is the "SPACE" between "remote," and "ip".
我没有看到我想念的东西。
提前谢谢你,
大卫
您在 ODL 上有 openflowplugin 功能 运行 吗?你可以从 "feature:list -i | grep openflow"
的 karaf 控制台您还可以查看 ODL VM 上的端口 6633 是否 运行。像 "netstat -na | grep 6633"
查看是否可以打开从 mininet VM 到 ODL IP 和 openflow 的连接 港口。我想应该是 "nc 192.168.56.3 6633"
只是一些解决问题的想法,但由于您可以从您的设备上 ping ODL ip mininet VM,我猜连接到 openflow 有问题 港口。所以也许它甚至没有打开(功能未加载或被阻止等)
我终于设法解决了这个问题。
sudo ufw disable
在 mininet 和 ODL 上都解决了这个问题。
再次感谢 jamo 的提示。