Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > 安裝ntop,進行網絡流量的分析
【标  题】:安裝ntop,進行網絡流量的分析
【关键字】:ntop
【来  源】:http://blog.chinaunix.net/article.php?articleId=10718&blogId=2939

安裝ntop,進行網絡流量的分析

Your Ad Here 環境:
一臺cisco 3745路由器,接入網通的mpls vpn,通過它連接其它兩地的公司.f3/9為連接vpn的端口.f3/14為f3/9端口的mirror端口.這需要在路由器上進行配置.
為對其專線的流量進行分析,掌握實時流量,並能知道每個主機,每個協議等的流量.特安裝ntop軟件進行監測.
一臺普通pc機,安裝redhat 9.0+ ntop 3.1,pc機上安裝有兩塊網卡,eth0,eth1,其中只對eth0網卡進行監測.eth0接入路由器的f3/14端口,eth1接入
路由器的f3/13端口.本來是只安裝一個網卡eth0的,但作了端口的mirror后,其它機子就不能通過eth0上的ip進行訪問它.只好安裝另外一個網卡,兩個網卡配置到一個子網中,(不同也可以,只要你能訪問到它.),eth0用於接收mirror過來的數據,eth1用於遠程管理和http訪問.

redhat 9.0上直接可以安裝
在redhat ES 2.1上安裝,glibc的版本不對,要重新升級glibc.后來換到redhat9就可以直接安裝了.

=============================================================

一下載:

[root@SZMRTG root]# wget ftp://ftp.chg.ru/.5/sourceforge/n/nt/ntop/ntop-3.1-0.rh9.i386.rpm

--16:23:04-- ftp://ftp.chg.ru/.5/sourceforge/n/nt/ntop/ntop-3.1-0.rh9.i386.rpm

=> `ntop-3.1-0.rh9.i386.rpm'

Resolving ftp.chg.ru... done.

Connecting to ftp.chg.ru[193.233.9.194]:21... connected.

Logging in as anonymous ... Logged in!

==> SYST ... done. ==> PWD ... done.

==> TYPE I ... done. ==> CWD /.5/sourceforge/n/nt/ntop ... done.

==> PORT ... done. ==> RETR ntop-3.1-0.rh9.i386.rpm ... done.

Length: 5,337,343 (unauthoritative)

100%[========================================================================================>] 5,337,343 11.09M/s ETA 00:00

16:25:47 (11.09 MB/s) - `ntop-3.1-0.rh9.i386.rpm' saved [5337343]

二安裝

[root@firewall oracle]# ls

linux-live-4.2.4 linux-live-4.2.4.tar.gz ntop-3.1-0.rh9.i386.rpm

[root@firewall oracle]# rpm -ivh ntop-3.1-0.rh9.i386.rpm

Preparing... ########################################### [100%]

1:ntop ########################################### [100%]

***********************************************************************

***********************************************************************

***********************************************************************

* You must configure /etc/ntop.conf - see /etc/ntop.conf.sample *

* *

* (as root run) $ cp /etc/ntop.conf.sample /etc/ntop.conf *

* $ vi /etc/ntop.conf *

* *

***********************************************************************

* YOU MUST SETUP A PASSWORD BEFORE RUNNING NTOP *

* *

* (as root run) $ /usr/bin/ntop @/etc/ntop.conf -A *

* *

* see 1STRUN.txt in /usr/share/doc/ntop- *

***********************************************************************

***********************************************************************

Questions? See the FAQ in /usr/share/doc/ntop-

可以查看文檔 /usr/share/doc/ntop-3.1/1STRUN.txt

第一次咝?

[root@firewall root]# /usr/bin/ntop -P /usr/share/ntop -u ntop -A

Mon Jan 24 09:15:29 2005 Initializing gdbm databases

Please enter the password for the admin user:

Please enter the password again:

Mon Jan 24 09:15:41 2005 Admin user password has been set

[root@firewall root]#

可以啟動ntop

[root@firewall root]# /etc/init.d/ntop start

重新啟動:

[root@firewall root]# /etc/init.d/ntop restart

路由器上的配置

VPN-Router(config)#monitor session 1 source interface fastEthernet 3/9 both

VPN-Router(config)#monitor session 1 destination interface fastEthernet 3/14

强烈推荐一个在VM下安装学习debian的教程:【上一篇】
tar命令的使用:【下一篇】
【相关文章】
  • Ntop 启动又消失的问题
  • 流量统计监控软件ntop安装
  • FreeBSD sntop 网络状况
  • 【随机文章】
  • Java 专业人士必备的书籍
  • Eclipse Action 5
  • 一段方便安装makefile文件的shell
  • Linux学习路线
  • 音频wma转换成mp3的方法
  • 得到用户点下键盘的值
  • 使用apache rewrite进行文件保护。
  • 网页常用小巧按钮--简单的Mac按纽
  • 关于C 语言的文字(作者:梦幻尤里)
  • Subnetting and IPv4 Address Classes
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.