• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

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).
0
Joe Shevland
Asked:
Joe Shevland
1 Solution
 
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

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now