1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
| echo "Tracing an ICMP request from lp-web1 to lp-web2 (logical flow, assuming MACs are learned)..."
# 假设 MAC 地址已经学习到
sudo ovn-trace -v ls-web \
'inport == "lp-web1" && eth.src == 4e:52:1b:26:54:b5 && eth.dst == 9a:02:98:21:d6:53 && ip4.src == 10.0.0.10 && ip4.dst == 10.0.0.11 && ip.proto == 1'
# 输出
# icmp,reg14=0x1,vlan_tci=0x0000,dl_src=4e:52:1b:26:54:b5,dl_dst=9a:02:98:21:d6:53,nw_src=10.0.0.10,nw_dst=10.0.0.11,nw_tos=0,nw_ecn=0,nw_ttl=0,nw_frag=no,icmp_type=0,icmp_code=0
# icmp,reg14=0x1,vlan_tci=0x0000,dl_src=4e:52:1b:26:54:b5,dl_dst=9a:02:98:21:d6:53,nw_src=10.0.0.10,nw_dst=10.0.0.11,nw_tos=0,nw_ecn=0,nw_ttl=0,nw_frag=no,icmp_type=0,icmp_code=0
ingress(dp="ls-web", inport="lp-web1")
--------------------------------------
0. ls_in_check_port_sec (northd.c:9399): 1, priority 50, uuid 1d79ecbe
reg0[15] = check_in_port_sec();
next;
28. ls_in_l2_lkup (northd.c:10292): eth.dst == 9a:02:98:21:d6:53, priority 50, uuid 27ae7e1f
outport = "lp-web2";
output;
egress(dp="ls-web", inport="lp-web1", outport="lp-web2")
--------------------------------------------------------
11. ls_out_check_port_sec (northd.c:5866): 1, priority 0, uuid a6a2fdde
reg0[15] = check_out_port_sec();
next;
12. ls_out_apply_port_sec (northd.c:5874): 1, priority 0, uuid 5e874079
output;
/* output to "lp-web2", type "" */
|