Re: Routing problem

Paul Campbell <[email protected]>
Newsgroups gmane.org.user-groups.linux.dunedin.general
Message-ID <1531218.Mxx3HVCO3j@rata>
On Tue, 26 Feb 2013 20:02:04 Worik Stanton wrote:
> I gave the pi a static IP and my eth0 on my laptop a static IP 
> (192.168.1.5 and 192.168.1.4 repectively).
> 
> I can ssh into my pi and back.
> 
> But from the pi I cannot reach other machines on my local network from 
> the pi.
> 
> I have added a default root back through the laptop but I expect I have 
> to do some routing magic

You have two problems - the subnet 192.168.1.* is split across two interfaces, 
and the outside doesn't know about the internal network between the laptop and 
the pi.

There's lots of ways to solve this - I'd suggest:

- put the pi and the other laptop interface on some unused subnet such as 
10.98.76.* 
- turn on NAT in your laptop for outgoing sessions to the household net 
- set the laptop's default gateway to be the local net
- set the pi's default gateway to be the laptop's interface on 10.98.76.1

but - more power to Jim's suggestion about a general talk about routing 
tomorrow night

-------------------------------------

and since no one has posted remember tomorrow night Dunlug meeting at 
Filidelfio's

	Paul


_______________________________________________
DunLUG mailing list
[email protected]
http://lists.ethernal.org/listinfo/dunlug
DunLUG Wiki - http://dunlug.kallisti.net.nz/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.