我想配置一个wlan0静态ip并通过ssh连接它。Raspbian:强制一个wlan0静态ip
这里我/etc/network/interfaces
:
source-directory /etc/network/interfaces.d
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
adress 192.168.0.2
netmask 255.255.255.0
auto wlan0
allow-hotplug wlan0
iface wlan0 inet static
address 192.168.100.102
netmask 255.255.255.0
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
当我做ifconfig
我为wlan0和eth0的接口配置正确:
然而,当我要ssh通过无线网络连接我的覆盆子,我的WiFi路由器给我覆盆子的ip:192.168.100.116
。
如何强制我的Wifi路由器给192.168.100.102
加入我的rapsberry pi? 此外,我的WiFi路由器给我的覆盆子有时192.168.100.102
有时192.168.100.116
不知道为什么