Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a system attached by two ports to a DHCP server which gives out the following information:

Port 1  
Ip Address     Mask                 Gateway

Port 2
Ip Address Mask Gateway

From this the system needs to create a valid routing table for the Ip traffic.

At present the routing table looks like this:

Destination    Mask               Gateway     0xffffff80   0xffffffc0

However this does not work presumably because there is no defined route to the port address.

The question is what should the routing table from this sort of DHCP request look like, based on the need to route traffic to the two gateways?

share|improve this question

migrated from Mar 20 '13 at 12:53

This question came from our site for professional and enthusiast programmers.

The answer appears to be to setup gateways with different subnet masks. So the routing table would look something like this

Destination      Mask       Gateway            0xffffffc0          0xffffff80          0      0xffffff80    0xffffffc0

The data is routed to the various gateway by the subnet mask

share|improve this answer

You must log in to answer this question.