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

ovs-dpctl dump-flows 抓取流标

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-11-19 15:51:08 | 显示全部楼层 |阅读模式
通过ovs-dpctl 命令,配合dump-flows 查看某个IP地址的流标信息。8 U" _( E! ^" t
ovs-dpctl dump-flows |grep 12.35.27.25
+ c. y4 S( M. _0 s# l$ ?+ Fskb_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
2 T! D5 L7 c8 v. i- j5 hskb_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 9 O0 ?$ ?. I, T, z8 F9 Z
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
' ]$ Q5 O4 E, D3 ^5 D! ~8 Drecirc_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
; `3 ^. T( d" n; ?5 d( }5 [  l# _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
1 r$ @  [- C) y# S, vrecirc_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.19 r$ e. S" W; j2 d
2018-12-26 20:26:58.588 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!6 [! I0 R7 R. P3 e- c# A
2018-12-26 20:26:58.590 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
+ X5 O( l7 O9 w2018-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
& r- u0 D3 h# D( dskb_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)),71 ^1 `- s; X( g
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* t6 |3 @$ M0 X
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
! A1 z2 B2 ~9 B8 N% A# W+ Q9 zskb_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: Z$ p' w0 v9 o6 G5 L
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=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
" c. N, i! t/ ~: a: q5 I3 k[deployer@BFJD-PSC-P7F1-S-PM-OS01-BCEC-32 ~]$ sudo ovs-dpctl dump-flows |grep 114.114.114.114
" t: r+ k& _* Dskb_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- p; j, C% c$ G/ Q6 t& v
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% U( O. K. C0 T  g
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
4 V; z5 c: R7 y6 o) X$ mskb_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
* m* _* K. Y% \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 02:20 , Processed in 0.020628 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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