Linux笔记-centos7配置网卡及iftop的使用
生活随笔
收集整理的這篇文章主要介紹了
Linux笔记-centos7配置网卡及iftop的使用
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
此篇博文比較簡單,主要有一點要注意的:
Linux系統中IP地址是放到內核中的,不是存在網卡上。一個網卡可以配置多個IP地址,只要IP地址和網卡綁定即可。
如eth0可以綁定2個ip地址分類是eth0:0
eth0:0
eth0:1
?
下面是幾個小知識點:
啟動ens33網卡:
配置網卡靜態地址:
vi /etc/sysconfig/network-scripts/ifcfg-ens33重啟網卡
service network restart配置hostnaame及永久配置hostname
hostname hostname it1995.cn hostname永久設置:
vi /etc/hostname?
下面是安裝iftop
yum install -y flex byacc libpcap ncurses-devel libpcap-devel gcc mkdir iftop cd iftop/ wget http://www.ex-parrot.com/pdw/iftop/download/iftop-1.0pre4.tar.gz tar zxvf iftop-1.0pre4.tar.gz cd iftop-1.0pre4 ./configure make && make install然后輸入:
iftop即可:
?
?
創作挑戰賽新人創作獎勵來咯,堅持創作打卡瓜分現金大獎總結
以上是生活随笔為你收集整理的Linux笔记-centos7配置网卡及iftop的使用的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Qt笔记-QCryptographicH
- 下一篇: linux 其他常用命令