Routing packets between 2 routers...

13 views
Skip to first unread message

Scott Vargovich

unread,
Jan 28, 2022, 3:33:45 PM1/28/22
to linuxus...@googlegroups.com
Hiya,

Let me describe my network setup.  The internet router is an AT&T 5268AC all-in-one router.  I'll call this Router A.  Router B is a Netgear router with wifi.  Router A subnet is 192.168.1.x and Router B subnet is 10.0.0.x.  How do I route packets from Router A's network to Router B's network?  It's been a long time since I've played with networking like this.  Help please!

--
<><  Scott Vargovich  <><
------------------------------------------
OpenPGP Key ID: 29C36884
==========================
Ham Radio Call Sign: KE8CQC
==========================
GMRS Call Sign:  WQXJ287
------------------------------------------

Scott Vargovich

unread,
Jan 28, 2022, 3:36:14 PM1/28/22
to linuxus...@googlegroups.com
Basically I need to route packets from the 192.168.1.x network to the 10.0.0.x forward and backward through Router B's NAT.  Is there a way to do this?

Jeremiah Bess

unread,
Jan 28, 2022, 3:47:29 PM1/28/22
to LUG
From what I understand, this is a network question, not how to do it on a Linux host correct? If that's true, you should just need to connect router A to router B directly via a network cable. As routers, they will each build out a route table and know how to send packets destined for each network respectively. Additionally, each router will also have their own default gateway, in which all traffic that doesn't match a network in the routing table will be sent. So assuming both routers are internet connected, a host on network A trying to reach the internet will be routed through network A internet, and a host on network B will route through network B internet.

Let me know if I am way off base on what you are trying to do.

Jeremiah Bess


--
--
You received this message because you are subscribed to the Linux Users Group.
To post a message, send email to linuxus...@googlegroups.com
To unsubscribe, send email to linuxusersgro...@googlegroups.com
For more options, visit our group at http://groups.google.com/group/linuxusersgroup
References can be found at: http://goo.gl/anqri
Please remember to abide by our list rules (http://tinyurl.com/LUG-Rules)
---
You received this message because you are subscribed to the Google Groups "Linux Users Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to linuxusersgro...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/linuxusersgroup/CAE8T3AJ1UT3CznzDUij5-bouqygcOZ%2Bnc0DX_sLSQtUweDWYSA%40mail.gmail.com.

Scott Vargovich

unread,
Jan 29, 2022, 2:56:59 PM1/29/22
to linuxus...@googlegroups.com
Router A is directly connected to the internet.  It is the internet gateway that AT&T put in when we got our internet.  Router B is connected to the internet through router A via Ethernet.  If I connect to Router A, I can't connect to anything connected to Router B.  However, I have a wifi printer connected to router A.  I can print to it from a machine connected to Router B.  Router A is AT&T UVerse and Router B is Netgear.  I attached a USB wifi card to my laptop and have it connected to both networks at the same time, but I don't want to do this permanently because I have another laptop where the internal wifi doesn't work and I only have this one USB wifi adapter.  I could buy another one from Amazon, but I'm sure there's a way to do this with routing or port forwarding.

Scott Vargovich

unread,
Jan 29, 2022, 3:19:19 PM1/29/22
to linuxus...@googlegroups.com
Let me also add something else:  I can ping Router A's gateway IP from a machine on Router B, but can't ping from Router A to a machine on Router B.  This last part is what I'm wanting to enable.  I just don't know how to do it.

Jeremiah Bess

unread,
Jan 29, 2022, 3:20:13 PM1/29/22
to LUG
On the Netgear router, try setting an unused static IP address in the 192.168.0.x network on the interface that is connected to the UVerse router. This should be the WAN interface on the Netgear, usually the ports have yellow on them, but not always. The only issue with this setup is that hosts on Uverse won't be able to communicate with hosts on the Netgear, since you likely can't mess with the routing table on the UVerse to force that interface. There might be ways to mess with port forwarding settings and such, but honestly, home routers like this don't like to work together in this configuration.

Is there any reason you don't want all the hosts on the same network, effectively removing the Netgear from the equation?

If you are willing to spend some money, the best way to handle this is to use the UVerse router just as your internet access point, then buy a managed router that you can set up more defined routes between your networks.

Jeremiah Bess


Scott Vargovich

unread,
Jan 30, 2022, 12:59:21 PM1/30/22
to linuxus...@googlegroups.com
My wife telecommutes doing medical billing.  HIPAA requires her workstation to be ethernet attached to the router.  The UVerse router only has one available output - others are connected to cable TV.  I had to get the Netgear router for her to be ethernet connected.  My desktop machine has to be ethernet attached to that network.  I have a MMDVM DMR Hotspot that I can't get working via wifi, so that has to be ethernet attached to Netgear as well.  When I try watching videos on my laptop connected to the Netgear, they buffer a lot.  When I'm connected directly to the UVerse, videos run smoothly.  I can't either machine connected to the Netgear.

John Phillips

unread,
Jan 30, 2022, 9:59:02 PM1/30/22
to linuxus...@googlegroups.com
I don't have cable and looking on line the ATT router has wifi.

Just a thought, but have tried a NETGEAR 5 or 10 Port Gigabit unmanaged Switch in place of the 2nd router for your hard wire connection.  No IP setup required.

I have (2) 5 ports switches with no issues.

Jeremiah Bess

unread,
Jan 30, 2022, 10:04:51 PM1/30/22
to LUG
I agree with John. Just adding a switch to the AT&T router and hardwire her workstation to that would work. Running an ethernet cable under the baseboard or across the ceiling corner is easy enough.

As a slight side-note, as a remote worker myself, I can't tell you how much of a pain wireless is, even with a mesh network node in my office. Once I move to my new office upstairs, I'll likely get some ethernet run to it.

Jeremiah Bess


Reply all
Reply to author
Forward
0 new messages