cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
18966
Views
0
Helpful
6
Replies

add a static route through the another host within the same vlan as the router

david.wang
Level 1
Level 1

this is router 887, its vlan is 192.168.3.1/24. If I'd like to add a static route via different host within same vlan, rather than the router, like:

          ip route 192.168.100.0/24 192.168.3.6

how can we achieve it?

i tried adding it directly and failed:

          (config)#ip route 192.168.100.0 255.255.255.0 192.168.3.6

          %Invalid next hop address (it's this router)

any idea is much appreciated!!!

6 Replies 6

nkarpysh
Cisco Employee
Cisco Employee

Hello,

Try replacing 192.168.3.6 with ip of remote host or use interface VLAN X as a next hop e.g.

ip route 192.168.100.0/24 vlan X

Nik

HTH,
Niko