找回密码
 注册
查看: 4772|回复: 3

ovs-dpctl dump-flows 抓取流标

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-11-19 15:51:08 | 显示全部楼层 |阅读模式
通过ovs-dpctl 命令,配合dump-flows 查看某个IP地址的流标信息。
: L9 x9 }! n4 }ovs-dpctl dump-flows |grep 12.35.27.25
/ z3 z) `# C# G6 [( [8 jskb_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
8 X8 U9 S: [, B' F. Y4 H2 ]3 {; Xskb_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

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-11-21 23:54:37 | 显示全部楼层
ovs-dpctl dump-flows
8 \3 a# l" h9 {: Brecirc_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& [) O: h1 y4 ]4 r5 ?9 U
recirc_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
( \: {; u3 I# T' X! D! grecirc_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
; Z; k$ ?2 p6 w9 U& Drecirc_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

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 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.10 p2 |: ?' G1 V4 w/ {: R
2018-12-26 20:26:58.588 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
+ d# V4 [  v$ h2 N0 m* F2018-12-26 20:26:58.590 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
" d6 X8 E' a/ ?8 I2018-12-26 20:26:59.625 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2019-10-9 15:57:56 | 显示全部楼层
sudo ovs-dpctl dump-flows |grep 114.114.114.114
" _5 O5 Q/ p9 a# X$ i4 Z0 M- Fskb_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
5 P" B1 Q% y& i! ^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)),7( F! `/ s& h# Y! S
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
2 e" Q1 c4 P/ Lskb_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
( U6 c0 m% j/ h/ }/ ~; s; u8 k/ Gskb_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* h" K' t6 g4 _- B' p% V
[deployer@BFJD-PSC-P7F1-S-PM-OS01-BCEC-32 ~]$ sudo ovs-dpctl dump-flows |grep 114.114.114.114
3 e% R/ {5 \: f* ^4 _0 Z; s6 Kskb_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# x4 a' R: R. b& v0 a6 ]. k/ p
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=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+ v- B0 Y, t* W0 N
skb_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
. G& U% P4 f2 P  iskb_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+ {5 e# p+ V3 |
skb_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
您需要登录后才可以回帖 登录 | 注册

本版积分规则

返回首页|Archiver|手机版|小黑屋|易陆发现技术论坛 ( 蜀ICP备2026014127号-1 )

GMT+8, 2026-6-12 00:17 , Processed in 0.018133 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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