Gentoo Archives: gentoo-user

From: Holla <holla.net@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Routing problem ?
Date: Sun, 13 Jan 2008 11:13:28
Message-Id: 51e438da0801130312q6a358be9lb9532db63234cf71@mail.gmail.com
In Reply to: Re: [gentoo-user] Routing problem ? by kashani
1 I redo the diagram to show the gw info.
2
3 Router1: UTSStarCom WA3002G4
4 Wireless Router with 4 ethernet ports
5 NAT is enabled (Just a tickbox)
6
7 PC1, PC2 : gentoo, 2.6.18.3 kernel
8 Router2: LinkSys WRT54GL (default firmware)
9 used as access point
10 --------------------------------------------------
11 192.168.1.1
12 default gw: ISP net
13 192.168.2.0 gw: 192.168.1.23
14 +-+ +------------+
15 | |-----------| Router1 |=========ASDL conn
16 | | +------------+
17 | |
18 | |
19 | | 192.168.1.23 +-------+ 192.168.2.43
20 | |------------------| PC1 |----))).............
21 +-+ +-------+ .
22 Passive Hub gw: 192.168.1.1 .
23 .
24 192.168.2.1 .
25 +------------+ .
26 | W.AccessPt |--)))...
27 | (Router2) |
28 +------------+
29 |
30 +------+
31 | PC2 |
32 +------+
33 192.168.2.24
34 gw: 192.168.2.43
35
36
37 Yo Yo wrote:
38 > btw, why don't you use the wireless on the ROUTER1 (doesn't seem you
39 > want to do any firewalling on the PC1)?
40
41 Because this box is temporary, it will be replaced with a non-wireless
42 one by the ISP.
43
44 Richard Torres wrote:
45 > <snip> .. 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.
46
47 This router is LinkSys WRT54GL with default firmware and I am using
48 it really as an access point. There is no option to disable the WAN
49 connection, so I left it as 'DHCP'.
50
51 > 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.
52
53 I agree this would have simplified the network, but the problem is, I cannot
54 run a cable due to walls in between. The default firmware on LinkSys does
55 not provide a client option. (Yes, I am aware of OpenWrt/DD-WRT etc )
56 I hope using the client option does not prevent the access point function.
57
58 reader wrote:
59 > By correct gateway I think in this case it would be the inward facing
60 > address of pc1 (192.168.2.43) so on router2 you would set the gw to
61 > that address.
62
63 Already done.
64
65 > And on pc2 the gw would be 192.168.2.1. That is unless router2 is
66 > just a WAP (wireless access point).
67
68 As router is just a WAP, the gw is set to 192.168.2.43.
69
70
71 kashani wrote:
72 > Router1 is the NAT device and everything else is internal or so I
73 > assumed. You don't want NAT behind NAT on your network if you can help
74 > it. It tends to break things and is hard to troubleshoot.
75
76 I just ticked the 'Enable NAT' tickbox in the router configuration.
77
78 > PC1 does need to have IP forwarding turned on which the original poster
79 > mentioned he configured.
80
81 Yes, this is done.
82
83
84 >The tests I would run are:
85 >
86 > ping 192.168.2.43 from router1. That'll test that router1 knows how to
87 > get to 192.168.2.0. I don't think packet forwarding has to be working
88 > for this to return since the interfaces are all local on PC1.
89
90 Ping is ok.
91
92 > ping router 1 from PC2 and vice versa. That'll make sure that PC1 is
93 > forwarding packets correctly.
94
95 Ping is ok.
96
97 > If both of these are fine, it's possible the router1 is not NATing
98 > 192.168.2.0/24 addresses.
99
100 Do you think an ISP would allow only one LAN segment (like 192.168.1.x)
101 and not allow 192.168.2.x at the same time ? Is there any incentive
102 for them ?
103
104
105 One thing, I cannot understand is the difference in traceroute
106 results. What does this say in plain english ? :-)
107
108 At PC2
109 # traceroute 218.248.240.46 (ISP's DNS server)
110 traceroute to 218.248.240.46 (218.248.240.46), 30 hops max, 40 byte packets
111 1 192.168.2.43 (192.168.2.43) 1.730 ms 0.840 ms 0.920 ms
112 2 192.168.1.1 (192.168.1.1) 1.440 ms 1.469 ms 1.287 ms
113 3 * * *
114 4 * * *
115
116 At PC1
117
118 # traceroute 218.248.240.46
119 traceroute to 218.248.240.46 (218.248.240.46), 30 hops max, 40 byte packets
120 1 192.168.1.1 (192.168.1.1) 0.848 ms 0.706 ms 0.681 ms
121 2 117.192.128.1 (117.192.128.1) 19.712 ms 18.878 ms 19.920 ms
122 3 218.248.160.134 (218.248.160.134) 19.292 ms 19.796 ms 19.190 ms
123
124
125
126 --
127 sathish
128 --
129 gentoo-user@l.g.o mailing list

Replies

Subject Author
Re: [gentoo-user] Routing problem ? Hans-Werner Hilse <hilse@×××.de>