易陆发现互联网技术论坛

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

ovs-dpctl dump-flows 抓取流标

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

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

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

x
通过ovs-dpctl 命令,配合dump-flows 查看某个IP地址的流标信息。* x0 x% c4 ?- R
ovs-dpctl dump-flows |grep 12.35.27.25 6 z/ y/ p+ L0 n0 q. |9 z3 j8 _
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
! v5 l( T& d0 Y4 ~0 n: V5 qskb_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
: i" w0 i  K4 E7 H3 E9 erecirc_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
- W* m: d; T7 h. l$ E! L4 @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/ d+ J0 k6 y! p+ O, g  N
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:58 e' j6 J% U% g7 ^& D6 g
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
 楼主| 发表于 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
1 V2 m! Q( G# X+ X+ r7 x" F2018-12-26 20:26:58.588 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!: w3 L2 T- @" l+ P6 }
2018-12-26 20:26:58.590 49119 INFO nuageextension.utils.lock_server [-] RECEIVE LOCK REQUEST!% g1 D0 ?1 v! i4 N) n4 E: W
2018-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.1144 p0 N- N- O" Q. g* i% d; W  W- J
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)),77 H! [6 z) v  D  ~* U' V) m7 l/ z* 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  d1 I- S! [5 a) Z9 a( b0 {
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)),398 L4 J' j5 [& O. q' O9 U" g5 s7 b
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( Z: w2 K, k8 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=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& i2 X# ?' p) k
[deployer@BFJD-PSC-P7F1-S-PM-OS01-BCEC-32 ~]$ sudo ovs-dpctl dump-flows |grep 114.114.114.114
& b* t% z$ _2 v5 I) D5 Iskb_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" o' N* u- g# \7 f7 G& t
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- d6 V0 X) A8 n' p
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
0 h9 X- @5 O" N$ y- W& U, fskb_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
. r: [4 C  j! E; |1 i1 d7 d$ t* Wskb_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|小黑屋|易陆发现技术论坛 点击这里给我发消息

GMT+8, 2026-4-8 12:10 , Processed in 0.049322 second(s), 22 queries .

Powered by Discuz! X3.4 Licensed

© 2012-2025 Discuz! Team.

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