码迷,mamicode.com
首页 > Windows程序 > 详细

windows ping RPi 2B

时间:2016-02-15 21:15:27      阅读:450      评论:0      收藏:0      [点我收藏+]

标签:

/*************************************************************************
 *                        windows ping RPi 2B
 * 声明:
 *     本文主要记录如何设置RPi 2B静态IP,并且通过windows来ping通RPi 2B。
 *
 *                                    2016-2-15 深圳 南山平山村 曾剑锋
 ************************************************************************/

参考文章:
    <raspberry pi> raspberry pi 设置wlan 静态ip
        http://www.cnblogs.com/keygle/archive/2013/04/27/3048273.html

一、windows ip setting:

    技术分享

二、cat /etc/network/interfaces
    # 本人在ubuntu中修改RPi 2B文件系统中的/etc/network/interfaces
    ......
    #iface eth0 inet manual
    auto eth0
    allow-hotplug eth0
    iface eth0 inet static
    address 192.168.0.5
    netmask 255.255.255.0
    geteway 192.168.0.1
    ......

三、ping 192.168.0.5 > pingdata.txt
    Pinging 192.168.0.5 with 32 bytes of data:
    Reply from 192.168.0.5: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.5: bytes=32 time<1ms TTL=64
    Reply from 192.168.0.5: bytes=32 time=1ms TTL=64
    Reply from 192.168.0.5: bytes=32 time<1ms TTL=64

    Ping statistics for 192.168.0.5:
        Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
    Approximate round trip times in milli-seconds:
        Minimum = 0ms, Maximum = 1ms, Average = 0ms

 

windows ping RPi 2B

标签:

原文地址:http://www.cnblogs.com/zengjfgit/p/5191230.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!