c、 Dual Attachment Concentrator(DAC)
d、双环断时,DAS和DAC内部可形成自环,system可继续工作。
三、配置IP连通性
1、 LAN设备文件
/dev/dlpi*为诊断设备文件 #cd /dev
#insf –ec lan ;重建丢失或错误的LAN设备 2、 通过/etc/rc.config.d/netconf配置IP
system启动时调用/sbin/init.d/hostname和/sbin/init.d/net,他们都从/etc/rc.config.d/netconf中获取配置参数 3、 ifconfig
ifconfig interface addr_family [address] [parameters] 为网卡分配IP地址;设本地回送接口;分配一个子网掩码 4、 IP多路技术
HP-UX 10.30以上版本每个网卡可拥有多个逻辑接口,即一个网卡配多个IP地址,用以太网和IEEE802.3发送IP包时需2个逻辑接口。 #ifconfig lan0:0 inet 16.1.1.1 #ifconfig lan0:1 inet 16.1.1.2
四、配置路由
1、 处理路由表
#route [-f] [-n] {add/delete} {host/net} dest gateway 2、 查看route #netstat –rn
注意:该hostname时,需修改/etc/hosts和/etc/rc.config.d/netconf中内容。
五、配置子网
将A类,B类或C类中的host位可以在细分成多个子网,用子网掩码来标识。
例:B类:255.255.0.0为网络号,对它分出254个子网,其子网掩码为:255.255.1~254.0,每个子网可接host个数为254个。
注意:子网的划分不必基于8位字节,可根据总体的host个数所占位数来划分。
六、解决网络连通性问题
1、 lanscan ;查网卡状态
2、 linkloop linkaddr ;测试OSI中的物理层和数据链路层 3、 lanadmin ;关于网卡信息、配置和统计等等
#lanadmin –S 10HD “ID号” ;配置网卡的通信数率和属性,10M半双工
4、 arp –a ;存储远程主机的网卡号(链路层地址),当ping远程主机时自动生成。
5、 ping ;测试OSI的网络层是否正常 6、 netstat –i –r
7、 nslookup [hostname] ;查看本地系统如何将主机名解析为IP地址
七、启动网络服务
1、 过程
a、 PDC chooses a boot disk b、ISL finds and loads the kernel c、 Kernel calls /sbin/init d、Init calls /sbin/rc
e、 /sbin/rc starts system and network sevices。(NFS,DNS,NTP)
2、 手工启动和关闭服务 #/sbin/init.d/cron start #/sbin/init.d/cron stop 3、 定制启动脚本
例: kill $(ps –ef | grep xclock | grep –v grep | cut –C10-14)
a b c a、 滤出xclock进程 b、去掉附带启动的grep进程
c、 切下xclock的进程号,C表示列,10-14列 #vi /sbin/init.d/xclock
加入/usr/bin/x11/xclock –display 127.0.0.1:0&
八、NFS概念
1、 NFS(Network File System)网络文件系统 2、 建议可共享文件:/opt,/usr
不可以共享文件:/dev,/etc,/var,/sbin 3、 NFS远程安装模型
设server共享出文件/home/Gary
client#mount server:/home/Gary /home/gary(client的文件系统) 4、 Protmap/rpcbind守护进程
NFS建立在RPC(Remote Procedure Call)远端程序调用之上 一个RPC客户机进程使用一个RPC程序号以请求一个远程RPC程序。
九、NFS配置
1、 Keep UIDs and GIDs consistent 2、 Configure the NFS Server
#swlist –l product ‘Networking’‘InternetSrvcs’‘NFS’ #grep nfs /stand/system #vi /etc/rc.config.d/nfsconf #/sbin/init.d/nfs.server start #vi /etc/exports
内容: filesystem name –access/-ro/-rw/root=clientname1:clientname2??. 例: /etc/opt/application –rw=psd3,access=psd3,root=psd3 ;psd3为主机名 #exportfs –a [-u]
3、 Configure the NFS client
#swlist –l product ‘Networking’‘InternetSrvcs’‘NFS’ #grep nfs /stand/system #vi /etc/rc.config.d/nfsconf #/sbin/init.d/nfs.client start
#vi /etc/fstab(记录mount的文件系统信息,可自动mount)
格式:server:/home/Gary /home/gary nfs defaults 0 0(fsckpassno.) #mount文件系统
4、 查看共享输出和已mount的文件系统 Server: #exportfs
#showmount –a Client: #mount –v
#showmount –e #showmount –e server
5、 检查
#/usr/bin/rpcinfo ;检查NFS程序是否运行正确 #nfsstat ;监视NFS的活动状况
十、Automounter
1、 概念
自动装载NFS文件系统。
在需要时访问NFS文件系统时,才被mount上。 2、 主映射/etc/auto_master
/- /etc/auto.direct ;Direct map /home /etc/auto.home ;Indirect map /net -hosts -soft ;Special map 3、 Direct map
/etc/auto_master中: /- /etc/auto.direct
/etc/auto.direct中: /usr/project hostname:/usr/project 修改后需系统重启或automount被关闭及再启动时生效 4、 Indirect map
/etc/auto_map中: /home /etc/auto.home /etc/auto.home中: Alan hostname:/home/Alan 5、 Special map
/etc/auto_master中: /net -hosts -soft 6、 Automounter的启动
修改/etc/rc.config.d/nfsconf中的参数 系统重启或automount –f /etc/auto_master
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库hp 9000日常维护手册(7)在线全文阅读。
相关推荐: