Solaris 8 as a router

From: Kamalan Govender (kamalang@cns.wits.ac.za)
Date: Sat Apr 27 2002 - 16:44:50 EDT


Hi all.

We are trying to setup a Sun box as a router, but not having any
success.
The box can ping and traceroute to both internal and external sites.
When we configure the client to use the box as the default gateway, the
client is unable to traceroute or ping. The strange thing is that the
"router" show the packets going through. We can see this from snooping.

We start up in.routed and in.rdisc and it discovers that reset of the
internal network. But the client is still unable to traceroute and ping.

We have checked that ndd /dev/tcp ip_forwarding is set to 1.

>From the netstat -nr output, we noticed that the routes with flags UG
indicating Up and Gateway, could not associate to a interface.Multiple
combinations of route add did not get the routes to associate.
We tried route add -net 146.141.15.0 146.141.15.9 -interface qfe0
           route add -net 146.141.15.0 146.141.15.9 -iface qfe0
           route add qfe0 146.141.15.0 146.141.15.9

The box is an Enterprise E450, hme and quad card.

uname -a = SunOS Eos 5.8 Generic_108528-14 sun4u sparc SUNW,Ultra-4

ifconfig -a =
lo0: flags=1000849<UP,LOOPBACK,RUNNING,MULTICAST,IPv4> mtu 8232 index 1
        inet 127.0.0.1 netmask ff000000
hme0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index
2
        inet 146.141.14.2 netmask ffffff00 broadcast 146.141.14.255
        ether 8:0:20:90:d8:9
qfe0: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index
3
        inet 146.141.15.9 netmask ffffff00 broadcast 146.141.15.255
        ether 8:0:20:90:d8:9
qfe1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index
4
        inet 146.141.97.2 netmask ffffff00 broadcast 146.141.97.255
        ether 8:0:20:90:d8:9

netstat -nr =
Routing Table: IPv4
  Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
146.141.15.0 146.141.15.9 U 1 5 qfe0
146.141.15.0 146.141.15.9 UG 1 0
146.141.14.0 146.141.14.2 U 1 1 hme0
146.141.14.0 146.141.14.2 UG 1 0
146.141.97.0 146.141.97.2 U 1 1 qfe1
146.141.97.0 146.141.97.2 UG 1 0
146.141.0.0 146.141.15.1 UG 1 5
default 146.141.14.6 UG 1 2
127.0.0.1 127.0.0.1 UH 1 0 lo0

Under /etc we have the following files
hosts:
        #
        # Internet host table
        #
        127.0.0.1 localhost
        146.141.14.2 Eos loghost
        146.141.15.9 Eos.internal loghost
        146.141.97.2 Eos.dmz loghost

hostname.hme0:
        Eos

hostname.qfe0:
        Eos.internal

hostname.qfe1:
        Eos.external

netmasks:
        146.141.14.0 255.255.255.0
        146.141.15.0 255.255.255.0
        146.141.97.0 255.255.255.0
        146.141.0.0 255.255.0.0

gateways
        146.141.14.2
        146.141.15.9
        146.141.97.2

_________________________________________________
Kamalan Govender
Computer & Network Services
University of the Witwatersrand
Tel: +27 11 717 1671
Fax: +27 11 339 1225
Web-site: www.wits.ac.za
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:15 EDT