Default interface

From: Jim Fitzmaurice <jpfitz_at_fnal.gov>
Date: Fri, 18 Feb 2000 10:58:15 -0600

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_at_fnal.gov

UNIX is very user friendly, It's just very particular about who it makes
friends with.
Received on Fri Feb 18 2000 - 16:54:02 NZDT

This archive was generated by hypermail 2.4.0 : Wed Nov 08 2023 - 11:53:40 NZDT