当前位置: 首页 > 图文教程 > 操作系统 > Unix/Linux > HP-UX常见问题解答(15)

Unix/Linux
Linux 备份 恢复方法
Linux玩CS反恐精英的方法
在一个ISO镜像中集成多个不同的linux发行版,可刻盘,可引导
Linux 快捷键使用
Linux DHCP 服务器配置方法介绍
Linux 22端口的修改方法
Linux 记录会话过程的命令
Linux 后台执行程序如何操作?
linux Wget命令来浏览网页的方法
Linux tail命令的巧妙应用
Wine 中文存在很多的乱码怎么解决方法
linux 新手教程之创建锁文件的方法
配置Linux 保证其系统的安全
Linux DHCP协议实现过程
Linux系统下破解SAM密码
linux/unix vi 编辑器用法详解
Linux 误删文件的解决方法
Linux系统下的历史记录删除方法
Red Hat Linux 安全设置指南
Linux基本命令-注销、关机、重启

Unix/Linux 中的 HP-UX常见问题解答(15)


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 31 ::
收藏到网摘: n/a


  网络不通怎么办?
  1) 用 lanscan 看系统网卡状态
  如果某个网卡硬件状态(HdwState)是DOWN,首先检查网线和网卡指示灯,如果指示灯不亮,说明该网卡有可能存在硬件问题,请立刻拨打惠普热线电话:800-810-7000 或010-65643800
  1) 用 ping 命令检查网络通讯是否建立。例如:
  
  # ping -i 15.85.114.14 15.85.114.13
  PING 15.85.114.13: 64 byte packets
  64 bytes from 15.85.114.13: icmp_seq=3. time=1. ms
  64 bytes from 15.85.114.13: icmp_seq=4. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=5. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=6. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=7. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=8. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=9. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=10. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=11. time=0. ms
  64 bytes from 15.85.114.13: icmp_seq=12. time=1. ms
  
  ----15.85.114.13 PING Statistics----
  13 packets transmitted, 10 packets received, 23% packet loss

  round-trip (ms) min/avg/max = 0/0/1
  上述命令检查了主机中IP地址为15.85.114.14的网卡和网络系统中IP地址为15.85.114.13的节点间的网络连接,结果是连接正常。
  反之,如果没有回应,则表明连接不正常。
  ping命令检查了OSI网络的第三层连接。如果执行ping命令失败,可以用linkloop命令检查第二层连接是否正常。例如:
  # linkloop -i 2 0x080009da0460
  Link connectivity to LAN station: 0x080009da0460
  -- OK
  # linkloop -i 2 0x080009d97071
  Link connectivity to LAN station: 0x080009d97071
  error: get_msg2 getmsg failed, errno = 4
  -- FAILED
  frames sent : 1
  frames received correctly : 0
  reads that timed out : 1
  上述第一条命令检查了主机中网卡的NMID为2的卡与网络系统中网卡的MAC地址为 0x080009da0460的卡之间的第二层连接,结果是连接正常。
  上述第二条命令检查了主机中网卡的NMID为2的卡与网络系统中网卡的MAC地址为 0x080009d97071的卡之间的第二层连接,结果表明连接不正常。
  一般情况下,使用以上命令就可以基本确认网络是否工作正常。