Sunday, April 30, 2017

Raspberry Pi 3 :If DNS is not set after Static IP setting

Install Raspberry PI 3.
After connecting to the wireless Internet, it was difficult to connect to a fixed IP network, but the Web browser failed to find a DNS host.

Modified many Interfaces files, but not all.

If not, it is asked to add to dns (Name Server settings), but it will be reset to IP before switching to nameservers.

1.Entering the Search Results gateway address, DNS detected the DNS. Success..!!

-------------------------------------------------------------------------------------------------
  1. /etc/network/interfaces (Modify)(기존 168.126.63.1 or 8.8.8.8주소가 안될경우)
         auto eth0
               iface eth0 inet static
               address 192.168.1.101   
--->(Static IP)
               netmask 255.255.255.0
               network 192.168.1.0

               broadcast 192.168.1.255
               gateway 192.168.1
.1

         dns-nameservers 192.168.1.1   --->(gateway Adress)

  1. /etc/dhcpcd.conf 에 내용추가

     interface wlan0
       static ip_address=
192.168.1.101/24   --->(Static IP)
       static routers=
192.168.1.1
       static domain_name_servers=
192.168.1.1   
--->(Gateway)


2. After a few days, there was a reservation for a DHCP address on the shared machine.



No comments:

Post a Comment

Accessing the command line of OSMC

You can get to the console in two ways. - A local console login, using a connected keyboard. - Logging in over the network via SSH using a...