It should (might) happen
"automatically":
http://en.wikipedia.org/wiki/Internet_Control_Message_Protocol#Redirect
My primary net is 192.168.8.0/24, secondary
192.168.4.0/24, primary router is 192.168.8.1, secondary router
is 192.168.8.2 & 192.168.4.1. Ping from
192.168.8.3:
$ netstat -r | grep 192.168.4.1
$ ping 192.168.4.1
PING 192.168.4.1 (192.168.4.1): 56 data bytes
92 bytes from quail.vallon (192.168.8.1): Redirect
Host(New addr: 192.168.8.2)
Vr HL TOS Len ID Flg off TTL Pro cks Src
Dst
4 5 00 0054 c805 0 0000 3f 01 264f 192.168.8.3
192.168.4.1
$ netstat -r
Routing tables
Internet:
Destination Gateway Flags
Refs Use Netif Expire
...
192.168.4.1 192.168.8.2 UGHD3I
0 1 en0 3
The static route on the host would prevent the redirect.
On 9/28/14 3:34 AM, Christ Schlacta wrote:
On Sep 27, 2014 11:44 PM, "Justin Vallon" <[email protected]>
wrote
<snip>
Adding a route to just the Comcast router is simpler
configuration wise, and sufficient for low traffic clients.
However, that means the Comcast router will "handle" all traffic
bound for the internal subnet. Therefore, if any of the external
subnet clients are high traffic, you should manually add a route
to those clients as well.
>
> If you can configure your comcast router, look for
something like static
> route, add network=192.168.2.0/255.255.255.0
gateway=10.0.0.6. This
> will cause the router to forward packets for 192.168.2.0/24
to
> 10.0.0.6. You don't have to touch the hosts.
>
>
>
> On 9/27/14 10:38 PM, Harry Putnam wrote:
> > Sorry if this is a bit too unrelated.. Hoping it is
related enough.
> >
> > I want to attach a second router to my ISP's (comcast)
Modem/router (An
> > Arris Mod: TG862G/GT).
> >
> > It has four ports. I want to hook a second router into
one of those
> > client ports and create a different subnet.
> >
> > That last referenced router is a TP-link WR1043 that I
installed
> > openwrt on quite some time ago. But then let it set
for mnths and
> > mnths.
> >
> > I'm pretty green with Openwrt, plus have not run it
for many months.
> >
> > So, cutting to the chase. The router is set up now
and is routing for
> > a wireless subnet in my downstairs rooms.
> >
> > At present on the lower subnet (diagrammed below)
hosts can `see'
> > there own subnet plus any hosts on the upper subnet.
> >
> > However hosts on the upper subnet cannot `see' hosts
on the lower
> > subnet.
> >
> > ------- ------- ---=--- -------
-------
> >
> > The ISP modem/router lan interface: 10.0.0.1 - wan
interface xxx.xxx.xxx.xxx
> >
> > The TP-link lan interface: 192.168.2.1 - wan
interface 10.0.0.6
> >
> > (Rough Diagram):
> >
> >
> > internet
> > |
> > X IP xxx.xxx.xxx.xxx
> > Comcast modem/router
> > | X | lan 10.0.0.1 (upper
subnet)
> > | h1 | | h2
> > |
> > X wan 10.0.0.6
> > Openwrt router
> > X X lan 192.168.2.1 (Lower subnet)
> > | |
> > | h3 | h4
> >
> > I can connect to the owrt config gui from the `lower'
subnet but,
> > I'm unable to get to owrt gui from `upper' subnet
> > (outer facing) interface.
> >
> > Is this a case that needs port forwarding? or what?
> >
> > I'd like to be able to get to the gui config if
possible from upper
> > subnet.
> > _______________________________________________
> > openwrt-users mailing list
> > [email protected]
> > https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>
>
> --
> -Justin
> [email protected]
>
>
>
> _______________________________________________
> openwrt-users mailing list
> [email protected]
> https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users
>
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users