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

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. If you'd prefer to explore, try our test area to get started. And see here for current known issues.

Static Route to a Server via Switch port

Hi All

would appreciate your help here I have the below setup where  Server 1 is sending requests with destination of and this has to be routed via that Server 2 for some SIP vendor reasons (as currently my network is routing through some other path to get to

is there is a way to do that? or is it impossible?

is it possible to have static route with next-hop of a server IP address which is connected via L2 switchport in some particular VLAN.

like below  ip route

Where is a server 3 directly connected to server 2 and the next-hop here is Server 2 IP address in  VLAN X ( please refer to the  diagram below.

Will it work as switch will Arp to get the MAC to of and forward it out that L2 interface my guess it will not as the next-hop is via VLAN X but can I do something about that under interface VLAN

Do anybody have any suggestions.

VIP Super Bronze

Hi,In you scenario, you need


In you scenario, you need to turn server 2 to a router since it has 2 IP segments attached to it.

The easiest way may be to connect both servers (2 and 3) to the switch and use the switch to do the routing for you instead.  specialty since your switch is already layer-3, this should be really easy.