From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Tru64 User Newsgroups: gmane.os.tru64.managers Subject: SUMMARY: Changin default dev route on the fly Date: Wed, 12 Mar 2003 06:30:09 -0800 (PST) Sender: tru64-unix-managers-owner@ornl.gov Message-ID: <20030312143009.52367.qmail@web40907.mail.yahoo.com> References: <20030311153805.99641.qmail@web40904.mail.yahoo.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1047479470 29241 80.91.224.249 (12 Mar 2003 14:31:10 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 12 Mar 2003 14:31:10 +0000 (UTC) Original-X-From: tru64-unix-managers-owner-gotm-tru64-unix-managers=m.gmane.org@sws1.ctd.ornl.gov Wed Mar 12 15:31:08 2003 Return-path: Original-Received: from sws1.ctd.ornl.gov ([160.91.22.101]) by main.gmane.org with smtp (Exim 3.35 #1 (Debian)) id 18t7FS-0007XT-00 for ; Wed, 12 Mar 2003 15:30:26 +0100 Original-Received: (qmail 5931 invoked by uid 5); 12 Mar 2003 14:30:59 -0000 Original-Followup-To: poster Precedence: bulk Original-Received: (qmail 5922 invoked by uid 49493); 12 Mar 2003 14:30:59 -0000 Original-Received: from tru64user@yahoo.com by sws1 by uid 49491 with qmail-scanner-1.14 (clamscan: 0.54. spamassassin: 2.50-cvs. Clear:SA:0(-1.6/5.0):. Processed in 0.481351 secs); 12 Mar 2003 14:30:59 -0000 Original-Received: from unknown (HELO emroute1.cind.ornl.gov) (160.91.4.119) by 0 with SMTP; 12 Mar 2003 14:30:59 -0000 Original-Received: from emroute1.cind.ornl.gov (localhost [127.0.0.1]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with ESMTP id <0HBN00AUV4AN7O@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 12 Mar 2003 09:30:54 -0500 (EST) Original-Received: from web40907.mail.yahoo.com (web40907.mail.yahoo.com [66.218.78.204]) by emroute1.cind.ornl.gov (PMDF V6.2 #30669) with SMTP id <0HBN00GCM4A9UB@emroute1.cind.ornl.gov> for tru64-unix-managers@sws1.ctd.ornl.gov (ORCPT tru64-unix-managers@ornl.gov) ; Wed, 12 Mar 2003 09:30:10 -0500 (EST) Original-Received: from [128.183.106.140] by web40907.mail.yahoo.com via HTTP; Wed, 12 Mar 2003 06:30:09 -0800 (PST) In-reply-to: <20030311153805.99641.qmail@web40904.mail.yahoo.com> Original-To: tru64-unix-managers@ornl.gov Xref: main.gmane.org gmane.os.tru64.managers:3612 X-Report-Spam: http://spam.gmane.org/gmane.os.tru64.managers:3612 I had one response, from Rich Copeland, which helped solve the immediate problem, but not the whole thing (which i am not worrying about anyway...system going into retirement). My initial problem is resolved, in the sense that I am able to bring down tu0 without cutting connection to tu1. This was achieved by changing the default route device, from tu0 to tu1, which should always be on. I worked with HP support, and they were very GOOD!! It was determined that something else must be going on on this system...(again, i didnt want to worry about it at this stage) since the two "tu" devices are supposed to work in round-robin fashion, not depending on speed, but number of connections. If, lets say, there are three simple telnet/ssh connections on tu1 (100speed), and one big ftp job is started, it would go directly to tu0(10speed)regardless of which job requires greater bandwidth. The algorithm only looks at the number of connections per interface, not anything else. (At least for v4.0g I guess). Additionally, the entry NUM_NETCONFIG in rc.config was set to "1", even though this host had dual interfaces. I corrected that, but have not rebooted. I simply flushed the routes and created a new one via device tu1, which switches the problem the other way, ie. Now if I unplug tu1 cable, both tu1 and tu0 die!!, but unplugging tu0 does not kill tu1. This will enable me to assign tu0 ip address to new host, and start file transfers, and bring down new host anytime, when i need original tu0 connected. _Thanks Richard **********REsponse***************** Routes have nothing to do with interfaces. You can clear all of your routes with one command: # route flush You can add your default route back with one command: # route add default xxx.xxx.xxx.xxx These commands have nothing to do with bringing interfaces up or down. You should be able to set at the command line and type: # ifconfig tu0 down Without effecting any other interface. If this command brings down tu1 then you better log a hardware/software problem report with HP as I run 5.1A and have performed this command any number of times and it works without effecting any other interfaces. Just a note you should never have two interfaces connected to the same subnet [ THEY WERE NOT, I ERRED HERE--Richard ]and you should be cautious if you are trying to run routed or gated between two subnets. By bringing down one interface you can effect traffic between the two subnets. Maybe this information is helpful I am not sure? Regards, Rich Copeland KCK ***************** End Response ***************** --- Tru64 User wrote: > No takers first time.... > > Basically problem is if I perform > "/sbin/ifconfig tu0 down" it takes tu1 down as > well!! > > My thinking is that this happens because default > route > device is tu0, but I can't change it thru "route > change default -olddev tu0 -dev tu1". (Argument > Invalid) > Route command says default route is usually set to > first device on boot. > > Any ideas on solving this problem? I just need to be > able to disable tu0 without affecting tu1. > > _Thanks once again in advance........ > > Richard > > > > --- Tru64 User wrote: > > Hi ALL, > > > > I have a node with DUAL NICs, same LAN. > > > > say:: NICONE(tu0, 10Mbps) and NICONE-NFS(tu1, > > 100Mbps) > > > > I have to assign NICONE IP address to a new > machine, > > and leave this host accessible thru NICONE-NFS. > > > > Current default route device is tu0. Should this > be > > doable thru route command? > > I tried couple combinations of "route change" in > > vain. > > > > Problem is that as it is, when i unplug cable for > > tu0, > > tu1 looses connection to the outside as well!! so > I > > am > > thinking it is because of the default route going > > thru > > tu0. Adding another route to the net thru device > tu1 > > adds the route, but still does not resolve the > > problem. > > > > "route add -net OUR_LAN_NET_IP -dev NICONE-NFS" > > ....didn't help. > > > > > > _thanks > > > > ===== > > > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Tax Center - forms, calculators, tips, more > > http://taxes.yahoo.com/ > > > ===== > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Web Hosting - establish your business online > http://webhosting.yahoo.com ===== __________________________________________________ Do you Yahoo!? Yahoo! Web Hosting - establish your business online http://webhosting.yahoo.com