-
고정아이피 설정하기카테고리 없음 2022. 2. 27. 14:27
pi@raspberrypi:~ $ cat /etc/network/interfaces # interfaces(5) file used by ifup(8) and ifdown(8) # Include files from /etc/network/interfaces.d: source /etc/network/interfaces.d/* auto wlan0 iface wlan0 inet static address 192.168.168.100 netmask 255.255.255.0 gateway 192.168.0.1
pi@raspi4:~ $ cat /etc/wpa_supplicant/wpa_supplicant.conf ctrl_interface=DIR=/var/run/wpa_supplicant GROUP=netdev update_config=1 country=KR network={ ssid="PISnet_9E07C0" psk="xxxxxx" } network={ ssid="TP-Link_CB33" psk="xxxxx" }
cat /etc/dhcpcd.conf # A sample configuration for dhcpcd. # See dhcpcd.conf(5) for details. # Allow users of this group to interact with dhcpcd via the control socket. .... .... .... # Example static IP configuration: interface eth0 static ip_address=192.168.168.163 #static ip6_address=fd51:42f8:caae:d92e::ff/64 static routers=192.168.168.1 static domain_name_servers=192.168.168.1 8.8.8.8 fd51:42f8:caae:d92e::1 static netmask=255.255.255.0 interface wlan0 static ip_address=192.168.168.164 #static ip6_address=fd51:42f8:caae:d92e::ff/64 static routers=192.168.168.1 static domain_name_servers=192.168.168.1 8.8.8.8 fd51:42f8:caae:d92e::1 static netmask=255.255.255.0
재부팅
sudo reboot