1832525 Members
8382 Online
110043 Solutions
New Discussion

"default" route

 
JI HUI
Frequent Advisor

"default" route

Hi

It is seems that it is possible to have more than one "default" route items configured in the /etc/rc.config.d/netconf with different IP addresses as the next hop. The routes are shown in the output of "netstat -r" as well. (more than one "default" were shown")

Need advices:
1. Which route will be used? Only one will be used by OS ? or they are used in a certain manner?

2. Is it recommended solution for connectin balance?
(Assume no routing is enabled)

thank you.
Nothing is everything
3 REPLIES 3
MANOJ SRIVASTAVA
Honored Contributor

Re: "default" route

Hi

Use netstat -nr to display the current default route . In case the there are confusing enteries just delete them by giving

route delete abc*

then go ahead and add default route as:

route add default (abc.abc.abc.abc) 1

to make the change permanent edit the netconf file or use SAM.


Manoj
Mark Fenton
Esteemed Contributor

Re: "default" route

No matter how many "default" routes show up in your tables, only one is really ever used. Which of the several that appear in yours (which you didn't send, so can't strongly assert) will be used can be determined by tracing route to a couple of addresses external to your network and observing which gateway actually is used.

cheers
Berlene Herren
Honored Contributor

Re: "default" route

From 11.X on, it is possible to have more than one default route, and traffic will go out one or the other. The problem that may arise is that where it will go out is random; if you have two routes, going to two different routers, and they do not exchange RIP tables, then you have a 50-50 chance of the traffic making it out the first time. To overcome that, try looking at the ndd tunable ip_strong_es_model.

Regards,
Berlene

http://www.mindspring.com/~bkherren/dobes/index.htm