Page 1 of 1

Setting up Pi with two networks

Posted: Fri Nov 14, 2014 12:02 am
by codyswanson4
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!

Re: Setting up Pi with two networks

Posted: Fri Nov 14, 2014 8:33 am
by B.Goode
This sounds similar to this query - maybe the same solution will help?

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

Re: Setting up Pi with two networks

Posted: Fri Nov 14, 2014 12:52 pm
by plugwash
Make sure you don't have a default gateway set on eth0.

Re: Setting up Pi with two networks

Posted: Fri Nov 14, 2014 10:11 pm
by codyswanson4
Thanks for both of those. I had a gateway set on eth0, so I just deleted that.

Thanks!