标签:foreign 方法 code provides net sys time server des
1、 不启动ryu
root@kunpeng82 app]# ryu-manager --ofp-tcp-listen-port 6666 --verbose simple_switch_13.py loading app simple_switch_13.py loading app ryu.controller.ofp_handler instantiating app simple_switch_13.py of SimpleSwitch13 instantiating app ryu.controller.ofp_handler of OFPHandler BRICK SimpleSwitch13 CONSUMES EventOFPPacketIn CONSUMES EventOFPSwitchFeatures BRICK ofp_event PROVIDES EventOFPPacketIn TO {‘SimpleSwitch13‘: {‘main‘}} PROVIDES EventOFPSwitchFeatures TO {‘SimpleSwitch13‘: {‘config‘}} CONSUMES EventOFPEchoReply CONSUMES EventOFPEchoRequest CONSUMES EventOFPErrorMsg CONSUMES EventOFPHello CONSUMES EventOFPPortDescStatsReply CONSUMES EventOFPPortStatus CONSUMES EventOFPSwitchFeatures
端口6634是ovs-vswitchd监听端口是被动连接管理的端口 所谓的被动连接端口是指,控制器可以主动连接此端口,控制此ovs,下面就是设置被动端口的 方式 ovs-vsctl set-controller s1 ptcp:8888 特别说明:相对应被动端口,主动端口(ovs主动连接并和控制器通信的端口)设置方式如下: ovs-vsctl set-controller s1 tcp:127.0.0.1:8887 主动连接本地控制器127.0.0.1:8887端口 主动连接也可以设置多个,设置方法如下 通过通信数据包得知,该ovs会和本地控制器6636和6637通信,如果有packet in事件时候会将该事件分别发一份给这两个控制器,至于两个控制器间的关系协作暂无研究。 ovs-vsctl set-controller s1 tcp:127.0.0.1:6636 tcp:127.0.0.1:6637
[root@kunpeng82 devuser]# netstat -lpn -t Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 2986/sshd tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 3304/master tcp 0 0 0.0.0.0:6653 0.0.0.0:* LISTEN 41169/controller tcp 0 0 0.0.0.0:6666 0.0.0.0:* LISTEN 41526/python3 tcp6 0 0 :::22 :::* LISTEN 2986/sshd tcp6 0 0 ::1:25 :::* LISTEN 3304/master [root@kunpeng82 devuser]# ps -lf -p 41169 F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 4 S root 41169 41100 0 80 0 - 49 do_sys 11:32 pts/2 00:00:00 controller -v ptcp:6653 [root@kunpeng82 devuser]# ps -lf -p 41526 F S UID PID PPID C PRI NI ADDR SZ WCHAN STIME TTY TIME CMD 0 S root 41526 40924 0 80 0 - 2612 ep_pol 11:41 pts/1 00:00:01 /bin/python3 /usr/local/bin/ryu-manager [root@kunpeng82 devuser]#
标签:foreign 方法 code provides net sys time server des
原文地址:https://www.cnblogs.com/dream397/p/13137461.html