Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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: 192.168.100.15). 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 192.168.100.15 as its gateway.

Can anyone provide some help for this?

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

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

route add AAA.BBB.CCC.0 mask 255.255.255.0 192.168.100.15

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

share|improve this answer
    
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 192.168.100.254 (their default gateway), which will issue an ICMP redirect to 192.168.100.15 (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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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