public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* Re: [gentoo-user] Routing problem ?
@ 2008-01-11 17:14 Richard Torres
  2008-01-11 17:54 ` [gentoo-user] " reader
  0 siblings, 1 reply; 15+ messages in thread
From: Richard Torres @ 2008-01-11 17:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 2419 bytes --]

I don't understand why 2 routers. Maybe I'm missing something. Unless you have 2 networks  that need to be separate only one is needed. If you have a wireless router, use it as a wireless access point and not a router. Which means turn off DHCP on the wireless router and don't configure or use the WAN connection. 
Depending on the capabilities of the router you can connect a LAN port on Router2 to your ADSL (Router1) router and assign an IP address that's in the same network as Router1. 


----- Original Message ----
From: Holla <holla.net@gmail.com>
To: gentoo-user@lists.gentoo.org
Sent: Friday, January 11, 2008 8:18:37 AM
Subject: Re: [gentoo-user] Routing problem ?


On Jan 11, 2008 10:22 AM, Mike Mazur <mmazur@gmail.com> wrote:
> Hi,
>
>
> On Jan 11, 2008 12:14 PM, kashani <kashani-list@badapple.net> wrote:
> > Holla wrote:
> > >                 192.168.1.1
> > > +-+           +------------+
> > > | |-----------|  Router1   |=========ASDL conn
> > > | |           +------------+
> > > | |
> > > | |
> > > | |
> > > | |    192.168.1.23  +-------+  192.168.2.43
> > > | |------------------|  PC1  |----))).............
> > > +-+                  +-------+                   .
> > >                                                  .
> > > Passive Hub                                      .
> > >                               192.168.2.1        .
> > >                              +------------+      .
> > >                              | Router2    |--)))..
> > >                              +------------+
> > >                                 |
> > >                                 |
> > >                              +------+
> > >                              | PC2  |
> > >                              +------+
> > >                              192.168.2.24
> >
> > Yep it's a routing problem.
> >
> > Router1 needs a route to point back to PC2 so when traffic bound
 for it
> > comes it, it'll know what to do with it.
> > route add -net 192.168.2.0 netmask 255.255.255.0 gw 192.168.1.23
>
> Also if you want PC2 to access the net, you would need PC1 to be
 smart
> enough to route/NAT packets from PC2 to Router 1.

Thanks, but I only have a very limited understanding of this matter.
Does this mean I had to add netfilter to the kernel and configure
iptables ?

sathish





> Mike
>
> --
> gentoo-user@lists.gentoo.org mailing list
>
>
-- 
gentoo-user@lists.gentoo.org mailing list





[-- Attachment #2: Type: text/html, Size: 4864 bytes --]

^ permalink raw reply	[flat|nested] 15+ messages in thread
* [gentoo-user] Routing problem ?
@ 2008-01-11  1:36 Holla
  2008-01-11  3:14 ` kashani
  2008-01-11 14:39 ` YoYo Siska
  0 siblings, 2 replies; 15+ messages in thread
From: Holla @ 2008-01-11  1:36 UTC (permalink / raw
  To: gentoo-user

Hi,
I think I have a routing problem with network
shown below (hope my ascii art survives)

>From PC2, I cannot ping 192.168.1.1  and no internet.
Also cannot ping ISP's DNS servers. But there is full
connectivity between PC1 and PC2.

At PC2,
# traceroute 192.168.1.1
traceroute to 192.168.1.1 (192.168.1.1), 30 hops max, 40 byte packets
 1  * * *
 2  * * *

I reached upto this point by following up the
gentoo howtos, but now stuck. Any pointers ?

thanks
sathish




                192.168.1.1
+-+           +------------+
| |-----------|  Router1   |=========ASDL conn
| |           +------------+
| |
| |
| |
| |    192.168.1.23  +-------+  192.168.2.43
| |------------------|  PC1  |----))).............
+-+                  +-------+                   .
                                                 .
Passive Hub                                      .
                              192.168.2.1        .
                             +------------+      .
                             | Router2    |--)))..
                             +------------+
                                |
                                |
                             +------+
                             | PC2  |
                             +------+
                             192.168.2.24

--------------------------------------------------------------
Router1 (UTSStarCom ISP supplied) :
 - router IP 192.168.1.1
 - wireless enabled but not used

--------------------------------------------------------------
PC1: (gentoo)

 - eth0 (192.168.1.23) and wireless (192.168.2.43)
 - no iptables configuration
 - routing table entries
   Kernel IP routing table
   Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
   192.168.2.0     *               255.255.255.0   U     0      0        0 ra0
   192.168.1.0     *               255.255.255.0   U     0      0        0 eth0
   loopback        *               255.0.0.0       U     0      0        0 lo
   default         192.168.1.1     0.0.0.0         UG    0      0        0 eth0


 # echo "1"  >  /proc/sys/net/ipv4/ip_forward


# Kernel Networking options
#
CONFIG_UNIX=y
CONFIG_XFRM=y
CONFIG_INET=y
CONFIG_IP_ADVANCED_ROUTER=y
CONFIG_ASK_IP_FIB_HASH=y
CONFIG_IP_FIB_HASH=y
CONFIG_IP_ROUTE_VERBOSE=y
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
CONFIG_INET_XFRM_MODE_TRANSPORT=y
CONFIG_INET_XFRM_MODE_TUNNEL=y
CONFIG_TCP_CONG_BIC=y
--------------------------------------------------------------

Router2 (WRT54GL)
 - router IP 192.168.2.1
 - wireless enabled and used
--------------------------------------------------------------
PC2 (gentoo)
 - static IP address 192.168.2.24
 - routing table entries

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.2.43    *               255.255.255.255 UH    0      0        0 eth0
192.168.2.0     *               255.255.255.0   U     0      0        0 eth0
192.168.1.0     192.168.2.43    255.255.255.0   UG    0      0        0 eth0
loopback        *               255.0.0.0       U     0      0        0 lo
default         192.168.2.43    0.0.0.0         UG    0      0        0 eth0
-- 
gentoo-user@lists.gentoo.org mailing list



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2008-01-17  1:32 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-01-11 17:14 [gentoo-user] Routing problem ? Richard Torres
2008-01-11 17:54 ` [gentoo-user] " reader
  -- strict thread matches above, loose matches on Subject: below --
2008-01-11  1:36 [gentoo-user] " Holla
2008-01-11  3:14 ` kashani
2008-01-11  4:52   ` Mike Mazur
2008-01-11 15:18     ` Holla
2008-01-11 20:09     ` kashani
2008-01-13 11:12       ` Holla
2008-01-13 13:06         ` Hans-Werner Hilse
2008-01-16 12:22           ` Mick
2008-01-16 21:10             ` kashani
2008-01-17  1:31               ` Holla
2008-01-11 15:15   ` Holla
2008-01-11 14:39 ` YoYo Siska
2008-01-11 16:20   ` Holla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox