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

Unix/Linux
linux查看内存的大小
在linux下写的代码,用的是utf-8,结果拿到XP下运行的时候,所有的中文都成乱码
linux su和sudo命令的区别
linux cron 下的定时执行工具使用技巧
linux 查找进程及终止进程操作的相关命令
redhat linux 安装 gcc编译器
Linux Mplayer播放各种格式的电影
一起回顾一下linux常用命令
Linux 网站项目发布要做哪些配置
linux SSH配合SecureCRT的密匙完美使用方法
GD 编译出错解决方法
Facebook Open Platform编译FAQ
Linux 系统硬盘 优化
linux 挂载详解
linux crontab定时命令
Linux 系统中确保访问三级域名畅通的方法
Linux 特权帐号VS普通帐号
确保Linux系统安全的前提条件 漏洞防护
Linux 监视系统资源使用率
Red Hat Linux上使用BIND建立DNS服务器

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


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-11-01   浏览: 28 ::
收藏到网摘: 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的卡之间的第二层连接,结果表明连接不正常。
  一般情况下,使用以上命令就可以基本确认网络是否工作正常。