I have a situation, where I need to make a static route better than a directly connected interface.
My rather unusual situation is :-
1 FastEthernet : 10.1.1.0/24
1 VLAN (vlan1) : 192.168.1.0/24
(4 port switch on hwic)
Now I need to add a static route to 192.168.1.81/24 via 10.1.1.1
192.168.1.81 is a server on a routed network over the internet.
I cant use
ip route 192.168.1.81 255.255.255.255 fe0/1
because I need a next-hop gateway as well.
If I use
ip route 192.168.1.81 255.255.255.255 10.1.1.1
It works for Fe0/1, but not for packets originating from VLAN1.
(I believe they look for 192.168.1.81 on the local segment as admin distance is 0)
I could re-ip my vlan to 192.168.2.0, which I know would solve my problem, but there are some application depenedencies, which prevent me from doing so.