北航游戏网:本站主要提供海量正版软件本地纯净,安全,无捆绑软件下载服务,热门软件和游戏应有尽有,每天更新大量精品手游及绿色软件!
网站地图
你的位置: 首页 > 游戏资讯 > 操作系统

在linux下ping通其它主机名称

  • 2024-07-10 05:03:41
  • 来源:本站整理
  • 在手机上看

    扫一扫立即进入手机端

  通常在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 在linux下ping通其它主机名称
更多
  • 中文|

手机游戏排行榜