问题描述
按照文档 部署了ntopng 发现可选网口与实际网口相比,少了几个
问题解决
root@hpc-1:~# netstat -i
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
docker0 1500 95495 0 0 0 189208 0 0 0 BMRU
ens3 1500 3557051 0 8235 0 2181577 0 0 0 BMRU
ens8 1500 2546 0 0 0 2391 0 0 0 BMRU
ens9 1500 1838038 0 3339 0 945064 0 0 0 BMRU
lo 65536 43805 0 0 0 43805 0 0 0 LRU
veth0d7e 1500 293 0 0 0 774 0 0 0 BMRU
root@hpc-1:~#
The flag will be updated to BMPRU. Flag details are as follows:
B flag is for broadcast
M flag is for multicast
P flag is for promisc mode
R is for running
U is for up
root@mypc:~/observium# ifconfig ens8 promisc
root@mypc:~/observium# ifconfig ens9 promisc
root@hpc-1:~# netstat -i
Kernel Interface table
Iface MTU RX-OK RX-ERR RX-DRP RX-OVR TX-OK TX-ERR TX-DRP TX-OVR Flg
docker0 1500 95495 0 0 0 189217 0 0 0 BMPRU
ens3 1500 3680286 0 8235 0 2302286 0 0 0 BMPRU
ens8 1500 2790 0 0 0 2486 0 0 0 BMPRU
ens9 1500 1843255 0 3339 0 949150 0 0 0 BMPRU
lo 65536 495780 0 0 0 495780 0 0 0 LPRU
veth0d7e 1500 293 0 0 0 793 0 0 0 BMPRU
root@hpc-1:~#
如果ntopng已经安装过了,需要重启主机后,启动ntopng,网口列表中就包含刚设置成promisc的网口了