codyswanson4
Posts: 2
Joined: Thu Nov 13, 2014 11:57 pm

Setting up Pi with two networks

Fri Nov 14, 2014 12:02 am

Hello, everybody!

I have a pi set up with one network (eth0) static on the IP 192.168.1.1 and my other network (eth1) set up on my school's network getting it's address from DHCP. On startup, if eth0 is disconnected, I can get on the internet and stuff, but when eth0 is connected, I only have access to my local network resources by eth0.

Is there any way to make one connection the default and the other used for it's local resources?

Thanks in advance!

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Setting up Pi with two networks

Fri Nov 14, 2014 8:33 am

This sounds similar to this query - maybe the same solution will help?

http://www.raspberrypi.org/forums/viewt ... 91&t=91505

plugwash
Forum Moderator
Forum Moderator
Posts: 3614
Joined: Wed Dec 28, 2011 11:45 pm

Re: Setting up Pi with two networks

Fri Nov 14, 2014 12:52 pm

Make sure you don't have a default gateway set on eth0.

codyswanson4
Posts: 2
Joined: Thu Nov 13, 2014 11:57 pm

Re: Setting up Pi with two networks

Fri Nov 14, 2014 10:11 pm

Thanks for both of those. I had a gateway set on eth0, so I just deleted that.

Thanks!

Return to “Raspberry Pi OS”