N2000 BMS上机指导书 文档密级:内部公开
2.2.3 显示相关信息
查询当前路径
#pwd
/user/huawei
查询文件内容
# more huawei.abc
The science of pure mathematics, in its modern development, may claim to be the most original creation of the human spirit.
查询文件的相关信息
# ls -l huawei.*
-rwxr-xr-x 1 root other 5 9月 5 17:00 huawei.abc -rwxr-xr-x 1 root other 6 9月 5 17:10 huawei.tar
2.2.4 验证
(2) 文件内容正确
(3) /user/huawei目录下有两个文件:huawei.abc和huawei.tar
2.3 修改服务器IP地址
2.3.1 操作要求
修改服务器操作系统的IP地址,之后修改数据库的IP地址。
2.3.2 配置信息
修改/etc/hosts文件
#vi /etc/hosts
# Internet host table #
127.0.0.1 localhost
192.168.0.1 n2000server loghost
修改/etc/inet/ipnodes文件
#vi /etc/inet/ipnodes #
# Internet host table #
127.0.0.1 localhost 192.168.0.1
n2000server loghost
2013-3-29
华为机密,未经许可不得扩散 第11页, 共31页
N2000 BMS上机指导书 文档密级:内部公开
修改/etc/netmasks文件
#vi /etc/netmasks #
# The netmasks file associates Internet Protocol (IP) address # masks with IP network numbers. #
# network-number netmask #
# The term network-number refers to a number obtained from the Internet Netwo
# Information Center. Currently this number is restricted to being a class
# A, B, or C network number. In the future we should be able to support # arbitrary network numbers per the Classless Internet Domain Routing # guidelines. #
# Both the network-number and the netmasks are specified in # \#
# 128.32.0.0 255.255.255.0 #
192.168.0.0 255.255.255.0
指令修改IP,使配置马上生效
#ifconfig ce0 192.168.0.1 netmask 255.255.255.0 plumb up
将路由写入配置文件以防服务器重启后路由丢失
#cd /etc/rc3.d #ls
#touch SRoute1
#将route add 10.71.56.0 192.168.0.254 255.255.255.0写入SRoute1中
修改数据库IP地址(必须停止网管与数据库进程)
#cd /opt/sybase/OCS*/bin #./dsedit
2013-3-29
华为机密,未经许可不得扩散 第12页, 共31页
N2000 BMS上机指导书 文档密级:内部公开
2.3.3 显示相关信息
查询服务器IP地址
#ifconfig –a
lo0: flags=1000849
index 1
inet 127.0.0.1 netmask ff000000
hme0: flags=1000843
inet 10.77.222.94 netmask fffffe00 broadcast 10.77.223.255 ether 8:0:20:f0:59:19
hme0:2: flags=1000843
inet 192.168.0.111 netmask ffffff00 broadcast 192.168.0.255
查询路由
#netstat –r
Routing Table: IPv4
Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ------ ---------
1.1.1.0 10.77.222.90 UG 1 22928
192.168.0.0 192.168.0.111 U 1 1370 hme0:2 10.77.222.0 n2000server U 1 19693 hme0 224.0.0.0 n2000server U 1 0 hme0 default 10.77.222.1 UG 1 5155 localhost localhost UH 9897885858 lo0
2013-3-29
华为机密,未经许可不得扩散 第13页, 共31页
N2000 BMS上机指导书 文档密级:内部公开
2.3.4 验证
(1) 重启服务器后,系统无错误提示 (2) 网管及数据库能正常启动
2.4 添加网元
2.4.1 操作要求
配置5680带内网管,添加5680设备到网管中。
2.4.2 配置信息
创建网管VLAN
MA5680(config)#vlan 1000 standard
设置网管VLAN接口IP地址
MA5680(config)#interface vlanif 1000
MA5680(config-if-Vlanif1000)#ip address 10.71.56.178 24
添加上行口
MA5680(config)#port vlan 1000 0/7 0
设置团体名
MA5680(config)# snmp-agent community read public MA5680(config)# snmp-agent community write private
使能Trap
MA5680(config)# snmp-agent trap enable standard
设置Trap目的主机
MA5680(config)#snmp-agent target-host trap address 192.168.0.1 securityname private
将带内网管的IP地址作为Trap报文的源地址
MA5680(config)#snmp-agent trap source vlanif 1000
设置静态路由
MA5680(config)#ip route-static 192.168.0.1 24 10.71.56.254 MA5680(config)#save
在网管侧设置参数
选择[编辑/设置缺省SNMP参数]菜单项,打开[设置缺省SNMP参数]对话框,根据设备侧配置的读写团体字创建SNMP模板。
2013-3-29
华为机密,未经许可不得扩散 第14页, 共31页
N2000 BMS上机指导书 文档密级:内部公开
添加MA5680设备
选择[编辑/增加对象]菜单项,打开[增加对象]对话框,填写相应参数,点击[增加]。
2.4.3 显示相关信息
查询设备侧网管配置信息
MA5680(config)#display current-configuration 。。。。。。
ip route-static 192.168.0.1 24 10.71.56.254 #
snmp-agent community read public snmp-agent community write private
2013-3-29
华为机密,未经许可不得扩散 第15页, 共31页