I have a small network on a single VLAN 10. It's a 192.168.100.x network with a firewall/NAT sitting at .254. Our company relies on some data feeds that are brought into the network via dedicated circuits (T1's). The routers for those dedicated circuits have a static address in the 192.168.100.x network (for example: We need to connect to servers on the other side of those dedicated circuits, but I'm not sure how to accomplish this.

I'm looking to add a static route that says if one of the clients in my 192.168.100.x network attempts to access a computer that exists on a AAA.BBB.CCC.X Class C network, that it always uses the dedicated router at as its gateway.

Can anyone provide some help for this?


Looks like you need to do this either on the clients or on the 254 gateway:

route add AAA.BBB.CCC.0 mask

But it's not clear from your question whether it will just work. The dedicated router may need to provide NAT too.

  • I'm struggling with this answer because it seems like I may be forced into creating VLANs where the managed switch can route it to the appropriate VLAN depending on the destination. The alternative would be creating static routes on each client? – Mr Furious Oct 1 '09 at 0:41
  • 1
    The best place to do this is usually on your default gateway, because then you only have to do it once. If your firewall/NAT device can accept static routes, you may be able to add it there. For example, the other hosts on your network will try to get to AAA.BBB.CCC.X via (their default gateway), which will issue an ICMP redirect to (the dedicated router). Gleb is correct that the router at 15 may still need to provide NAT in order for you to communicate with hosts in AAA.BBB.CCC.0/24. – James Sneeringer Oct 1 '09 at 1:11
  • I suspect most kinds of hosts will ignore ICMP redirects so traffic will always bounce off the 254 gateway which would make me uncomfortable. :) But if configuring clients with static route needs to be avoided -- OK then. – Gleb Oct 1 '09 at 1:25
  • It sounds like the approach we're going to take is a dedicated router that will decide based on the destination network where to send the traffic. I really appreciate the information Gleb. – Mr Furious Oct 2 '09 at 16:51

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.