Gentoo Archives: gentoo-user

From: Holla <holla.net@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] Routing problem ?
Date: Fri, 11 Jan 2008 16:20:56
Message-Id: 51e438da0801110820x3bf05bbal1dcb8b3a307fd6c2@mail.gmail.com
In Reply to: Re: [gentoo-user] Routing problem ? by YoYo Siska
1 On Jan 11, 2008 8:09 PM, YoYo Siska <yoyo@××××××.sk> wrote:
2
3 > one other thing, if nat doesn't work, some wireless aps (i'm thinking
4 > about the 192.168.2.1) need to have correctly set up default gateway
5 > etc... they sometimes try to be to smart and I had sometimes problems
6 > when the router was connected as a wireless client to them...
7
8 Can you give some clues about what you mean by correctly setup gw ?
9
10 >
11 > btw, why don't you use the wireless on the ROUTER1 (doesn't seem you
12 > want to do any firewalling on the PC1)? It might make things much
13 > simpler... you could setup the other ap to connect to it in client mode
14 > and all your network could then be on the 192.168.1.0/24 and I would
15 > gues that your provider NATs the whole subnet...
16
17 Router1 is temporary. My ISP will shortly replace it with
18 a non-wireless version. So I want configure this way.
19
20 sathish
21
22
23 >
24 >
25 > yoyo
26 >
27 >
28 >
29 > >
30 > >
31 > > 192.168.1.1
32 > > +-+ +------------+
33 > > | |-----------| Router1 |=========ASDL conn
34 > > | | +------------+
35 > > | |
36 > > | |
37 > > | |
38 > > | | 192.168.1.23 +-------+ 192.168.2.43
39 > > | |------------------| PC1 |----))).............
40 > > +-+ +-------+ .
41 > > .
42 > > Passive Hub .
43 > > 192.168.2.1 .
44 > > +------------+ .
45 > > | Router2 |--)))..
46 > > +------------+
47 > > |
48 > > |
49 > > +------+
50 > > | PC2 |
51 > > +------+
52 > > 192.168.2.24
53 > >
54 > > --------------------------------------------------------------
55 > > Router1 (UTSStarCom ISP supplied) :
56 > > - router IP 192.168.1.1
57 > > - wireless enabled but not used
58 > >
59 > > --------------------------------------------------------------
60 > > PC1: (gentoo)
61 > >
62 > > - eth0 (192.168.1.23) and wireless (192.168.2.43)
63 > > - no iptables configuration
64 > > - routing table entries
65 > > Kernel IP routing table
66 > > Destination Gateway Genmask Flags Metric Ref Use Iface
67 > > 192.168.2.0 * 255.255.255.0 U 0 0 0 ra0
68 > > 192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
69 > > loopback * 255.0.0.0 U 0 0 0 lo
70 > > default 192.168.1.1 0.0.0.0 UG 0 0 0 eth0
71 > >
72 > >
73 > > # echo "1" > /proc/sys/net/ipv4/ip_forward
74 > >
75 > >
76 > > # Kernel Networking options
77 > > #
78 > > CONFIG_UNIX=y
79 > > CONFIG_XFRM=y
80 > > CONFIG_INET=y
81 > > CONFIG_IP_ADVANCED_ROUTER=y
82 > > CONFIG_ASK_IP_FIB_HASH=y
83 > > CONFIG_IP_FIB_HASH=y
84 > > CONFIG_IP_ROUTE_VERBOSE=y
85 > > CONFIG_INET_XFRM_MODE_TRANSPORT=y
86 > > CONFIG_INET_XFRM_MODE_TUNNEL=y
87 > > CONFIG_INET_XFRM_MODE_TRANSPORT=y
88 > > CONFIG_INET_XFRM_MODE_TUNNEL=y
89 > > CONFIG_TCP_CONG_BIC=y
90 > > --------------------------------------------------------------
91 > >
92 > > Router2 (WRT54GL)
93 > > - router IP 192.168.2.1
94 > > - wireless enabled and used
95 > > --------------------------------------------------------------
96 > > PC2 (gentoo)
97 > > - static IP address 192.168.2.24
98 > > - routing table entries
99 > >
100 > > Kernel IP routing table
101 > > Destination Gateway Genmask Flags Metric Ref Use Iface
102 > > 192.168.2.43 * 255.255.255.255 UH 0 0 0 eth0
103 > > 192.168.2.0 * 255.255.255.0 U 0 0 0 eth0
104 > > 192.168.1.0 192.168.2.43 255.255.255.0 UG 0 0 0 eth0
105 > > loopback * 255.0.0.0 U 0 0 0 lo
106 > > default 192.168.2.43 0.0.0.0 UG 0 0 0 eth0
107 >
108 >
109 >
110 > --
111 > gentoo-user@l.g.o mailing list
112 >
113 >
114 --
115 gentoo-user@l.g.o mailing list

Replies

Subject Author
[gentoo-user] Re: Routing problem ? reader@×××××××.com