IPv666666

要在IPv6中个搭建ryu和mininet建立模拟拓扑须要注意几个点:html

首先是,mininet中不能直接给主机配置IPv6的地址,只能先建立主机节点,而后再主机的终端进行配置ubuntu

ifconfig h1-eth0 inet6 add fc00::1/64

或者直接卸载mininet的自定义拓扑文件中:tcp

h1.cmd("ifconfig h1-eth0 inet6 add fc00::1/64")

 h2.cmd("ifconfig h2-eth0 inet6 add fc00::2/64")

其次,要设置交换机容许IPv6:(同上,两种方法,所示是在mininet中)code

s4.cmd("sysctl net.ipv6.conf.all.disable_ipv6=0")

而后给该交换机指定一个(或者多个)控制器,(由于不能只在在拓扑文件中直接写ipv6地址,会报错)(还有一点,写IPv6地址要加[],否则不能和:端口号区分开)htm

ovs-vsctl set-controller br0 tcp:[2001:da8::200]:6633 tcp:[2001:da8::10]:6633

 

最后,要将控制器指定到ipv6地址上!!!!这一点很重要,不指定的话默认是ipv4,因此得指定监听的主机和端口:ip

--ofp-listen-host: OpenFlow 監聽主機位址(host)
  (預設: '')
--ofp-tcp-listen-port: OpenFlow tcp 監聽埠口(port)
  (預設: 6633)
  (內容為一個整數)

若是是ipv6:cmd

ryu-manager --ofp-listen-host 2001:da8::200 --ofp-tcp-listen-port 6633 --verbose --observe-links tesp.py

参考地址:http://www.rendoumi.com/open-vswitchde-ovs-vsctlming-ling-xiang-jie/it

https://ryu-zhdoc.readthedocs.io/parameters.htmlio

http://www.openvswitch.org/support/dist-docs/ovs-vsctl.8.txttest

http://csie.nqu.edu.tw/smallko/sdn/ipv6_test.htm

还有一个在ubuntu中配置IPv6地址的:

https://askubuntu.com/questions/440649/how-to-disable-ipv6-in-ubuntu-14-04

相关文章
相关标签/搜索
本站公众号
   欢迎关注本站公众号,获取更多信息