Bashattack

Bashattack

Technology. Food. Gaming. Videos. Anything. What more could you want?!

No Network Connection on Raspbian Jessie with Static IP

This week I bought a Raspberry Pi 3 to function as an AirPlay streaming receiver, print server, and HomeKit hub for my Belkin WeMo devices. (I haven’t gotten to those projects yet, but I will post status updates as I go.) I sat down to start this project. Step 1: Set a static IP. Starting in Raspbian Jessie, which became available in September 2015, IP addresses are no longer set in /etc/network/interfaces, but rather in a different file, /etc/dhcpcd.conf. It has a slightly different format, so an example is provided below.

interface eth0

static ip_address=192.168.0.80

static routers=192.168.0.1

static domain_name_servers=8.8.8.8

In my case I replaced eth0 with wlan0, since I was setting this up over the Wi-Fi. After making these changes I was able to connect to the static IP from another computer via SSH, but unable to connect out to the internet. Running ifconfig yielded an empty gateway. You can also run this command to check your gateway settings:

sudo route -n

If you’re able to confirm the gateway is missing you can set one by running:

sudo route add default gw 192.168.x.x

After setting this outside internet access should start working.

Credit to this thread on StackExchange for being the page that led me to this solution.

UPDATE: It looks like this may need to be run on every boot. I will investigate further.

UPDATE 2: (12/10/2017) It turns out I’m just dumb. The above text originally read “static router” not “static routers.” The second route add command isn’t needed when you do this correctly.

Pokémon Red: #16 Selling Out

Buy our ads!

Follow Us on Twitter:
Show – www.twitter.com/BAndCrumpets
Nick – www.twitter.com/bashattack
Conrad – www.twitter.com/pidgeonsmith

Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Pokémon Red: #15 Boat Physics

Dear Lord, please guide Andy Palmer swiftly and safely into battle.

Follow Us on Twitter:
Show – www.twitter.com/BAndCrumpets
Nick – www.twitter.com/bashattack
Conrad – www.twitter.com/pidgeonsmith

Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Pokemon Red: #14 Colorado: The Weed Frontier

We’re hot boxing on the S.S. Anne. This weed is dank!

Follow Us on Twitter:
Show – www.twitter.com/BAndCrumpets
Nick – www.twitter.com/bashattack
Conrad – www.twitter.com/pidgeonsmith

Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Mario Party: #3 I’m the One Percent

Palms burn, controller hand is sweaty. Or is that blood? I can’t tell.

Follow Us on Twitter:
Show – @BAndCrumpets
Nick – @bashattack
Conrad – @pidgeonsmith

Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Mario Party: #2 Reunion Tour

Looks like you’ve got some really nice coins there.
Follow Us on Twitter:
Show – @BAndCrumpets
Nick – @bashattack
Conrad – @pidgeonsmith
Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Mario Party: #1 Top 10 Reasons Conrad Is The Zodiac Killer

Number six will leave you shocked and awed.

Follow Us on Twitter:
Show – @BAndCrumpets
Nick – @bashattack
Conrad – @pidgeonsmith

Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Pokemon Red: #13 Katy Perry Used Roar

(This upload has been fixed to include commentary.) Please don’t Content-ID us for that perfect rendition of Katy Perry’s Roar. Oh, and we’re still on a boat.

Follow Us on Twitter:
Show – @BAndCrumpets
Nick – @bashattack
Conrad – @pidgeonsmith

Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Wheel of Fortune (SNES): #2 Giving Her the D

We’re going to buy all of your vowels. Because we’re rich!

Follow Us on Twitter:
Show – @BAndCrumpets
Nick – @BashAttack
Conrad – @PidgeonSmith

Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8

Pokemon Red: #12 Conrad Raps AGAIN! – B & Crumpets

His name is Gary Oak, weed is the thing that he likes to smoke. That rap wasn’t great. B-.
Follow Us on Twitter:
Nick – @bashattack
Conrad – @pidgeonsmith
Visit the Website: http://www.bandcrumpets.com
Subscribe: http://www.youtube.com/bashattack417
Watch More B & Crumpets: https://www.youtube.com/playlist?list=PL2222EC73C21A5FD8