I have 2 networks attached to a VLAN e.g. 172.15.0.0/16 and 10.22.37.0/24. On each workstation I have a default gateway to 172.15.2.100 which is also a firewall. I usually have to enter a static route on this workstations to get to the 10.22 network and other network and this is becoming laborious. I would really like to do this on the router once and for all. But when I enter
- ip route 10.22.0.0/16 10.22.37.254 ( HSRP on the VLAN ) - it says this is this router address.
Please how do i route traffic for the workstation going to the 10.22 and other network on the router. Will i have to use access - list. And if i do, is the following correct
access-list 10 permit 10.22.37.0 0.0.0255 172.15.0.0
access-list 10 permit 172.15.0.0 0.0.255.255 172.15.2.100
and apply it as
access-group 10 in or out on the VLAN interface?
This is so that when users request for a 10.22 network address, they get sent to the router and not trying to go out via the 172.15.2.100 address
Your help is highly appreciated.