Default Routes on same network
I have a solaris 8 box with two nics (eri0 and eri1). I would like to a different router for each NIC. like this
eri0 192.168.1.100 default router 192.168.1.1 netmask 255.255.255.0
eri1 192.168.1.200 default router 192.168.1.250 netmask 255.255.255.0
How can I do the default router for each ?
[318 byte] By [
silvexa] at [2007-11-27 2:24:05]

# 1
Solaris route tables are based on destination, not source.So you can't really do what you want here. The route chooses the outbound interface, not the other way around.
In addition, multiple physical interfaces are not supported on the same subnet unless you're using IP Multipathing.Otherwise virtually all outbound traffic is going to go through one interface. If that interface goes down, the other will not be used as a backup.
--
Darren
# 3
Not really.
The problem is really that only one interface can be the default route.
So all traffic tends to go out one interface anyway.
If you have two applications that you want different routes for, you can uses zones and put each application in a zone.
Then if you make the zone subnets small enough they don't overlap, you can have a different default route in each zone.
# 4
It sounds like you must have a reason for wanting to direct traffic through the different interfaces. If you can quantify that logic, you can set up routing tables for specific destinations. However, as mentioned already, routing is based on destination.
If you just want to do load balancing, check out in.mpathd. You can set your T3 as primary and T1 as standby.
# 5
This is a ftp server that mostly servers downloads. It does not generate outbound traffic. I am running SOlaris 8, so zones are not a choice. I am contemplating going SOlrais 10 on the Netra T1. What I have done so far is this
/etc/defaultrouter
192.168.1.1 192.168.1.250
then ran these commands
route -f
route add default gw 192.168.1.1 1
route add default gw 192.168.1.250 25 (larger metric)
netstat -rn
Routing Table: IPv4
DestinationGatewayFlags RefUseInterface
-- -- -- --
0.0.0.0 192.168.1.250 UG10
192.168.1.0 192.168.1.25 U1774 eri0
192.168.1.0 192.168.1.27 U10 eri1
224.0.0.0192.168.1.25 U10 eri0
default 192.168.1.1UG1933
127.0.0.1127.0.0.1 UH10 lo0
any reasons why the 0.0.0.0 shows instead of default ?