I am trying to set up a gateway using static routes with Tru64 Unix
4.0E. However, the machine is not forwarding the IP packets
properly.
The route tree looks like this:
default def.router.our.domain UGS 0 0 tu1
localhost localhost UH 0 0 lo0
our.domain thisnodename U 0 0 tu1 (net route)
win.nt.host thisnodename U 0 0 tu0 (host route)
The idea is to connect one windows NT machine to the net through the DU
4.0E box, which has two network interfaces tu0 and tu1. tu0 is
connected to the NT machine and tu1 to the external world (it has to be
this way because of hardware limitations).
Now, if I log onto the DU4.0 -machine, I can reach both the internet
and the NT-machine without problems. However, from the NT-machine, one
can only see the DU4.0 machine. It looks like the unix-machine is not
forwarding the packets at all. Also, from outside, it is not possible
to contact the NT-machine behind the unix box. BTW, I also tried
setting the route to the NT-machine using the NT-machine itself as a
router. No luck. Traffic between the NT and unix-machines is ok, but
from the NT one cannot reach outer world and vice versa.
iprsetup -d reports:
ipforwarding = 1
ipgateway = 1
ipfirewall = 0
ipchkredirects = 0
ipsrcroute = 1
That is, the machine should forward all packets without asking. Also,
the /etc/rc.config contains ROUTER="yes", which is equivalent to the
above. Both interfaces are in promiscuous mode, so the machine should
_really_ take all packets without asking. The tu1 interface has been
set to "metric 1" as to make it less favorable, so the NT-box should be
offered any packets first, if they are to go there.
One more problem is, how to set the default (or any other) route to
point to the tu1 interface (or any other, given name, for that matter).
There are no switches in the commands to direct a route to a specific
network interface! As a result, one has to bring the tu0 interface down,
delete its IP-address and abort connections with ifconfig, then set the
default route (with only tu1 configured) and then reconfigure the tu0
back up. All routing changes appear to affect only tu0, if
it has an address, i.e. the first interface encountered. How can one
override this without using ifconfig? This behaviour effectively
prevents me using the /etc/routes -file, since all routes set there go
to the tu0 interface at boot time. Also, routing daemons have the same
problem, of course. And I'd like to avoid using them for this a simple
setup.
ArNO
2
Received on Fri Jul 23 1999 - 07:08:48 NZST