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

相關文章
相關標籤/搜索
本站公眾號
   歡迎關注本站公眾號,獲取更多信息