首页 文章

ovs-ofctl doen不起作用 - 连接被拒绝

提问于
浏览
1

我正在关注openflow tutorial上的openflow教程 . 我正在使用mininet和ryu控制器和openvswitch版本2.8.0 . 当我尝试使用命令时:

sudo ovs-ofctl show s1

它给出了如下错误:

asd @ asd:〜/ ryu / ryu / mpls $ sudo ovs-ofctl show s1 ovs-ofctl:/var/run/openvswitch/s1.mgmt:无法打开套接字(连接被拒绝)

当我使用 sudo 时,我认为关于打开套接字连接的权限应该没有任何问题 . 不确定导致此错误的原因 . 感谢帮助 .

1 回答

  • 0

    错误消息是 ovs-vswitchd 没有打开 /var/run/openvswitch/s1.mgmt 预期的Unix套接字 . This usually means that ovs-vswitchd (the daemon process for Open vSwitch) is not running .

    您可以通过运行来检查:

    $ ps aux | grep ovs-vswitchd
    root      77289  0.0  0.0  25632  4916 ?        Ss   16:05   0:00 ovsdb-server --remote=punix:/var/run/openvswitch/db.sock --remote=db:Open_vSwitch,Open_vSwitch,manager_options --private-key=db:Open_vSwitch,SSL,private_key --certificate=db:Open_vSwitch,SSL,certificate --bootstrap-ca-cert=db:Open_vSwitch,SSL,ca_cert --log-file=/var/log/openvswitch/ovs-vswitchd.log -vsyslog:info -vfile:info --pidfile --detach
    root      77295  100  0.2 2608140 45820 ?       Ssl  16:05   3:13 ovs-vswitchd unix:/var/run/openvswitch/db.sock --pidfile --detach --log-file=/var/log/openvswitch/ovs-vswitchd.log -vfile:info
    paul      77447  0.0  0.0  14228   968 pts/2    S+   16:08   0:00 grep --color=auto ovs-vswitchd
    

    第一个进程 ovsdb-server 回答了OVSDB查询 . 第二个进程 ovs-vswitchd 回答OpenFlow查询和处理数据包 .

相关问题