yanhaochen / learning-sdn Goto Github PK
View Code? Open in Web Editor NEWSDN 學習及實作範例。(因個人職涯關係,已不再維護,請見諒。)
SDN 學習及實作範例。(因個人職涯關係,已不再維護,請見諒。)
这个问题我也同样出现了,同时我的输出端口是在原来的基础上加2.
使用ovs-ofctl show可以发现ovs-system和我之前自己创建的br0,s2网桥分别占用了前三个端口,所以br0的四个端口都后移了一定到次序.p1对应port3,p2对应port4...
以上,希望能对解决问题有所帮助(当然这种现象可能也不能被称之为问题).
執行完EXAMPLE 2的指令後,的確執行了resubmit,可是之後的結果有點不同請問是為什麼呢?
# ovs-appctl ofproto/trace br0 in_port=1,dl_dst=01:80:c2:00:00:10
Bridge: br0
Flow: in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=01:80:c2:00:00:10,dl_type=0x0000
Rule: table=0 cookie=0 priority=0
OpenFlow actions=resubmit(,1)
Resubmitted flow: in_port=1,vlan_tci=0x0000,dl_src=00:00:00:00:00:00,dl_dst=01:80:c2:00:00:10,dl_type=0x0000
Resubmitted regs: reg0=0x0 reg1=0x0 reg2=0x0 reg3=0x0 reg4=0x0 reg5=0x0 reg6=0x0 reg7=0x0
Resubmitted odp: drop
Resubmitted megaflow: recirc_id=0,in_port=1,dl_src=00:00:00:00:00:00/01:00:00:00:00:00,dl_dst=01:80:c2:00:00:10/ff:ff:ff:ff:ff:f0,dl_type=0x0000
Rule: table=254 cookie=0 priority=0,reg0=0x2
OpenFlow actions=drop
Final flow: unchanged
Megaflow: recirc_id=0,in_port=1,dl_src=00:00:00:00:00:00/01:00:00:00:00:00,dl_dst=01:80:c2:00:00:10/ff:ff:ff:ff:ff:f0,dl_type=0x0000
Datapath actions: drop
#
目前看到EXAMPLE 1的指令如下:
$ sudo ovs-appctl ofproto/trace br0 in_port=1,dl_dst=01:80:c2:00:00:10
但,跑到死也跑不出一樣的結果,因為dl_dst錯了!(跟EXAMPLE 2的一模一樣)
所以跑出的結果,與範例結果不可能相同!
範例裡的dl_dst是01:80:c2:00:00:05
所以指令應該是:
$ sudo ovs-appctl ofproto/trace br0 in_port=1,dl_dst=01:80:c2:00:00:05
# ovs-ofctl add-flows br0 - << 'EOF'
> table=4 reg0=0 priority=99 dl_vlan=20 actions=1,strip,2
> table=4 reg0=0 priority=99 dl_vlan=30 actions=1,strip,3,4
> table=4 reg0=0 priority=50 actions=1
> EOF
ovs-ofctl: -:1: unknown action strip
$ sudo ovs-ofctl add-flow br0 \
"table=3 priority=50 actions=resumbit(,10), resubmit(,4)"
resumbit(,10) 應該是 resubmit(, 10)
問一下,在實際操作時,用你的拓樸和controller但都ping不到,這是什麼問題?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.