檢查ctp

檢查ctp

嘗試啟動 SCTP 關聯,但未啟動任何訊息。檢查了redhat linux機器,看不到sctp。

檢查ctp

checkctp:不支援協議

lsmod | grep sctp

lksctp-tools-1.0.17-2.el7.x86_64 軟體包已安裝在伺服器中。請幫我如何解決這個問題。

答案1

要使 SCTP 正常運作,通常需要將模組載入到核心中,並且對於某些應用程式協定(例如 DTLS),您還需要啟用 auth chunk 支援。

您可以從命令列暫時載入 sctp 模組: modprobe sctp但為了確保它在重新啟動後仍然存在,您還需要將其新增至模組啟動 [1]。

然後從命令列啟用身份驗證區塊:sysctl -w net.sctp.auth_enable=1和以前一樣,如果您希望該設定在重新啟動後繼續存在,則需要將其新增至 sysctl 啟動 [2]。

一般來說,啟用這兩個功能後,一切都會正常運作。

[1]https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/managing_monitoring_and_updating_the_kernel/managing-kernel-modules_managing-monitoring-and-updating-the-kernel

[2]https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/kernel_administration_guide/working_with_sysctl_and_kernel_tunables

相關內容