Frenetic HelloSDNWorld

Follow

Frenetic-Github

HelloSDNWorld

实验环境:

Frenetic虚拟机:

Frenetic HelloSDNWorld

实验步骤:

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创建有两个交换机的网络拓扑。

Frenetic HelloSDNWorld

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。

Frenetic HelloSDNWorld

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

$ frenetic http-controller --verbosity debug

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

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

未创建Mininet网络拓扑时:

Frenetic HelloSDNWorld

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

Frenetic HelloSDNWorld

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

$ python -m frenetic.examples.repeater

注意,请先创建Mininet拓扑。

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

Frenetic HelloSDNWorld

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的大门。

Frenetic HelloSDNWorld

2016/11/29

上一篇:Linux文件索引节点相关概念


下一篇:剑指offer第二天