Debian9 ifconfig命令找不到解決辦法

2021-09-25 10:00:21 字數 396 閱讀 7834

debian9 ifconfig命令找不到解決辦法

ifconfig、route、arp和netstat等命令列工具(它們統稱為net-tools),管理和排查各種網路配置。這類工具原先起源於bsd tcp/ip工具箱,旨在配置老式linux核心的網路功能。自2023年以後,它在linux社群的發展就止步不前了。debian ,arch linux ,centos/rhel 7等一些linux發行版已經棄用了net-tools,其他發行版計畫棄用net-tools,改而使用iproute2。所以要再想使用ifconfig命令就要從新安裝net-tools

安裝net-tools

root@debian:~# apt install net-tools

通過上面的命令安裝完就可以用ifconfig命令檢視ip位址了

如何在Debian上安裝ifconfig?

如果您嘗試使用debian 10中的ifconfig命令獲取ip或網路詳細資訊,則會遇到 ifconfig command not found 錯誤。debian預設未安裝ifconfig軟體包。這是因為不建議使用ifconfig,而推薦使用新的ip命令。現在,此ip命令負責修改或顯示路由,網路裝置...

Debian 9 美化介面

aptitude install gnome tweak toolgnome look上有很多主題包,這裡主要講解以下幾種主題的安裝配置方法 cp r darkred1 usr share themes 開啟tweak tool設定 開啟tweak tool設定 開啟tweak tool設定,即可看...

Debian9配置網路源

切換到root許可權下 cp etc apt sources.list etc apt sources.list.bak 備份原有檔案 開啟檔案編輯 vi etc apt sources.list 替換內容為剛才複製的內容 deb stretch main non free contrib deb ...