07-22-2011 01:51 PM - edited 03-07-2019 01:21 AM
Hi All
I have a Cisco Layer 3 switch.
Actually all packets comming from subnet 1, 2 and 3 are going directly to subnet 10, 11, 12 without going into my firewall because all destination subnet are directly connected
I would want packets comming from subnet 1, 2 or 3 go through Firewall into the outside interface then get out of it from the inside interface untill they reach their destination subnet 10, 11 or 12.
How can this be done ?
See attached file for detail.
Thank you very much.
Solved! Go to Solution.
07-22-2011 02:52 PM
This can be done by doing policy based routing.
sample config for One vlan:
access-list 100 permit ip x.x.1.0 0.0.0.255 x.x.10.0 0.0.0.255
access-list 100 permit ip x.x.1.0 0.0.0.255 x.x.11.0 0.0.0.255
access-list 100 permit ip x.x.1.0 0.0.0.255 x.x.12.0 0.0.0.255
route-map TO_FIREWALL_OUT
match ip address 100
set ip next hop
int vlan 1
ip policy route-map TO_FIREWALL_OUT
You would need to do changes in Firewall as well so that this traffic is permitted on outside interface.
HTH,
If helpful, Rate
07-22-2011 02:52 PM
This can be done by doing policy based routing.
sample config for One vlan:
access-list 100 permit ip x.x.1.0 0.0.0.255 x.x.10.0 0.0.0.255
access-list 100 permit ip x.x.1.0 0.0.0.255 x.x.11.0 0.0.0.255
access-list 100 permit ip x.x.1.0 0.0.0.255 x.x.12.0 0.0.0.255
route-map TO_FIREWALL_OUT
match ip address 100
set ip next hop
int vlan 1
ip policy route-map TO_FIREWALL_OUT
You would need to do changes in Firewall as well so that this traffic is permitted on outside interface.
HTH,
If helpful, Rate
07-23-2011 12:34 AM
Can I rate this extremely usefull
Thank you very much.
It's working very well
07-22-2011 05:30 PM
Disclaimer
The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.
Liability Disclaimer
In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.
Posting
Another option would be, if supported by your L3 switch, to use VRFs to have two different routing instances. Then your two sets of subnets would not be directly visible to each other.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide