树莓派 LED含义 扩展口定义 静态IP
2013-03-05 18:36
246 查看
1,板上有5个led分别代表什么意思呢
There are five LEDS near the USB connector.
LED statuses
2,根据led的闪烁状态判断故障
详细讲解http://elinux.org/R-Pi_Troubleshooting#Red_power_LED_is_on.2C_green_LED_does_not_flash.2C_nothing_on_display
3,引出的GPIO引脚含义
更详细的介绍
http://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/
4,树莓派配置静态IP
http://www.slblabs.com/2012/08/16/rpi-ssh-ip/
http://elinux.org/Configuring_a_Static_IP_address_on_your_Raspberry_Pi
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=31003
其实就是和linux下配置IP是一样的
ip配置方法是编辑sudo nano /etc/network/interfaces
树莓派默认配置
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
修改为静态ip的方法
1,老外的方法
sudo vi /etc/network/interfaces
To change to static IP address
cd /etc/networks
sudo nano interfaces
replace the line “iface eth0 inet dhcp” with
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
You should also take a look at the file /etc/resolv.conf
and check it has a nameserver entry (probably pointing at your default gateway) or direct to your ISP name servers.
nameserver 192.168.1.1
2.国内帖子
有些朋友一直在问如果配置网络,就简单写写吧,希望能帮助到大家
http://bbs.shumeipai.org/thread-158-1-1.html
1.配置ip地址
编辑sudo nano /etc/network/interfaces
自动获取ip的配置:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
手动配置ip:
auto eth0
iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
gateway 192.168.0.254
2.配置DNS
编辑 sudo nano /etc/resolv.conf
domain lan
search lan
nameserver 192.168.1.1
nameserver 192.168.99.100
注:nameserver 后面的ip就是dns服务器,根据自己的运营商情况填吧
5,电脑与树莓派网线直连
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=22716
方案1:
on your pc
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.100
on your pi
/etc/network/interface
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.100
方案2:
Rpi
ip 172.16.1.1
mask 255.255.255.0
gateway 172.16.1.2 //172.16.1.1 works too
ubuntu
ip 172.16.1.21
sub 255.255.255.0
gateway 172.16.1.1 //172.16.1.10 works too
方案3:
That worked too.
Don't set the devices to be gateway for each other. All you need is something like this:
IP address of PC: 192.168.1.1
IP address of Rasperberry Pi: 192.168.1.2
Subnet mask on both: 255.255.255.0
Default gateway on both: 192.168.1.254
Normal LED status
There are five LEDS near the USB connector.LED | colour | function | normal status |
---|---|---|---|
ACT | green | card status | flashing during SD card activity 灯闪烁SD卡可用否则sd卡或卡上的系统不可用 |
PWR | red | power | steady ON when PI receives some power上电 |
FDX | orange | full duplex | on when Ethernet connection is full duplex全双工网卡时亮 |
LNK | orange | link | on when Ethernet is connected网络连接上亮 |
100 | orange | 100 Mbps | on when connection is 100 Mbps off when 10 Mbps亮:100M网卡 灭 10M网卡 |
详细讲解http://elinux.org/R-Pi_Troubleshooting#Red_power_LED_is_on.2C_green_LED_does_not_flash.2C_nothing_on_display
3,引出的GPIO引脚含义
更详细的介绍
http://www.raspberrypi-spy.co.uk/2012/06/simple-guide-to-the-rpi-gpio-header-and-pins/
4,树莓派配置静态IP
http://www.slblabs.com/2012/08/16/rpi-ssh-ip/
http://elinux.org/Configuring_a_Static_IP_address_on_your_Raspberry_Pi
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=26&t=31003
其实就是和linux下配置IP是一样的
ip配置方法是编辑sudo nano /etc/network/interfaces
树莓派默认配置
auto lo
iface lo inet loopback
iface eth0 inet dhcp
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface default inet dhcp
修改为静态ip的方法
1,老外的方法
sudo vi /etc/network/interfaces
To change to static IP address
cd /etc/networks
sudo nano interfaces
replace the line “iface eth0 inet dhcp” with
iface eth0 inet static
address 192.168.1.4
netmask 255.255.255.0
gateway 192.168.1.1
You should also take a look at the file /etc/resolv.conf
and check it has a nameserver entry (probably pointing at your default gateway) or direct to your ISP name servers.
nameserver 192.168.1.1
2.国内帖子
有些朋友一直在问如果配置网络,就简单写写吧,希望能帮助到大家
http://bbs.shumeipai.org/thread-158-1-1.html
1.配置ip地址
编辑sudo nano /etc/network/interfaces
自动获取ip的配置:
auto eth0
allow-hotplug eth0
iface eth0 inet dhcp
手动配置ip:
auto eth0
iface eth0 inet static
address 192.168.1.7
netmask 255.255.255.0
gateway 192.168.0.254
2.配置DNS
编辑 sudo nano /etc/resolv.conf
domain lan
search lan
nameserver 192.168.1.1
nameserver 192.168.99.100
注:nameserver 后面的ip就是dns服务器,根据自己的运营商情况填吧
5,电脑与树莓派网线直连
http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=22716
方案1:
on your pc
address 192.168.1.100
netmask 255.255.255.0
gateway 192.168.1.100
on your pi
/etc/network/interface
address 192.168.1.5
netmask 255.255.255.0
gateway 192.168.1.100
方案2:
Rpi
ip 172.16.1.1
mask 255.255.255.0
gateway 172.16.1.2 //172.16.1.1 works too
ubuntu
ip 172.16.1.21
sub 255.255.255.0
gateway 172.16.1.1 //172.16.1.10 works too
方案3:
That worked too.
Don't set the devices to be gateway for each other. All you need is something like this:
IP address of PC: 192.168.1.1
IP address of Rasperberry Pi: 192.168.1.2
Subnet mask on both: 255.255.255.0
Default gateway on both: 192.168.1.254
相关文章推荐
- 树莓派 LED含义 扩展口定义 静态IP
- 树莓派配置静态IP
- 树莓派3代b型静态IP设置,和ssh的wlan配置
- 树莓派设置静态无线IP以及去掉启动时的dhcpcd
- 树莓派设置静态IP
- 树莓派设置静态IP
- [树莓派]raspberry pi 设置静态ip
- php扩展开发笔记(3)类的静态数组属性定义
- 转载:树莓派3 有线网卡静态IP设置
- 树莓派3B 设置成静态IP
- 树莓派配置静态ip
- 【树莓派】树莓派网络配置:静态IP、无线网络、服务等
- 关于树莓派临时静态IP的设置
- 树莓派设置静态IP
- 树莓派无线连接上网及静态IP
- 树莓派配置静态wlan IP
- 树莓派静态IP设置<dhcpcd.conf>
- 树莓派3 如何配置静态IP
- 树莓派静态ip设置方法
- 树莓派IoT 学习3 修改静态ip