博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
Neutron 基于Flow的分布式 L3(功能验证)
阅读量:6876 次
发布时间:2019-06-26

本文共 2463 字,大约阅读时间需要 8 分钟。

实验部署图:

网络拓扑图:

 

计算节点(compute02)Flow table:

VM1  ping VM3(网络节点的网关tap 处于down):

 

 修改计算节点(compute02)的脚本:

1 #tabl3 20: 2 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 table=20, priority=3,dl_vlan=1,dl_dst=fa:16:3e:64:c2:a8,nw_dst=192.168.1.0/24 actions=goto_table:60" 3 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 table=20, priority=3,dl_vlan=2,dl_dst=fa:16:3e:ac:8a:27,nw_dst=192.168.0.0/24 actions=goto_table:60" 4   5   6 #table 60: 7 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 priority=2049 table=60 dl_vlan=1,dl_dst=fa:16:3e:64:c2:a8,nw_dst=192.168.0.1 actions=goto_table:100" 8 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 priority=2049 table=60 dl_vlan=1,dl_dst=fa:16:3e:64:c2:a8,nw_dst=192.168.1.1 actions=goto_table:100" 9 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 priority=2049 table=60 dl_vlan=2,dl_dst=fa:16:3e:ac:8a:27,nw_dst=192.168.0.1 actions=goto_table:100"10 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 priority=2049 table=60 dl_vlan=2,dl_dst=fa:16:3e:ac:8a:27,nw_dst=192.168.1.1 actions=goto_table:100"11  12 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 priority=2048 table=60 dl_vlan=1,nw_dst=192.168.1.0/24 actions=set_field:fa:16:3e:ac:8a:27->eth_src,dec_ttl,mod_vlan_vid:2,goto_table:70"13 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 priority=2048 table=60 dl_vlan=2,nw_dst=192.168.0.0/24 actions=set_field:fa:16:3e:64:c2:a8->eth_src,dec_ttl,mod_vlan_vid:1,goto_table:70"14  15 #table 70:16 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 table=70, priority=0 actions=,resubmit(,100)"17 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 table=70, priority=1024,ip,dl_vlan=2,nw_dst=192.168.1.4 actions=set_field:fa:16:3e:5d:92:3f->eth_dst,goto_table:100"18 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 table=70, priority=1024,ip,dl_vlan=1,nw_dst=192.168.0.3 actions=set_field:fa:16:3e:13:3d:b7->eth_dst,goto_table:100"19  20 #table 100:21 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 table=100, priority=65535,ip,dl_vlan=1,dl_dst=fa:16:3e:13:3d:b7 actions=output:in_port"22 ovs-ofctl add-flow br-tun "hard_timeout=0 idle_timeout=0 table=100, priority=65535,ip,dl_vlan=2,dl_dst=fa:16:3e:5d:92:3f actions=output:in_port"23  24  25 #mod table:26 ovs-ofctl --strict mod-flows br-tun "hard_timeout=0 idle_timeout=0 table=20, priority=0 actions=resubmit(,60)"

转载于:https://www.cnblogs.com/gaozhengwei/p/7099694.html

你可能感兴趣的文章
vc生成静态库例子
查看>>
那些帮助你成为优秀前端工程师的讲座——《CSS篇》
查看>>
CheckBox为CheckBoxList实现全选或全取消选择
查看>>
Windbg中使用查找内存并设置访问断点
查看>>
数据库分区表的使用
查看>>
【SAS NOTES】_NULL_
查看>>
辨别delegate方法的好办法
查看>>
C#实现的几种委托
查看>>
Hypertable 0.9.7.1 发布,分布式数据库
查看>>
PHP获得真实客户端的真实IP REMOTE_ADDR,HTTP_CLIENT_IP,HTTP_X_FORWARDED_FOR
查看>>
poj1323
查看>>
c getline
查看>>
linux下拷贝的时候有时候会出现cp:omitting directory的错误
查看>>
C#简单的多线程
查看>>
HTML转换成字符串
查看>>
关于使用CTE(公用表表达式)的递归查询
查看>>
C#简单的面试题目(五)
查看>>
讲故事学Socket编程
查看>>
ural(Timus) 1037. Memory Management
查看>>
jquery实现菜单的折叠并且变换图片
查看>>