易陆发现互联网技术论坛

 找回密码
 开始注册
查看: 4769|回复: 3
收起左侧

ovs-dpctl dump-flows 抓取流标

[复制链接]
发表于 2018-11-19 15:51:08 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?开始注册

x
通过ovs-dpctl 命令,配合dump-flows 查看某个IP地址的流标信息。
, a1 c8 o: e8 `& Fovs-dpctl dump-flows |grep 12.35.27.25 & R9 j) p( C: q# F- B( Y8 |* {4 a, k
skb_priority(0),in_port(17),eth(src=fa:16:3e:9c:f2:65,dst=68:54:ed:00:00:01),eth_type(0x0800),ipv4(src=12.18.0.38,dst=206.189.188.30,proto=1,tos=0xc0,ttl=64,frag=no),icmp(type=3,code=3), packets:0, bytes:0, used:never, actions:set(eth(src=02:97:4f:3d:53:00,dst=a4:7b:2c:57:29:3f)),set(ipv4(src=12.35.27.25,dst=206.189.188.30,proto=1,tos=0xc0,ttl=63,frag=no)),3! Z: K2 Z3 N( e' x( g  Q- b1 ^
skb_priority(0),tunnel(tun_id=0x848d8d/0xffffffffffffffff,src=10.32.0.14/255.255.255.255,dst=10.32.96.20/255.255.255.255,tos=0/0xff,ttl=254/0xff,flags(key)),in_port(8),skb_mark(0),eth(src=a4:7b:2c:56:e9:3f,dst=00:00:0a:20:60:14),eth_type(0x0800),ipv4(src=206.189.188.30,dst=12.35.27.25,proto=17,tos=0,ttl=239,frag=no),udp(src=43242,dst=53413), packets:0, bytes:0, used:never, actions:set(eth(src=68:54:ed:00:00:01,dst=fa:16:3e:9c:f2:65)),set(ipv4(src=206.189.188.30,dst=192.168.0.38,proto=17,tos=0,ttl=238,frag=no)),set(skb_mark(0x7f200)),17
 楼主| 发表于 2018-11-21 23:54:37 | 显示全部楼层
ovs-dpctl dump-flows ( y) M0 m, C2 S6 Y# @
recirc_id(0),in_port(12),eth(src=fa:16:3e:7f:7e:10,dst=fa:16:3e:6f:64:c6),eth_type(0x0800),ipv4(frag=no), packets:127, bytes:10898, used:0.942s, flags:P., actions:5
: B2 K" k2 T" D+ jrecirc_id(0),in_port(5),eth(src=fa:16:3e:6f:64:c6,dst=fa:16:3e:7f:7e:10),eth_type(0x0806),arp(sip=10.10.20.5), packets:0, bytes:0, used:never, actions:12: @5 h/ ~( V# h5 k  d$ |
recirc_id(0),in_port(12),eth(src=fa:16:3e:7f:7e:10,dst=fa:16:3e:6f:64:c6),eth_type(0x0806),arp(sip=10.10.20.7), packets:0, bytes:0, used:never, actions:5
7 |) A- N- l% k( K1 wrecirc_id(0),in_port(5),eth(src=fa:16:3e:6f:64:c6,dst=fa:16:3e:7f:7e:10),eth_type(0x0800),ipv4(frag=no), packets:101, bytes:13046, used:0.942s, flags:P., actions:12
 楼主| 发表于 2018-12-27 17:48:34 | 显示全部楼层
2018-12-26 20:26:56.943 49119 INFO nuageextension.utils.lock_client [-] GET NFV_LOCK for me: 172.24.48.1* Q5 E; c/ b) x
2018-12-26 20:26:58.588 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
4 k9 |) A- h# g0 E5 X* V2018-12-26 20:26:58.590 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
0 V( O; b- T8 P4 [* ]9 l# T2018-12-26 20:26:59.625 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
 楼主| 发表于 2019-10-9 15:57:56 | 显示全部楼层
sudo ovs-dpctl dump-flows |grep 114.114.114.114
7 J! q6 a( }( Q+ k  }skb_priority(0),in_port(39),eth(src=fa:16:3e:e7:f0:f9,dst=68:54:ed:00:7d:b0),eth_type(0x0800),ipv4(src=192.168.155.18,dst=114.114.114.114,proto=17,tos=0,ttl=64,frag=no),udp(src=36117,dst=53), packets:0, bytes:0, used:never, actions:set(tunnel(tun_id=0x42ea2b,src=0.0.0.0,dst=10.32.67.45,tos=0x0,ttl=64,flags(key))),set(eth(src=d2:e9:cc:f3:46:40,dst=00:00:0a:20:43:2d)),set(ipv4(src=192.168.155.18,dst=114.114.114.114,proto=17,tos=0,ttl=63,frag=no)),7  p! b- E/ N1 _  v$ F
skb_priority(0),in_port(39),eth(src=fa:16:3e:e7:f0:f9,dst=68:54:ed:00:7d:b0),eth_type(0x0800),ipv4(src=192.168.155.18,dst=114.114.114.114,proto=17,tos=0,ttl=64,frag=no),udp(src=51339,dst=53), packets:0, bytes:0, used:never, actions:set(tunnel(tun_id=0x42ea2b,src=0.0.0.0,dst=10.32.67.45,tos=0x0,ttl=64,flags(key))),set(eth(src=d2:e9:cc:f3:46:40,dst=00:00:0a:20:43:2d)),set(ipv4(src=192.168.155.18,dst=114.114.114.114,proto=17,tos=0,ttl=63,frag=no)),75 `9 T1 N" D0 i
skb_priority(0),tunnel(tun_id=0x42ea2b/0xffffffffffffffff,src=10.32.67.45/255.255.255.255,dst=10.32.98.72/255.255.255.255,tos=0/0xff,ttl=63/0xff,flags(key)),in_port(7),skb_mark(0),eth(src=00:0e:1e:b4:1d:f2,dst=00:00:0a:20:62:48),eth_type(0x0800),ipv4(src=114.114.114.114,dst=192.168.155.18,proto=17,tos=0x4,ttl=149,frag=no),udp(src=53,dst=36117), packets:0, bytes:0, used:never, actions:set(eth(src=68:54:ed:00:7d:b0,dst=fa:16:3e:e7:f0:f9)),set(ipv4(src=114.114.114.114,dst=192.168.155.18,proto=17,tos=0x4,ttl=148,frag=no)),39" M! Z5 \* W& A, I' A
skb_priority(0),in_port(53),eth_type(0x0800),ipv4(src=172.16.1.4/255.255.255.255,dst=114.114.114.114/255.255.255.255,proto=1/0xff,tos=0/0,ttl=64/0,frag=no/0xff), packets:82, bytes:8036, used:0.408s, actions:drop
8 p4 }6 C/ x3 C! b" p" V) L2 E0 Sskb_priority(0),tunnel(tun_id=0x42ea2b/0xffffffffffffffff,src=10.32.67.45/255.255.255.255,dst=10.32.98.72/255.255.255.255,tos=0/0xff,ttl=63/0xff,flags(key)),in_port(7),skb_mark(0),eth(src=00:0e:1e:b4:1d:f2,dst=00:00:0a:20:62:48),eth_type(0x0800),ipv4(src=114.114.114.114,dst=192.168.155.18,proto=17,tos=0x4,ttl=149,frag=no),udp(src=53,dst=51339), packets:0, bytes:0, used:never, actions:set(eth(src=68:54:ed:00:7d:b0,dst=fa:16:3e:e7:f0:f9)),set(ipv4(src=114.114.114.114,dst=192.168.155.18,proto=17,tos=0x4,ttl=148,frag=no)),39
& y& |6 i! Q: a9 [& H[deployer@BFJD-PSC-P7F1-S-PM-OS01-BCEC-32 ~]$ sudo ovs-dpctl dump-flows |grep 114.114.114.114
! @$ L$ X  s# D6 C. v3 |skb_priority(0),tunnel(tun_id=0x4beab8/0xffffffffffffffff,src=10.32.67.45/255.255.255.255,dst=10.32.98.72/255.255.255.255,tos=0/0xff,ttl=63/0xff,flags(key)),in_port(7),skb_mark(0),eth(src=00:0e:1e:b4:1d:f2,dst=00:00:0a:20:62:48),eth_type(0x0800),ipv4(src=114.114.114.114,dst=192.168.20.8,proto=17,tos=0x4,ttl=149,frag=no),udp(src=53,dst=24602), packets:0, bytes:0, used:never, actions:set(eth(src=68:54:ed:00:c9:49,dst=fa:16:3e:e0:54:1b)),set(ipv4(src=114.114.114.114,dst=192.168.20.8,proto=17,tos=0x4,ttl=148,frag=no)),50
5 y0 t- V# S2 z# L! Zskb_priority(0),tunnel(tun_id=0x4beab8/0xffffffffffffffff,src=10.32.67.45/255.255.255.255,dst=10.32.98.72/255.255.255.255,tos=0/0xff,ttl=63/0xff,flags(key)),in_port(7),skb_mark(0),eth(src=00:0e:1e:b4:1d:f2,dst=00:00:0a:20:62:48),eth_type(0x0800),ipv4(src=114.114.114.114,dst=192.168.20.8,proto=17,tos=0x4,ttl=149,frag=no),udp(src=53,dst=12022), packets:0, bytes:0, used:never, actions:set(eth(src=68:54:ed:00:c9:49,dst=fa:16:3e:e0:54:1b)),set(ipv4(src=114.114.114.114,dst=192.168.20.8,proto=17,tos=0x4,ttl=148,frag=no)),50
' R, ], n  X: Q, nskb_priority(0),in_port(50),eth(src=fa:16:3e:e0:54:1b,dst=68:54:ed:00:c9:49),eth_type(0x0800),ipv4(src=192.168.20.8,dst=114.114.114.114,proto=17,tos=0,ttl=64,frag=no),udp(src=24602,dst=53), packets:0, bytes:0, used:never, actions:set(tunnel(tun_id=0x4beab8,src=0.0.0.0,dst=10.32.67.45,tos=0x0,ttl=64,flags(key))),set(eth(src=d2:e9:cc:f3:46:40,dst=00:00:0a:20:43:2d)),set(ipv4(src=192.168.20.8,dst=114.114.114.114,proto=17,tos=0,ttl=63,frag=no)),7
! a6 B$ u, X  B# M1 V( uskb_priority(0),in_port(53),eth_type(0x0800),ipv4(src=172.16.1.4/255.255.255.255,dst=114.114.114.114/255.255.255.255,proto=1/0xff,tos=0/0,ttl=64/0,frag=no/0xff), packets:91, bytes:8918, used:0.341s, actions:drop
$ `; g+ u) T6 K7 V* H0 Askb_priority(0),in_port(50),eth(src=fa:16:3e:e0:54:1b,dst=68:54:ed:00:c9:49),eth_type(0x0800),ipv4(src=192.168.20.8,dst=114.114.114.114,proto=17,tos=0,ttl=64,frag=no),udp(src=12022,dst=53), packets:0, bytes:0, used:never, actions:set(tunnel(tun_id=0x4beab8,src=0.0.0.0,dst=10.32.67.45,tos=0x0,ttl=64,flags(key))),set(eth(src=d2:e9:cc:f3:46:40,dst=00:00:0a:20:43:2d)),set(ipv4(src=192.168.20.8,dst=114.114.114.114,proto=17,tos=0,ttl=63,frag=no)),7
您需要登录后才可以回帖 登录 | 开始注册

本版积分规则

关闭

站长推荐上一条 /4 下一条

北京云银创陇科技有限公司以云计算运维,代码开发

QQ|返回首页|Archiver|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )点击这里给我发消息

GMT+8, 2026-4-9 00:02 , Processed in 0.047064 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

快速回复 返回顶部 返回列表