tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Jim Fitzmaurice <jpfitz () fnal ! gov>
To: tru64-unix-managers
Subject: Default interface
Date: Fri, 18 Feb 2000 16:58:15 +0000	[thread overview]
Message-ID: <96079336919504.tru64-unix-managers.marc@archive.invalid> (raw)

Hello,
	Searched the archives to no avail, so here's my question:

	How do I change my default network interface?

I have two machines both ran FDDI, but now we are switching to a 100Mb
Ethernet, and will also have two 1GB cards for special high flow traffic,
but are keeping the FDDI for use when we install ASE, so we are not removing
it. I want the default interface to be the 100Mb interface tu0. I thought
this was as easy as making tu0 the first device in /etc/rc.config (NETDEV_0
and IFCONGIF_0) and moving the fta0 device down the list (NETDEV_2 and
IFCONFIG_2). Then I just changed my route to use the 100Mb router as the
default router. This appeared to work on one machine so I thought I had it
right. After a reboot, the tu0 interface is the first interface to come up
when I run ifconfig -a and tu0 appears on the first line when I run
netstat -nr:

	default          <ip.of.100Mb.router>    UGS         2     4164  tu0

On the second machine, where I did the exactly the same thing, it didn't
work. After the reboot the ifconfig -a still shows the fta0 device first and
the first line of netstat -nr shows:

	default          <ip.of.100Mb.router>    UGS         0       36  fta0

I attempted to remove the default route and replace it with a tu0 route
using the route commands:

	# route delete default <ip.of.100Mb.router> -interface fta0
	# route add default <ip.of.100Mb.router> -interface tu0

No luck the first command does delete the default entry, but the second
command just recreates it on fta0. I tried using the IP Addr of the 100Mb
card for the -interface option as well as the DNS name of the card, but
still get a default entry on fta0. I also tried turning off fta0 with
ifconfig down, then adding the route, but that didn't work either. What am I
missing here? How do I make tu0 my default interface?

P.S. The archives were very helpful in getting the 100Mb interface to run at
100Mb so that isn't a problem.

Jim Fitzmaurice
jpfitz@fnal.gov

UNIX is very user friendly, It's just very particular about who it makes
friends with.

                 reply	other threads:[~2000-02-18 16:58 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox