From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Marko Havu Newsgroups: gmane.os.tru64.managers Subject: Routing with Tru64 UNIX V5.1A Date: Wed, 04 Dec 2002 22:38:02 +0200 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=ISO-8859-1 Content-Transfer-Encoding: QUOTED-PRINTABLE X-Trace: main.gmane.org 1039033942 26825 80.91.224.249 (4 Dec 2002 20:32:22 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 4 Dec 2002 20:32:22 +0000 (UTC) Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.20.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18JgBq-0006y0-00 for ; Wed, 04 Dec 2002 21:32:14 +0100 Original-Received: (qmail 8078 invoked by uid 5); 4 Dec 2002 20:34:23 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 8069 invoked by uid 49493); 4 Dec 2002 20:34:23 -0000 Original-Received: from mhavu@cc.hut.fi by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.51. spamassassin: 2.50-cvs. Clear:SA:0(-1.2/5.0):. Processed in 0.432605 secs); 04 Dec 2002 20:34:23 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 4 Dec 2002 20:34:22 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6M00BNS3T8N0@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 04 Dec 2002 15:34:22 -0500 (EST) Original-Received: from fep06.tmt.tele.fi (hank-fep6-0.inet.fi [194.251.242.201]) by emroute1.cind.ornl.gov (PMDF V6.1-1 #39060) with ESMTP id <0H6M005LM3SZ1N@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 04 Dec 2002 15:34:12 -0500 (EST) Original-Received: from Octane ([80.223.26.112]) by fep06.tmt.tele.fi (InterMail vM.5.01.03.13 201-253-122-118-113-20010918) with ESMTP id <20021204203410.MJPZ28788.fep06.tmt.tele.fi@Octane> for ; Wed, 04 Dec 2002 22:34:10 +0200 Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:2641 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:2641 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 =3D 1 ipgateway =3D 1 ipfirewall =3D 0 ipchkredirects =3D 0 ipsrcroute =3D 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 --=20 Marko Havu + + the Gods themselves FIN-40100 Jyv=E4skyl=E4 + + contend in vain" Finland + +358 40 7435 380 + - Johann Wolfgang von Goethe