Solaris to act as router?

  • Follow


All. I am having some trouble getting Solaris to act as a router. I
have 3 servers with a direct connection between each of them,
respectively. I need s2 to act as a router between the private
networks on s1 and s3. I can ping s1<=>s2 and s2<=>s3, but not
s1<=>s3. I have /dev/ip ip_forwarding set to 1 on s2. I'll try to draw
a diagram and give all of the pertinent info. Does anyone know why I
can't get this to work?

Thanks in advance.


|------------| 		|---------------------|		 |---------------|
|s1    ce1 |------  | bge1 s2  bge2|--------| bge1  s3	|
|------------|		|---------------------|		 |---------------|

IPs
s1:
ce1 192.168.100.100

s2:
bge1: 192.168.100.101
bge2: 192.168.200.100

s3:
bge1: 192.168.200.101


Routing Tables

s1:
  Destination           Gateway           Flags  Ref   Use   Interface
-------------------- -------------------- ----- ----- ------ ---------
172.28.45.8          172.28.45.12         U         1    270 ce0
192.168.200.0        192.168.100.100      UG        1      0
192.168.100.0        192.168.100.100      U         1     14 ce1
224.0.0.0            172.28.45.12         U         1      0 ce0
default              172.28.45.9          UG        1   1178
127.0.0.1            127.0.0.1            UH       18    728 lo0


s2:
Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use
Interface
-------------------- -------------------- ----- ----- ----------
---------
default              172.28.45.9          UG        1        166
172.28.45.8          172.28.45.10         U         1         67 bge0
192.168.100.0        192.168.100.101      U         1          1 bge1
192.168.200.0        192.168.200.100      U         1          1 bge2
224.0.0.0            172.28.45.10         U         1          0 bge0
127.0.0.1            127.0.0.1            UH        4        111 lo0

s3
Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use
Interface
-------------------- -------------------- ----- ----- ----------
---------
default              172.28.45.9          UG        1        160
172.28.45.8          172.28.45.11         U         1         33 bge0
192.168.100.0        192.168.200.101      UG        1          0
192.168.200.0        192.168.200.101      U         1          1 bge1
224.0.0.0            172.28.45.11         U         1          0 bge0
127.0.0.1            127.0.0.1            UH        4        111 lo0
0
Reply bozothedeathmachine16 (49) 4/25/2008 7:19:28 AM

On 25 Apr., 09:19, bozothedeathmachine <bozothedeathmach...@gmail.com>
wrote:
> All. I am having some trouble getting Solaris to act as a router. I
> have 3 servers with a direct connection between each of them,
> respectively. I need s2 to act as a router between the private
> networks on s1 and s3. I can ping s1<=>s2 and s2<=>s3, but not
> s1<=>s3. I have /dev/ip ip_forwarding set to 1 on s2. I'll try to draw
> a diagram and give all of the pertinent info. Does anyone know why I
> can't get this to work?
>
> Thanks in advance.
>
> |------------|          |---------------------|          |---------------|
> |s1    ce1 |------  | bge1 s2  bge2|--------| bge1  s3  |
> |------------|          |---------------------|          |---------------|
>
--------------- SNIP

Hey,

you need IP-NAT, cause your s2 must translate the packages
form the net 192.168.100.X to the other net 192.168.200.x

CU
Klaus Grote
0
Reply klaus 4/25/2008 7:29:35 AM


NAT is not needed here. Just make sure you get your routes right: on
s1 192.168.200.0 should be routed through 192.168.100.101, not
100.100. The same thing for s3 - 192.168.100.0 should be routed
through 192.168.200.100.
I hope I didn't overlook anything.

Kait
0
Reply Kait 4/25/2008 8:48:04 AM

JACKPOT. Thanks all.

0
Reply bozothedeathmachine 4/25/2008 11:35:00 AM

bozothedeathmachine schrieb:
> All. I am having some trouble getting Solaris to act as a router. I
> have 3 servers with a direct connection between each of them,
> respectively. I need s2 to act as a router between the private
> networks on s1 and s3. I can ping s1<=>s2 and s2<=>s3, but not
> s1<=>s3. I have /dev/ip ip_forwarding set to 1 on s2. I'll try to draw
> a diagram and give all of the pertinent info. Does anyone know why I
> can't get this to work?

solaris 10 has the command routeadm, with enables or disables routing, 
so i assume you have some older release. Whats about udp and other 
protocols, does ndd /dev/ip respect only ip (i think so)?

Wolfgang
0
Reply Wolfgang 4/25/2008 8:13:19 PM

4 Replies
167 Views

(page loaded in 0.066 seconds)

Similiar Articles:













7/11/2012 2:54:49 AM


Reply: