1833883 Members
1485 Online
110063 Solutions
New Discussion

Routing in Solaris

 
SOLVED
Go to solution
Phoi-Tack Lew
Occasional Contributor

Routing in Solaris

Hi there,

I know this is not a Solaris discussion group but I have a problem with routing in solaris. How do i add a route in a internal network that will not dynamically change? Our current problem is that after adding a route, the route table contents change to find a faster route. So how do i staticly enforce this? Thanks.

charlie lew
2 REPLIES 2
Dale McNamara
Frequent Advisor
Solution

Re: Routing in Solaris

you may be able to define a static routing with the route command:

route add default [ip_address for gateway/router] 1

where 1 defines the hop count
Antoanetta Naghiu
Esteemed Contributor

Re: Routing in Solaris

Dale is right. I just want to add that to make it permanently you might edit /etc/init.d/inetsvc, e.g.
/usr/sbin/route add net|host destination gateway count