• Frenetic HelloSDNWorld


    Follow

    Frenetic-Github

    HelloSDNWorld

    实验环境:

    Frenetic虚拟机:

    实验步骤:

    1.Start up a terminal window - – two are provided in the VM under Accessories: Byobu Terminal (which integrates nicely with tmux) and LXTerminal (which has graphical tabs). Either one will do.

    打开一个终端。

    注意,这里打开的终端,需要是Byobu Terminal或者是LXTerminal,不能是其他类型的Terminal。

    2.Start up a Mininet sample network with a switch and 2 hosts:

    $ sudo mn --topo=single,2 --controller=remote
    

    使用Mininet创建有两个交换机的网络拓扑。

    3.Try pinging the host h2 from the host h1:

    $ h1 ping h2 
    

    Unfortunately, the ping won't work because you don't have an SDN network program in place! Press CTRL-C to stop the pinging.

    交换机互ping。

    注意:ping是不成功的!当看到ping失败的时候惊出冷汗,才发现是黑色幽默,ctrl+c终止ping。

    4.Start up another terminal window and start up Frenetic:

    $ frenetic http-controller --verbosity debug
    

    在新的终端中打开一个controller。

    我的操作是,先打开controller再创建Mininet拓扑。

    未创建Mininet网络拓扑时:

    创建网络拓扑,结束实验时:

    5.In a third terminal window, start up the example program for the Python repeater:

    $ python -m frenetic.examples.repeater
    

    注意,请先创建Mininet拓扑。

    在第三个终端,运行程序,执行Python repeater。

    6.Now, back in the window running Mininet, the ping should now succeed:

    mininet> h1 ping h2
    

    Congratulations! You now have a working Software Defined Network.

    再次互ping,恭喜您,在Frenetic的虚拟机中打开了SDN的大门。

    2016/11/29

  • 相关阅读:
    php 修改、增加xml结点属性的实现代码
    mysql rand随机查询记录效率
    分享:mysql 随机查询数据
    分享:perl 文件操作总结
    分享:Perl打开与读取文件的方法
    js日期相关函数总结分享
    php后台如何避免用户直接进入方法实例
    python 函数的进阶
    python 初识函数
    python 冒泡排序
  • 原文地址:https://www.cnblogs.com/qq952693358/p/6115874.html
Copyright © 2020-2023  润新知