IPv666666

要在IPv6中个搭建ryu和mininet创建模拟拓扑需要注意几个点:

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

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

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

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

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

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

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

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

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

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

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

如果是ipv6:

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/

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

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

扫描二维码关注公众号,回复: 4305256 查看本文章

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

猜你喜欢

转载自my.oschina.net/u/3704723/blog/2623628