LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-06-2024, 08:28 PM   #1
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
seeking routing table HOWTO


Colleagues, can someone help me sort out a routing table issue?
True confessions — I have never done this before. I've tried reading about route tables and remain confused.

Like most home networks, I have a private class-C LAN at 192.168.x.y.
My work wants me to add some parts in class-B 172.x.y.z to separate their stuff from my stuff and from "family" foolishness.

My Routing Issues:
  • How to route from 172.x.y.z through my 192.168.x.y LAN and out to the public internet?
  • How to allow select work-at-home devices to safely access work resources like printers, scanners and such?
  • Is this a problem for a Virtual LAN with managed switches?
  • Can this be accomplished by routing without pulling more house LAN wire? (The work stuff is not wifi enabled and would exist in a single room?)

I'd love someone to have great suggestions for how to proceed.

Thank you in Advance,
~~~ 0;-Dan
 
Old 02-07-2024, 08:05 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Ubuntu MATE, Mageia, and whatever VMs I happen to be playing with
Posts: 19,329
Blog Entries: 28

Rep: Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144Reputation: 6144
I heartedly recommend Ralph Becker's IP Subnetting Tutorial.

Don't be put off by the web 3.0 look. It is easily the best introduction to subnetting that I have ever seen. When I first met this reference, it was on a *.edu site. My guess is that, when he left the university,the author posted it to his personal site.

The only caveat I might add is that it likely does not address IPv6, as it looks just like it did when I first saw it.

Last edited by frankbell; 02-07-2024 at 08:07 PM.
 
1 members found this post helpful.
Old 02-08-2024, 03:01 PM   #3
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,850

Rep: Reputation: 161Reputation: 161
> How to route from 172.x.y.z through my 192.168.x.y LAN and out to the public internet?
At home network, we can use a sub-network range inside Class B or C, such as 172.10.49.x or 192.168.168.x.

The 172.10.49.10 use static IP address and set default gateway to 192.168.168.254.

There are two NICs on 192.168.168.254. The if0 connect to home network and if1 connect to Internet.
The if0 use static IP address, 192.168.168.254.
sudo route add 172.10.49.10 dev if0

The if1 use DHCP to get Internet gateway and DNS.

Last edited by nini09; 02-12-2024 at 02:54 PM.
 
1 members found this post helpful.
Old 02-10-2024, 12:54 PM   #4
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by nini09 View Post
> How to route from 172.x.y.z through my 192.168.x.y LAN and out to the public internet?
At home network, we can use a sub-network range inside Class B or C, such as 172.10.49.x or 192.168.168.x.

The 172.10.49.10 use static IP address and add the following route.
sudo route add 172.10.49.0 netmask 255.255.255.0 gw 192.168.168.254 dev if0

There are two NICs on 192.168.168.254. The if0 connect to home network and if1 connect to Internet.
The if0 use static IP address, 192.168.168.254 and if1 use DHCP to get Internet gateway and DNS.
Most of the parts connected at 192.168.*.* are using wifi. Wire net connections are servers or printers or mesh network parts.

My work dictates the 172.xxx address block.

I propose to get everything talking to everything. That done, I can then start to wall things off.
It seems that it will be easier to work through open doors that to try and work around closed ones.

I'm running a three node mesh network for 192.xxx. The primary node is then connected to my ISP provided gateway. I expect to get another router/AP from work that will implement the 172.* LAN both wire and wifi.

Thank you for your reply,
~~~ 0;-Dan

Last edited by SaintDanBert; 02-10-2024 at 12:58 PM.
 
Old 02-10-2024, 01:03 PM   #5
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by frankbell View Post
"If its not backed up to external media its not backed up."
I have documents and data files that I propose to capture to blueray media. Do you know how I might write multiple, separate sets of data as folder-trees or archives onto an blueray disk. {grin, blush} My brain grew up in the days of tape reels and disk "packet writers".

I have a blueray read/write/re-write drive.

Thanks,
~~~ 0;-Dan
 
Old 02-10-2024, 01:30 PM   #6
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,717

Rep: Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899Reputation: 5899
Do you connect to your work over a VPN and does the VPN server assign 172.x.x.x address? If so what type of VPN?.

I would guess your work IT people want you to isolate everything work related from your home network including printers etc.
 
1 members found this post helpful.
Old 02-12-2024, 09:40 AM   #7
C4H7Cl2O4P
LQ Newbie
 
Registered: Feb 2024
Posts: 5

Rep: Reputation: 0
Could you please clarify your issue ? What does "My work wants me to add some parts" mean ?
Where is your home 192.168.x.y in the global net ? And where is their 172.x.y.z in the global net ?
Please reply michaelk's question.
 
Old 04-12-2024, 11:34 AM   #8
SaintDanBert
Senior Member
 
Registered: Jan 2009
Location: "North Shore" Louisiana USA
Distribution: Mint-20.1 with Cinnamon
Posts: 1,772

Original Poster
Blog Entries: 3

Rep: Reputation: 108Reputation: 108
Quote:
Originally Posted by C4H7Cl2O4P View Post
Could you please clarify your issue ? What does "My work wants me to add some parts" mean ? Where is your home 192.168.x.y in the global net ? And where is their 172.x.y.z in the global net ? Please reply michaelk's question.
Consider the typical in-house LAN lives in a Class-C "private network" address space.
I want to introduce a Class-B "private network" into the same building -- my house.
With two networks in the house, I want to route between them. Thus the route table request.

The following might help you understand the topologies.

{public internet} =z= {ISP gateway using their DHCP assignment}
{gateway DHCP to LAN router} =z= {myRouter}
{myRouter DHCP to in-house LAN 192.168.x.y } =z= {wire connected servers and printers and switches}
=ZZ= {wifi connections to laptops, phones, etc}
=ZZ= {wifi connections to IOT}
NOTE --- All switches are "managed" for when I learn how to configure a virtual LAN.

My work wants to add {work Router} beside {myRouter} serving {their IP address} in-house.
In part this will isolate their LAN from all IOT and "guest" devices on my in-house.

Thank you for the reply,
~~~ 0;-Dan
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: How to Work with Tables (Select, Update, Delete, Create Table, Alter Table, Drop Table) in MySQL LXer Syndicated Linux News 0 02-13-2021 12:10 AM
What are the differences between the normal symbol table, the dynamic symbol table, and the debugging symbol table? watchintv Linux - Software 5 10-22-2016 08:38 AM
[SOLVED] MySQL run SELECT on a table if column A form table 1 equals column A from table 2 robertjinx Linux - Software 1 01-15-2016 10:48 AM
IP Table and routing table thirstonlinux Linux - Newbie 1 02-05-2013 04:28 AM
ARP table or routing table consulted first? YaMaHaBoB Linux - Networking 4 07-15-2011 04:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:12 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration