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

ovs-dpctl dump-flows 抓取流标

[复制链接]

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
发表于 2018-11-19 15:51:08 | 显示全部楼层 |阅读模式
通过ovs-dpctl 命令,配合dump-flows 查看某个IP地址的流标信息。8 S7 M& S) ?! p$ p) R) G
ovs-dpctl dump-flows |grep 12.35.27.25 7 A( o& Y$ O- f- }1 \
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' I2 l( V# d5 _3 ~$ F
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

1

主题

0

回帖

12

积分

管理员

积分
12
QQ
 楼主| 发表于 2018-11-21 23:54:37 | 显示全部楼层
ovs-dpctl dump-flows
  t" l# {" M# k- p: g. Vrecirc_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
4 u% H5 T. U  r: |0 K. h1 B3 Grecirc_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
# g6 y2 l: x8 Q- ]- g- wrecirc_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
. r' B7 r3 Q+ h- @; a. T; C8 w" `recirc_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.1
/ b  O% r/ w/ \; B7 u' D; A2018-12-26 20:26:58.588 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
6 X! k6 U8 t! t  a# s2018-12-26 20:26:58.590 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!
% u/ u. m! M+ n6 A3 G/ A2018-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
* q& V' p1 q9 z; |3 F6 u5 O( Mskb_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)),73 v( I1 p) v/ ]4 Y$ x. a
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
3 R3 T6 }, p* K- h8 o* }* nskb_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
* w- P! \% \4 }0 j" v6 C! j* `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:drop2 W- l' C- g# o
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
5 H+ l# c7 G, @$ U: ?4 s[deployer@BFJD-PSC-P7F1-S-PM-OS01-BCEC-32 ~]$ sudo ovs-dpctl dump-flows |grep 114.114.114.114  b; p* Z9 K8 {
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: g2 y; K9 X$ T0 ^5 k, |! u5 ~3 e
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
6 w0 G& o# p4 v- i" Hskb_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 e9 e% X& e" v" a% rskb_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:drop8 |- z# r5 F1 b7 W3 F
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:14 , Processed in 0.018448 second(s), 22 queries .

Powered by Discuz! X5.0

© 2001-2026 Discuz! Team.

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