From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: RichGlazier@netscape.net (Rich Glazier) Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: adding a statis route (point to point) Date: Thu, 02 Oct 2003 14:55:27 -0400 Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <3489F247.1719CF5C.3ED58B64@netscape.net> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT X-Trace: sea.gmane.org 1065120950 30756 80.91.224.253 (2 Oct 2003 18:55:50 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 2 Oct 2003 18:55:50 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Thu Oct 02 20:55:48 2003 Return-path: Original-Received: from sws1.ornl.gov ([160.91.1.101]) by deer.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 1A58c8-000205-00 for ; Thu, 02 Oct 2003 20:55:48 +0200 Original-Received: (qmail 3016 invoked by uid 5); 2 Oct 2003 18:55:38 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 3001 invoked by uid 49493); 2 Oct 2003 18:55:37 -0000 Original-Received: from richglazier@netscape.net by sws1 by uid 49491 with qmail-scanner-1.16 (iscan: v3.1/v5.600-1011/622/49252. clamscan: 20030605. spamassassin: 2.55. Clear:SA:0(-3.1/5.0):. Processed in 1.941575 secs); 02 Oct 2003 18:55:37 -0000 Original-Received: from unknown (HELO emroute2.cind.ornl.gov) (160.91.86.17) by 0 with SMTP; 2 Oct 2003 18:55:35 -0000 Original-Received: from emroute2.cind.ornl.gov (LOCALHOST [127.0.0.1]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HM5005X08KMVX@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 02 Oct 2003 14:55:35 -0400 (EDT) Original-Received: from imo-d02.mx.aol.com (imo-d02.mx.aol.com [205.188.157.34]) by emroute2.cind.ornl.gov (PMDF V6.2-X17 #30669) with ESMTP id <0HM500I4O8KK27@emroute2.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Thu, 02 Oct 2003 14:55:33 -0400 (EDT) Original-Received: from richglazier@netscape.net by imo-d02.mx.aol.com (mail_out_v36_r1.1.) id g.3.a574a2b (16237) for ; Thu, 02 Oct 2003 14:55:27 -0400 (EDT) Original-Received: from netscape.net (mow-d19.webmail.aol.com [205.188.139.135]) by air-in03.mx.aol.com (v96.8) with ESMTP id MAILININ31-3f6d3f7c749f1a3; Thu, 02 Oct 2003 14:55:27 -0400 Original-To: tru64-unix-managers@ornl.gov X-Mailer: Atlas Mailer 2.0 X-AOL-IP: 65.201.47.246 Xref: main.gmane.org gmane.os.tru64.managers:5490 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:5490 Thanks to Charlie Ballowe Mandell Degerness Martin Burton Since the second NIC was assigned a totally different IP and subnet then the other card (our primary network), I didn’t need to do anything with the routes. Everything destined for that network (which is just the other machine), went through that card. Responses below: --- You shouldn't need to *add* a route, as one should already be there from the interface configuration. You'll find an entry like: 172.12.0.0 255.255.255.0 1 ee1 Which will direct all traffic destined for a 172.12.0.x host to the appropriate interface. HTH. Regards, Martin Burton --- You can, but you should not have to. As soon as you up the interface with the netmask of 255.255.255.0, everything in that subnet should automagically route through that interface. You should be able to see this with the results of the command "netstat -rn". Regards, Mandell Degerness --- I believe it should just be "route add -host 172.12.0.2 -dev ee1", but i don't believe that should be necessary. However, if you want traffic destined for 10.1.0.2 to go through 172.12.0.2 (assuming they're the 2 interfaces on the same box) then you would need something like: route add -host 10.1.0.2 172.12.0.2 -dev ee1 that should solve your problems. -Charlie RichGlazier@netscape.net (Rich Glazier) wrote: >I have 2 DS20s each with a single NIC set up on the primary network. it is a 10.1 netowrk with a 255.255.0.0 netmask. > >i have added a second NIC (ee1) in each machine.  they are to talk to eachother only through these interfaces.  i have assigned an IP and netmask to those cards that is totally different than our primary network.  it is a 172.12 address with a 255.255.255.0 (class c) subnet. > >gated and routed are not running on either machine. > >question:  how can i ensure that one node's traffic destined for the other node goes via the second nic?  can i do a route add or add an entry in the routes file and restart networking? > >example:  Host As second NIC  is 172.12.0.1 >          Host Bs second NIC  is 172.12.0.2 > >          I want everythng on Host A destined to 172.12.0.2, to go through host As second NIC (172.12.0.1).  can i "route add -host 172.12.0.2 172.12.0.1 -dev ee1", even though 172.12.0.1 isn't a gateway, but the end of the line? > >TIA > > > > > > > >__________________________________________________________________ >McAfee VirusScan Online from the Netscape Network. >Comprehensive protection for your entire computer. Get your free trial today! >http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 > >Get AOL Instant Messenger 5.1 free of charge.  Download Now! >http://aim.aol.com/aimnew/Aim/register.adp?promo=380455 > __________________________________________________________________ McAfee VirusScan Online from the Netscape Network. Comprehensive protection for your entire computer. Get your free trial today! http://channels.netscape.com/ns/computing/mcafee/index.jsp?promo=393397 Get AOL Instant Messenger 5.1 free of charge. Download Now! http://aim.aol.com/aimnew/Aim/register.adp?promo=380455