SOLARIS does not route

hi,

i installed solaris 9 on an SPARC server with two network interfaces. behind each interface is a small lan. i can reach every computer in every lan using one of the other interface when i am logged in the solaris. but if a computer from one lan has to connect to a computer on the other lan, the SOLARIS does not route. and i do not find the problem.

lan1 - SOLARIS - lan2

lan1: 192.168.100.0 - 255.255.255.0
lan2: 10.0.0.0 - 255.255.255.0
interface1: 192.168.100.6
interface2: 10.0.0.6
file /etc/notrouter does not exist.

here are the outputs of the ifconfig and netstat commands:

#ifconfig -a
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
inet 127.0.0.1 netmask ff000000
bge0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 10.0.0.6 netmask ffffff00 broadcast 10.0.0.255
ether 0:3:ba:60:ac:1b
bge1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 3
inet 192.168.100.6 netmask ffffff00 broadcast 192.168.100.255
ether 0:3:ba:60:ac:1c

# netstat -nr

Routing Table: IPv4
Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
192.168.100.0 192.168.100.6 U 1 4 bge1
10.0.0.0 10.0.0.6 U 1 3 bge0
127.0.0.1 127.0.0.1 UH 2 6 lo0

any ideas? thanks for helping.

Check the ip forwarding parameter...
ndd /dev/ip ip_forwarding
ndd /dev/ip ip6_forwarding
"man ndd" has the details on this.

hi,
ip_forwarding is already 1. cannot ping from lan1 to lan2...

thanks

Do you have routes installed on the other hosts? If a host at 192.168.100.31 wants to talk to 10.0.0.31, it needs to know that it should forward the packet to 192.168.100.6. This could be a default route or if you have another default route, it could be a network route. And 10.0.0.31 would need the same thing in reverse.

Hi,
All hosts on LAN1 are configured with default gateway 192.168.100.6 and hosts on LAN2 are configured with default gateway 10.0.0.6. on all LANs have no other router.
Please see attached file for more information

Thanks