Two 'Distinct' Ethernet Ports and Default Routers

The box I'm working with has two ethernet interfaces. I want to set up a different network on each 'hme' interface, which should be OK because I can alter their IP addresses etc... Can I set up a different default router for each interface as opposed to setting up a default router using /etc/defaultrouter (which both would use)? I'm working with Solaris 2.4 (5?) on a Sparc platform (and I also do not wish to route between the two interfaces).
Joe ShevlandAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

drzCommented:
Yes. The easy, quick-hack way is call the route program after the cards are initialized to set up the right routes this way. (Say one of your ethernet cards is on a 10.23.x.x class B, then you'd have all packets going to 10.23.x.x routed to 10.23.62.254 (assuming that is the router). You might also have to specify the right interface with that.)
The "right" way to do it is to persuade in.routed of what should be done.
Careful: in.routed by default assumes it has to route between the two interfaces. You'll have to explicitly tell it not to.

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Networking

From novice to tech pro — start learning today.