Use openvswitch ovs-appctl

Reference Links: https://www.cnblogs.com/zqyanywn/p/10501590.html

1.  FDB / Show  Bridge  List corresponding to the specified information until each of the MAC and the VLAN bridge, and including the port number of the learned MAC address information as well as the entry age, seconds 

[root@ostack1 ~]# ovs-appctl fdb/show br-eth1
 port  VLAN  MAC                Age
    1     4  fa:16:3e:e2:af:d7  225
    1   200  fa:16:3e:12:d2:92  145
    2     0  fa:16:3e:ef:95:a9   89
    2     0  fa:16:3e:0e:74:20   39
    1   256  fa:16:3e:0a:2c:4a    8
    1   256  fa:16:3e:d6:4d:7d    8
    1    256   FA: 16 : 3e: 20 : Cf: Bf     8 
    1    256   FA: 16 : 3e: 7a: 1c: 9c     8 
    1    256   FA: 16 : 3e: FF: 78 : 24     8 
    1    256   FA: 16 : 3e: ec View : 54 : 5f     7 
    1    256   FA: 16 : 3e: 2e: FF: F5     7 
    1    256   FA: 16 : 3e: F4: the fb: 9d     7 
    2    256   0c: C6: the cc: F9: 07 : 76     1 
    1   256   fa: 16 : 3e: 90 : A0: 11     1 
    3    256   52 : 54 : 00 : B8: TLC: 37     0 
    1    256   FA: 16 : 3e: E2: of: d7     0

2. FDB / the flush  [ Bridge ]
Clear the MAC learning table of the bridge, the bridge is not specified apply to all bridges 

3. Bridge / dump-Flows  Bridge  to list all the streams on the bridge, including those (eg ovs-ofctl dump-flows) in the other default command hidden stream flow mechanisms such as policy-band management settings are not allowed modify and coverage, so the controller who they are hidden.

[root@ostack1 ~]# ovs-appctl bridge/dump-flows br-eth3
duration=306s, n_packets=52, n_bytes=2336, priority=2,in_port=2,actions=resubmit(,1)
duration=325s, n_packets=329, n_bytes=22978, priority=0,actions=NORMAL
duration=306s, n_packets=5574, n_bytes=387046, priority=1,actions=resubmit(,3)
table_id=1, duration=306s, n_packets=51, n_bytes=2294, priority=0,actions=resubmit(,2)
table_id=2, duration=305s, n_packets=51, n_bytes=2294, priority=2,in_port=2,actions=drop
table_id=3, duration=305s, n_packets=5563, n_bytes=386275, priority=1,actions=NORMAL
table_id=254, duration=10276157s, n_packets=0, n_bytes=0, priority=2,recirc_id=0,actions=drop
table_id=254, duration=10276157s, n_packets=0, n_bytes=0, priority=0,reg0=0x1,actions=controller(reason=no_match)
table_id=254, duration=10276157s, n_packets=31, n_bytes=8887, priority=0,reg0=0x2,actions=drop
table_id=254, duration=10276157s, n_packets=0, n_bytes=0, priority=0,reg0=0x3,actions=drop

 

Guess you like

Origin www.cnblogs.com/wangjq19920210/p/11833464.html