九 . 树莓派A20 网络配置
2017-08-09 本文已影响0人
wit_yuan
1 有线和无线的配置
在树莓派A20的/etc/network/interfaces下,网络配置设置为:
auto lo eth0
iface lo inet loopback
iface eth0 inet dhcp
#"your-ssid-here" and "your-passwd-here" should been replase with yours and remove the annotation
#auto wlan0
#iface wlan0 inet dhcp
#pre-up ip link set wlan0 up
#pre-up iwconfig wlan0 essid your-ssid-here
#wpa-ssid your-ssid-here
#wpa-psk your-passwd-here
auto wlan1
iface wlan1 inet dhcp
pre-up ip link set wlan1 up
pre-up iwconfig wlan1 essid 1902
wpa-ssid 1902
wpa-psk nanjingqingjin
如果只使用eth0并且ip地址为192.168.25.15,我们可以这么配置:
auto eth0
iface eth0 inet static
address 192.168.25.15
gateway 192.168.25.1
netmask 255.255.255.0