You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Ubuntu环境下Mininet 2.3.0安装及运行故障求助

在Ubuntu上安装Mininet 2.3.0遇到的系列问题

1. 执行install.sh全量安装时Git克隆超时

执行mininet/util/install.sh -a脚本时,出现GitHub连接超时错误:

root@Mininet-PC:/home/mininet# mininet/util/install.sh -a
.
.
.
Cloning into 'openflow'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Connection timed out

已验证:ping github.com的IP 140.82.121.4,丢包率为0%。

2. 启动基础拓扑时提示找不到OVS工具

执行mn命令启动简单拓扑,报错找不到ovs-vsctl:

root@Mininet-PC:/home/mininet# mn
*** Creating network
*** Adding controller
*** Adding hosts:
h1 h2 
*** Adding switches:
Cannot find required executable ovs-vsctl.
Please make sure that Open vSwitch (openvswitch.org) is installed and available in your $PATH:
(/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin)

3. 安装openvswitch-testcontroller时遇到端口占用

尝试安装openvswitch-testcontroller时,出现端口6653被占用的错误:

*** Adding controller
--------------------------------------------------------------------------------
Caught exception. Cleaning up...

Exception: Please shut down the controller which is running on port 6653:
Active Internet connections (servers and established)
tcp        0      0 0.0.0.0:6653            0.0.0.0:*               LISTEN      5982/ovs-testcontro 
--------------------------------------------------------------------------------
*** Removing excess controllers/ofprotocols/ofdatapaths/pings/noxes
killall controller ofprotocol ofdatapath ping nox_corelt-nox_core ovs-openflowd ovs-controllerovs-testcontroller udpbwtest mnexec ivs ryu-manager 2> /dev/null
killall -9 controller ofprotocol ofdatapath ping nox_corelt-nox_core ovs-openflowd ovs-controllerovs-testcontroller udpbwtest mnexec ivs ryu-manager 2> /dev/null
pkill -9 -f "sudo mnexec"
*** Removing junk from /tmp
rm -f /tmp/vconn* /tmp/vlogs* /tmp/*.out /tmp/*.log
*** Removing old X11 tunnels
*** Removing excess kernel datapaths
ps ax | egrep -o 'dp[0-9]+' | sed 's/dp/nl:/'
***  Removing OVS datapaths
ovs-vsctl --timeout=1 list-br
/bin/sh: 1: ovs-vsctl: not found
ovs-vsctl --timeout=1 list-br
/bin/sh: 1: ovs-vsctl: not found
*** Removing all links of the pattern foo-ethX
ip link show | egrep -o '([-_.[:alnum:]]+-eth[[:digit:]]+)'
ip link show
*** Killing stale mininet node processes
pkill -9 -f mininet:
*** Shutting down stale tunnels
pkill -9 -f Tunnel=Ethernet
pkill -9 -f .ssh/mn
rm -f ~/.ssh/mn/*
*** Cleanup complete.

已尝试的解决操作

  • 执行apt-get update和apt-get upgrade,问题未解决

内容的提问来源于stack exchange,提问作者pauliee

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.11 01:05:52