01-正文
本章节下载 (118.03 KB)
目 录
前置条件:安装NAM软件之前,NAM单板硬盘上的Linux系统必须正常启动。
由于NAM软件在进行安装时,会使用硬盘上的文件系统,因此在Linux系统启动时请选择引导硬盘上的Linux启动。具体操作请参见《H3C MSR 系列路由器 OAP 模块手册》中的“4.2引导Linux系统启动”一节。
图1-1 组网图
需要进行两组网络连接:
l 用户通过控制台连接到路由器,用于对路由器进行操作。控制台controller可以通过串口直接与路由器的Console口连接,也可以telnet到路由器上。
l 为了将NAM软件安装包及其他必需的rpm包下载到NAM单板的硬盘中,需要将NAM单板的GE口与一台FTP Server相连。此时NAM单板将作为FTP客户端。
此处以安装Red Hat 9的PC机作为FTP Server,举例说明配置如下:
(1) 配置FTP Server的IP地址为192.168.0.2;
(2) 在FTP Server上建立目录并且将NAM软件安装包及其他必需的rpm包放置到指定的目录下。
对于这些文件的作用以及命名规则说明如下:
表1-1 文件描述表
文件名 |
文件描述 |
NAM_PKG.tar.gz |
NAM软件安装包 |
NAM_install |
NAM安装脚本 |
& 说明:
如果在NAM单板上已成功运行过NAM软件,则以下与rpm压缩包相关的步骤均可省略。
说明:slotnum表示NAM单板所在的逻辑槽位号;
(1) 路由器上电后正常启动,执行命令行oap connect slot slotnum,连接到NAM单板的Console上。
<System> oap connect slot ?
INTEGER<4> The slot number of OAP board
<System> OAP connect slot 4
Connected to OAP, Press ctrl+K to abort this mode
(2) 以root用户登录Linux后,通过FTP将文件NAM.tar.gz和rpm.tar.gz下载到NAM单板的硬盘/alt目录中。
CentOS release 4.4 (Final)
Kernel 2.6.9-42.0.3.EL on an i686
localhost login: root
Password:
Last login: Thu Nov 23 17:08:50 from 192.168.0.16
You have mail.
[root@localhost ~]#cd /alt
[root@localhost alt]#
//连接FTP Server
[root@localhost alt]#ftp 192.168.0.2
Connected to 192.168.0.2.
220 (vsFTPd 1.1.3)
530 Please login with USER and PASS.
530 Please login with USER and PASS.
KERBEROS_V4 rejected as an authentication type
Name (192.168.0.2:root): usrname
331 Please specify the password.
Password:
230 Login successful. Have fun.
Remote system type is UNIX.
Using binary mode to transfer files.
//下载NAM软件压缩包
ftp> get NAM_PKG.tar.gz
local: NAM_PKG.tar.gz remote: NAM_PKG.tar.gz
227 Entering Passive Mode (192,168,0,2,19,198)
150 Opening BINARY mode data connection for NAM_PKG.tar.gz (14547433 bytes).
226 File send OK.
14547433 bytes received in 1.3 seconds (1.1e+04 Kbytes/s)
ftp>
//下载NAM安装脚本
ftp> ascii
200 Switching to ASCII mode.
ftp> get NAM_install
local: NAM_install remote: NAM_install
227 Entering Passive Mode (192,168,0,2,84,9)
150 Opening BINARY mode data connection for NAM_install (567 bytes).
WARNING! 27 bare linefeeds received in ASCII mode
File may not have transferred correctly.
226 File send OK.
567 bytes received in 0.00016 seconds (3.4e+03 Kbytes/s)
ftp>
ftp>bye
[root@localhost alt ]#
(3) 安装NAM软件
//添加NAM安装脚本的可执行权限
[root@localhost alt]# chmod +x NAM_install
//运行安装脚本,执行安装
[root@localhost alt]# ./NAM_install
//打开NAM软件安装日志,查看NAM软件安装详细信息
[root@localhost alt]#more ./NAM/NAM_install_log
至此,NAM软件安装结束。NAM软件的使用说明请参见《H3C MSR 系列路由器 NAM网络分析模块 用户手册》。
& 说明:
如果NAM单板上已安装NAM软件,NAM安装脚本会先卸载已安装的软件再进行新的安装。
不同款型规格的资料略有差异, 详细信息请向具体销售和400咨询。H3C保留在没有任何通知或提示的情况下对资料内容进行修改的权利!