Connect the raspberry pi to internet without extra HDMI monitor

Post on 21-Apr-2017

37 views 0 download

transcript

Goal: Connect the Raspberry Pi to Internet

But ...●We don’t have a HDMI monitor

●We don’t have a USB Wifi adapter

●We don’t even know the IP address assigned by the DHCP to the Ethernet port of the Raspberry Pi

Fortunately ;)We have an accessible Wifi network

We have an Ethernet cable

Many free and Open source programs to solve the Internet connection issue

Our network looks like ..

Find the IP address (Step 1)Record the IP address and the subnet mask of the Ethernet port of the Laptop

Find the IP address (Step 2)Configure Advanced IP Scanner to scan all the networking devices connected to the Laptop with one of the addresses specified in the interval

Take the control with SSHUse PuTTY: Fill the IP address field then hit enter key or press open button

Assign a static IP address to eth0Use shell prompt to edit /etc/dhcpcd.conf file.

Append the IP address, netmask and default gateway that suit your router configuration:

In my case the router IP is 192.168.1.1 so I should type something like:interface eth0static ip_address=192.168.1.55/24static routers=192.168.1.1static domain_name_servers=192.168.1.1

Assign a static IP address to eth0

Specify a static IP address for Ethernet port of Laptop

Create a bridgeBridge Wifi adapter and Ethernet port on windows 10

!! Internet connection is lost on Laptop

Connection should be lost at this point but the Raspberry Pi is already connected to Internet.

Check it out using command $ping 8.8.8.8

Configure the bridge to regain Internet connection on Laptop

Resources and referenceshttp://www.omnisecu.com/

https://support.microsoft.com/en-us/kb/164015

http://www.windowscentral.com/how-set-and-manage-network-bridge-connection-windows-10

http://www.advanced-ip-scanner.com/

http://www.putty.org/

https://www.modmypi.com/blog/how-to-give-your-raspberry-pi-a-static-ip-address-update