首页 > Linux考试认证

导读:介绍在linux下ping通其它主机名称需要做的配置。

时间:2010-08-27 08:28:51  作者:  我要投稿
Linux初探欢迎您的投稿,投放方法请点击这里查看,我们会定期赠送精美小礼品给优秀的投稿作者。海纳百川 取则行远!LinuxGoo欢迎您的到来。
来源:考试大2010/8/25【考试大:中国教育考试第一门户】模拟考场视频课程字号:T T导读:介绍在linux下ping通其它主机名称需要做的配置。编辑特别推荐: LinuxICMP后门......
来源:考试大 2010/8/25 【考试大:中国教育考试第一门户】 模拟考场 视频课程 字号:T T 导读:介绍在linux下ping通其它主机名称需要做的配置。

  编辑特别推荐:

  LinuxICMP后门代码

  Linux多网卡同IP段解决

  linux命令:ifconfig和route

  通常在windows下面,我们可以通过其它主机名称互相访问,例如

  使用

  \\helloAndroid

  来访问地主机名为helloAndroid的PC机..

  如果希望在linux下ping通其它主机名称,那么需要做下配置

  1.

  sudo apt-get install winbind

  2.

  sudo vi /etc/nsswitch.conf

  在host:行加入wins

  例如:hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4 wins

  3.测试下

  star@star-desktop:~$ ping linux221

  PING linux221 (192.168.2.221) 56(84) bytes of data.

  64 bytes from linux221.local (192.168.2.221): icmp_seq=1 ttl=64 time=3.26 ms

  64 bytes from linux221.local (192.168.2.221): icmp_seq=2 ttl=64 time=2.65 ms

  64 bytes from linux221.local (192.168.2.221): icmp_seq=3 ttl=64 time=2.14 ms

  64 bytes from linux221.local (192.168.2.221): icmp_seq=4 ttl=64 time=0.752 ms

  64 bytes from linux221.local (192.168.2.221): icmp_seq=5 ttl=64 time=0.951 ms

  64 bytes from linux221.local (192.168.2.221): icmp_seq=6 ttl=64 time=0.476 ms

如果您需转载 导读:介绍在linux下ping通其它主机名称需要做的配置。,请注明来自LinuxGoo.com,其版权归原作者所有。请广大网友留言时遵纪守法,使用文明用语。如果您在应用中有什么问题,请在下面留言,我们会尽快解答。
来顶一下
近回首页
返回首页
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表
相关文章
栏目热门