[ML-General] linux networking questions
Hunter Fuller
hfuller at pixilic.com
Mon Oct 5 22:48:42 CDT 2015
Your router can still hang out at 192.168.1.1 just with subnet mask
255.255.0.0
Then on your clients, use DHCP. Or if you must static, you could do
192.168.123.123 (example) subnet mask 255.255.0.0 default route 192.168.1.1
On Linux to do this manually do this as root
ip addr add 192.168.123.123/16 dev eth0
ip route add default via 192.168.1.1
You should probably do this in your distribution's network startup scripts
though.
On Oct 5, 2015 10:44 PM, "david" <ainut at knology.net> wrote:
> Ok on the routers/bridges.
>
> So what do I set each PC to? route add 192.168.0.0/16? Specify a
> gateway, too?
>
>
>
> On 10/05/2015 10:40 PM, Hunter Fuller wrote:
>
> Sure, if you altered the subnet mask on your router to 255.255.0.0 (a /16)
> that would work. Your random devices will still default to
> 192.168.whatever.0/24, but once you alter their subnet mask as well (or use
> DHCP) then everything should Just Work for you.
> On Oct 5, 2015 10:38 PM, "david" <ainut at knology.net> wrote:
>
>> Appreciate the help, Hunter. Is it not easy to have everything in the
>> 192.168.x.x address range? (Mask 255.255.0.0?) I can't remember any of
>> this but bits and pieces...
>>
>> My router and firewall to the outside world are set not to pass
>> 192.168.x.x out to the world (as such) but I'm using all bridges internally
>> (but there may still be one brouter in the mix; not sure.)
>>
>> Thanks,
>> David
>>
>>
>>
>> On 10/05/2015 10:32 PM, Hunter Fuller wrote:
>>
>> The long and the short of it is subnet masking. Basically, in home
>> networking, your subnet mask is almost always 255.255.255.0 also known as a
>> /24 (slash 24). What this means is that the first three octets of the IPs
>> of two devices have to be the same before they can talk.
>>
>> Routers are capable of breaking this boundary, but of course your router
>> can only know about 192.168.1.0/24 so that won't help you.
>>
>> If the raspberry pi is handing out addresses in a different range then
>> you need to put your laptop in that range temporarily, log into the pi, and
>> reconfigure it to not do that. Unless you intend for it to create its own
>> separate network that is.
>> On Oct 5, 2015 10:22 PM, "david" <ainut at knology.net> wrote:
>>
>>> Seems like lately I've forgotten everything I've ever known. <sigh>
>>>
>>> I need to be able to access subnets at home; everything is behind a
>>> firewall to the Internet.
>>>
>>> My PC's are all dhcp in the 192.168.1.x address space.
>>>
>>> I'd like to be able to talk to other addresses from these PC's.
>>>
>>> Specifically:
>>> 192.168.7.2 -- Beaglebone Black default IP Address works just fine.
>>>
>>> but
>>>
>>> 192.168.10.1 -- particular RPi 2 address from downloaded image does
>>> not. Of course, that Pi is a wireless one, while if I turn off the
>>> wireless and connect a house cable, it gets assigned 192.168.1.56 (for
>>> example) and that works fine. BUT, the wifi address is still not
>>> accessible unless I make the wifi laptop get on the RPi 2 as it's dhcp
>>> server and then the laptop gets assigned 192.168.10.x. <sigh> (Same for
>>> the Android tablet.) How do I get everything to play nice with each other?
>>>
>>> Bought a NAS server and set it's address to 192.168.200.1 -- and
>>> *nothing* in the house could see it until I changed it's address to a
>>> 192.168.1.x.
>>>
>>> Help, please.
>>>
>>> Thanks,
>>> David Merchant
>>>
>>>
>>> _______________________________________________
>>> General mailing list - General at lists.makerslocal.org
>>> A service of Makers Local 256 - https://256.makerslocal.org/
>>> http://lists.makerslocal.org/mailman/listinfo/general
>>
>>
>>
>> _______________________________________________
>> General mailing list - General at lists.makerslocal.org
>> A service of Makers Local 256 - https://256.makerslocal.org/http://lists.makerslocal.org/mailman/listinfo/general
>>
>>
>>
>> _______________________________________________
>> General mailing list - General at lists.makerslocal.org
>> A service of Makers Local 256 - https://256.makerslocal.org/
>> http://lists.makerslocal.org/mailman/listinfo/general
>>
>
>
> _______________________________________________
> General mailing list - General at lists.makerslocal.org
> A service of Makers Local 256 - https://256.makerslocal.org/http://lists.makerslocal.org/mailman/listinfo/general
>
>
>
> _______________________________________________
> General mailing list - General at lists.makerslocal.org
> A service of Makers Local 256 - https://256.makerslocal.org/
> http://lists.makerslocal.org/mailman/listinfo/general
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.makerslocal.org/pipermail/general/attachments/20151005/fd9257db/attachment.html>
More information about the General
mailing list