SDN 使用Mininet自带命令创建网络拓扑

发布时间 2023-04-27 16:50:43作者: 幻非

使用Mininet自带命令创建网络拓扑

启动 OpenDaylight

cd /home/ubuntu/karaf-0.7.1/bin/
./karaf 

image

如果为初次启动记得安装相应 feature

image

之后打开 http://192.168.1.50:8181/index.html#/topology 便查看拓扑结构

账号密码均为 admin

创建相应拓扑

打开一个新终端

每次执行拓扑后记得执行 pingall命令

单一网络拓扑4个主机

sudo mn --topo single,4 --controller=remote

image

image

线形网络拓扑3个交换机,每台交换机连接3台主机

sudo mn --topo linear,3,3 --controller=remote

image

image

树形网络拓扑深度为3,扇出为2

sudo mn --topo=tree,depth=3,fanout=2 --controller=remote

image

image

环面网络拓扑4条冗余圆环链路,每条圆环链路有5台交换机

sudo mn --topo=torus,5,4 --controller=remote

image

image