SUMMARY: Setting up multiple routes across different nics

From: Ed Crotty (ecrotty@vantage.com)
Date: Thu Oct 12 2000 - 22:33:28 CDT


I had a couple of responses but David Schwarze really hit it on the head
for the answer i was looking for ...

Loosely quoted and translated for summary -

Yes, you need to leave the default route in /etc/defaultrouter and add
the additional routes via the startup script.

for instance :

route add -net <network> <network gw> <metric>
route add -net 10.1.1.0 10.1.1.1 1

Thanks to everyone else that replied as well!

Original Question

If you wanted to add a default route for say, hme0, you could simply say
 :

 /etc/defaultrouter

 ip.ip.ip.ip (of the default gateway)

 reboot the machine and everything is happy...

 if i had a system with something like :

 hme0 192.168.1.100
 qfe0 10.1.1.100

 what would be the proper way to set a default gateway for each
 interface?

 would i use /etc/gateways?

 i would assume that as long as the gateway is on the same segment, it
 would appropriately push packets down the corresponding gateways
 defined...

 so, in a nutshell, what is the proper way for declaring multiple
 gateways for multiple nics in the same machine?

-ed

S
U BEFORE POSTING please READ the FAQ located at
N ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/faq
. and the list POLICY statement located at
M ftp://ftp.cs.toronto.edu/pub/jdd/sun-managers/policy
A To submit questions/summaries to this list send your email message to:
N sun-managers@sunmanagers.ececs.uc.edu
A To unsubscribe from this list please send an email message to:
G majordomo@sunmanagers.ececs.uc.edu
E and in the BODY type:
R unsubscribe sun-managers
S Or
. unsubscribe sun-managers original@subscription.address
L To view an archive of this list please visit:
I http://www.latech.edu/sunman.html
S
T



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:14:19 CDT