SUMMARY: Changin default dev route on the fly

From: Tru64 User (tru64user@yahoo.com)
Date: Wed Mar 12 2003 - 09:30:09 EST


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 <tru64user@yahoo.com> 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 <tru64user@yahoo.com> 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



This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 10:49:10 EDT