---------------------------------
iface eth0 inet manual
allow-hotplug wlan0
iface wlan0 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
---------------------------------
---------------------------------
country=TW
ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev
update_config=1
network={
ssid="SSID2"
psk="password"
key_mgmt=WPA-PSK
priority=2
id_str="id_SSID2"
}
network={
ssid="SSID1"
key_mgmt=NONE
priority=1
id_str="id_SSID1"
}
---------------------------------
/etc/dhcpcd.conf
---------------------------------
nohook lookup-hostname
interface eth0
static ip_address=192.168.1.61
netmask 255.255.255.0
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
interface wlan0
SSID DigiChance
static ip_address=192.168.1.60
netmask 255.255.255.0
static routers=192.168.1.1
static domain_name_servers=192.168.1.1
---------------------------------
iwconfig wlan0 #查看目前無線網路設定
iwlist wlan0 scan #掃描無線網路
ifdown wlan0 #停用無線網路
ifup wlan0 #啟動無線網路
ssh 預設帳號
pi/raspberry
沒有留言:
張貼留言