2016-11-03 182 views
0

我想攔截從控制器到達交換機的數據包(例如泛光燈),然後對這些數據包進行一些處理。我怎麼去解決這個問題?我應該從哪裏開始有一個好地方?在openvswitch攔截數據包

感謝

回答

0

如何窺探和監控命令記錄here

snoop switch Connects to switch and prints to the console all OpenFlow messages received.

monitor switch Connects to switch and prints to the console all OpenFlow messages received.

  1. 寫一個腳本運行監聽或監視
  2. 解析輸出
  3. 「然後做一些處理」

如果你不想使用OpenFlow消息但數據包可以使用wireshark from the command line