Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Community Member

3750G to Router config

I have a mobile production truck that has a 3750G switch and a 2821 router. When the truck is on the road I set a static route to the 2821. When the truck is at home, I have to change the static route to a 3750G in our office, which connects to a 3845.

My question is, is there a way to have the 3750G in the truck determine which route to use based on which device is connected?

Thanks,

Greg

1 REPLY
Silver

Re: 3750G to Router config

If you are talking about a static default route i.e. 0.0.0.0/0,you can use a floating static route.

For instance

Route from 3750 to 2821

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0/1 distance 10

Route from 3750 to 3750

ip route 0.0.0.0 0.0.0.0 FastEthernet0/0/2

In case you are connected to the office 3750, that route is preffered. When the interface goes down, the route disapears from the routing table.

HTH

--Leon

* Please rate posts.

185
Views
0
Helpful
1
Replies
CreatePlease to create content