SUMMARY:/etc/defaultrouter + multiple interfaces

From: G-tech Corp. (greg@crusoe.net)
Date: Thu Mar 21 1996 - 09:27:52 CST


ORIGINAL:
: How do I force a dedicated line under Solaris? I have 3 interface
: cards, but I can only attach to the host listed in /etc/defaultrouter.
: When I run traceroute <IP on le2> I end up going to the IP listed
: in this file. I'd like to distribute the load and use on specifically
: for backups, but so far 2 interfaces are going to waste. Any ideas?

# ifconfig -a
lo0: flags=849<UP,LOOPBACK,RUNNING,MULTICAST> mtu 8232
        inet 127.0.0.1 netmask ff000000
le0: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 144.222.104.3 netmask fffffc00 broadcast 144.222.107.255
        ether 8:0:20:1d:92:5f
le1: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 144.222.108.5 netmask fffffc00 broadcast 144.222.111.255
        ether 8:0:20:1d:92:5f
le2: flags=863<UP,BROADCAST,NOTRAILERS,RUNNING,MULTICAST> mtu 1500
        inet 144.222.128.10 netmask fffffc00 broadcast 144.222.131.255
        ether 8:0:20:1d:92:5f

# cat /etc/defaultrouter
144.222.108.1

and also corresponding hostname.le? files and /etc/host entries.

BEFORE;
# netstat -rn

Routing Table:
  Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1 127.0.0.1 UH 0 2 lo0
144.222.104.0 144.222.104.3 U 3 6588 le0
144.222.108.0 144.222.108.5 U 2 7635 le1
144.222.128.0 144.222.128.10 U 2 2938 le2
224.0.0.0 144.222.104.3 U 3 0 le0
default 144.222.108.1 UG 0 7822

AFTER;
# netstat -rn

Routing Table:
  Destination Gateway Flags Ref Use Interface
-------------------- -------------------- ----- ----- ------ ---------
127.0.0.1 127.0.0.1 UH 0 2 lo0
144.222.104.0 144.222.104.3 U 3 6590 le0
144.222.108.0 144.222.108.5 U 2 7639 le1
144.222.128.0 144.222.128.10 U 2 2940 le2
224.0.0.0 144.222.104.3 U 3 0 le0
default 144.222.108.1 UG 0 7825
default 144.222.104.1 UG 0 7728
default 144.222.128.1 UG 0 7730

Under 2.3, I added the extra 2 routes to /etc/init.d/inetinit. Apparently
under 2.4/2.5, multiple lines can be added to /etc/defaultrouter.

Now if I am on one of those 3 subnets, I can connect to the corresponding
interface card on that machine. With just routed running and 1 default route,
any of my other 64 subnets will only connect to subnet 128. With the 3
default routes and any other subnet, I connect to 128 as well. Can anyone
explain why its always 128 from the info above? (If you've bothered to
read this far)

Thanks all respondents.
greg@g-tech.com



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:10:55 CDT