pi@raspberrypi ~ $ cat /etc/network/interfaces
auto lo
iface lo inet loopback
#iface eth0 inet dhcp
iface eth0 inet static
address 192.168.9.97
netmask 255.255.255.0
gateway 192.168.9.68
dns-nameservers 8.8.8.8
allow-hotplug wlan0
iface wlan0 inet manual
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
iface mywifi inet static
address 192.168.0.68
gateway 192.168.0.1
netmask 255.255.255.0
broadcast 192.168.0.255
network 192.168.0.0
/etc/network/interfaces
wpa_supplicant.conf
pi@raspberrypi ~ $ cat /etc/wpa_supplicant/wpa_supplicant.conf
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="FAST_12"
#psk="12345678"
psk=7f53f4ec7e2cbb709b7f1a58537a0933ef7ccf74faffc58b5f906aef6a53fd51
id_str="mywifi"
}
本文详细介绍了Raspberry Pi的网络接口配置文件/etc/network/interfaces的内容,包括静态IP地址设置、DNS服务器配置、无线网络连接配置等,并展示了wpa_supplicant.conf文件中用于无线网络认证的具体参数。

3万+

被折叠的 条评论
为什么被折叠?



