I'm trying to set up a machine running Tru64 UNIX V5.1A as a router. We
have a small address space with netmask 255.255.255.248. This leaves us
only 5 usable IP addresses, so I tried to set up ipnat to map the private
class C addresses in the internal network into this range. However, no
packets passed through the gateway even though ipnat showed that there
were active mappings, so I decided to try static routing and gated first.
It doesn't work either.
I believe my kernel should be appropriately configured:
# iprsetup -d
ipforwarding = 1
ipgateway = 1
ipfirewall = 0
ipchkredirects = 0
ipsrcroute = 1
If the network address is x.x.x.0, the external gateway is in x.x.x.1 and
the network broadcast address is x.x.x.7. Interface tu1 is connected to
the external network and tu2 to the internal network:
tu1: inet x.x.x.2 netmask fffffff8 broadcast x.x.x.7
tu2: inet x.x.x.6 netmask fffffff8 broadcast x.x.x.7
I have tried both static routes and gated with all the possible
configurations I can think of. The machine acting as a gateway sees both
the external network and the internal network (addresses x.x.x.3-x.x.x.5),
but nothing gets passed between the two interfaces. Currently my
gated.conf is as follows:
interfaces {
interface all passive ;
} ;
rip yes
{
broadcast;
interface all noripin noripout;
interface tu1 ripin ripout;
} ;
static {
host x.x.x.3 gateway x.x.x.6 interface tu2;
host x.x.x.4 gateway x.x.x.6 interface tu2;
host x.x.x.5 gateway x.x.x.6 interface tu2;
host x.x.x.6 gateway x.x.x.6 interface tu2;
} ;
export proto rip {
proto direct { all; };
proto static { all; };
};
What am I missing here?
Thanks in advance,
Marko Havu
--
Marko Havu + <Marko.Havu_at_ + "Against stupidity,
Keskustie 24 B 27 + havutuote.fi> + the Gods themselves
FIN-40100 Jyväskylä + + contend in vain"
Finland + +358 40 7435 380 + - Johann Wolfgang von Goethe
Received on Wed Dec 04 2002 - 20:34:54 NZDT