From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96079336919666.tru64-unix-managers.marc@archive.invalid> From: Jim Fitzmaurice Date: Fri, 25 Feb 2000 20:11:35 +0000 To: tru64-unix-managers Subject: UPDATE: Default interface X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96079336919666 This is an update: I've only received 3 replies. One suggested that I had made a mistake in assigning IP addresses to the cards. That was one of the first thing I verified, no mistake there. Another asked if they were on the same Ethernet, maybe it was picking it's "favorite interface" I think he missed that one interface was FDDI and the other 100Mb Ethernet. Also why would two almost identical machines pick different "favorite interfaces". (One machine is working.) One of the responses was just a guess, but sounded promising. It was from Joe Fletcher: "A guess but what order are the cards listed in your kernel config file? You might want to compare the kernel config with the machine that does work." He was right the one machine had the 100Mb card first and the other had the FDDI card first. We switched the position of the 100Mb card on the machine with the problem so that the 100Mb card came up in the kernel config first. Then, we rebuilt the kernel, and rebooted. No change. So we still have this problem, any other ideas would be greatly appreciated. The original question is below. -----Original Question----- 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 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 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 -interface fta0 # route add default -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.