05-15-2017 05:03 PM - edited 03-08-2019 10:35 AM
Hello,
Could someone explain to me what are route-maps and how they work? I am trying to understand it a little in my lab, but I don't think I am grasping it too well.
Here's my scenario:
I have two groups: LAN and Wi-Fi. The IPs associated with each group is only allowed to communicate within those IP. So no LAN device should be able to communicate with Wi-Fi, with the exception of 10.71.0.16/28. Below is the IPs associated with the two groups.
LAN IP Addresses | Wi-Fi IP Address |
10.1.0.0/30 |
10.2.0.0/30 10.2.0.4/30 10.49.0.32/28 |
And I had something like this:
permit 10.1.0.4 log deny any log ! deny permit deny permit deny deny permit deny deny permit deny deny permit deny deny permit permit deny permit permit deny ! route-map LAN permit 5 match set ! route-map LAN permit 10 match set ! route-map LAN permit 55 match ! route-map LAN permit 60 match ! route-map LAN permit 65 match ! route-map LAN permit 70 match ! route-map LAN permit 75 match ! route-map LAN permit 80 match set set set set default interface GigabitEthernet0/0.1025 ! route-map LAN permit 85 match set set set default interface GigabitEthernet0/0.1071 |
But, of course, that didn't work. I was receiving no packets through route-maps as shown:
Ext_Router#show route-map LAN route-map LAN, permit, sequence 5 Match clauses: Set clauses: Policy routing matches: 0 packets, 0 bytes route-map LAN, permit, sequence 10 Match clauses: Set clauses: Policy routing matches: 0 packets, 0 bytes route-map LAN, permit, sequence 55 Match clauses: Set clauses: Policy routing matches: 0 packets, 0 bytes route-map LAN, permit, sequence 60 Match clauses: Set clauses: Policy routing matches: 0 packets, 0 bytes route-map LAN, permit, sequence 65 Match clauses: Set clauses: Policy routing matches: 0 packets, 0 bytes |
Now I think it is I am partially not understanding it correctly, and I am also misconfiguring it (I am almost sure of this one).
So, for my question:
1) What am I doing wrong?
2) What is the point of different sequence and should I use different sequences in my scenario?
3) What are some tips or pointers to look for when using route-maps?
All input is greatly appreciated. Thank you.
05-15-2017 10:09 PM
Hello,
first of all, what, that is, which interface(s), are these route maps applied to ? The route maps by themselves do not do anything unless you apply them somewhere.
Are both your LAN and WiFi networks on the same router ? Post the entire config of your lab if possible...
05-16-2017 04:51 AM
Georg,
The route-map was applied to two interfaces, both LAN interfaces (Gi0/0.1100 and Gi0/1.1100).
Here is the configuration of the router:
version 15.1 All computer systems may be monitored for all lawful purposes, including Monitoring includes active attacks by authorized personnel and their All information including personal information, placed on or sent over |
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