01-04-2012 02:16 AM - edited 03-07-2019 04:09 AM
Hello All,
I would like to get help on an issue I been fighting for a quit long time now. My network is like this:
Cisco 3750 (Core Switch)-----> Cisco 2960 (Distribution Switch)-----> Client (PC, Laps, Printers…etc)
Basically I have 3 VLAN’s. Office VLAN (for cooperative usage) which is VLAN 999 which has a defined IP address of 192.168.1.123 and Guest VLAN (for the guests who visits our hotel, most of it are wifi AP’s) VLAN 20 which has an IP address of 10.172.4.1. All these SVI are defined on the core switch.
Is there any way I can introduce a new VLAN lets say VLAN 40 and use PBR to route the packets going to VLAN 40 in the IP range 192.168.1.x to VLAN 999 and 10.172.4.1 to VLAN 20? I have tried this already and it is not working. Here are the configurations I have used.
Access-list 110 permit ip 10.172.4.0 0.0.0.255 any
access-list 120 permit ip 192.168.1.0 0.0.0.255 any
route-map INT_RVLAN permit 10
match ip address 120 110
set ip next-hop 192.168.1.123 10.172.4.1
interface VLAN 40
ip policy route-map INT_RVLAN
Where have I gone wrong?
01-04-2012 02:35 AM
Ahmed,
PBR is configured in ingress of a given SVI/routed port so your sentence 'use PBR to route the packets going to VLAN 40' does not make too much sense.
You might use it, applied to VLAN 40, if you desire that traffic COMING FROM vlan 40 (all or part of it) is not routed according to your RIB but takes a different next hop RESIDING in vlan 40 (adjacent) which is another router existing in vlan 40.
Policy routing is specified on the interface that receives the packets, not on the interface from which the packets are sent.
From your description, even though I am not sure about what you want to achieve, it is clears that you want to do something completely different than this. PBR cannot be used for this.
I suggest you to read about PBR in general, what they do and how you can configure them
http://www.cisco.com/en/US/products/ps6599/products_white_paper09186a00800a4409.shtml
and then read about requirements and limitations of PBR on 3750
If you have still some doubts please clarify in details what you want to do with vlan40 (its IP address scheme, the traffic you want to re-route
regards,
Riccardo
01-04-2012 02:43 AM
Hi Ahmed,
Really didn't get what you want to do, Could you clearily tell us your requirement?
Regards,
Manouchehr
01-04-2012 02:59 AM
Hi,
For performing PBR on cisco 3750 switches you will need to change the SDM template settings from desktop routing to routing.
Then it should perform proper PBR for you.
Regards,
Pawan Sharma
01-04-2012 03:04 AM
well.. not really... even if he changes to routing-pbr (provided this sdm is not already in use) his PBR will not work as it cannot work this way
01-04-2012 03:09 AM
I hope you have an idea about the VLAN's and the VLAN configuration I have. Basically what I need to do is to introduce a link from a cisco 2960 (one of the distribution switch - above I have explained how the network looks like) to a dumb DLink switch which will have PC's which need to connect to both cooperative and guest networks,
therefor I am trying to introduce a new VLAN other than the three existing, and I am calling the new VLAN VLAN40, and all what I want is to route the pakets going to the VLAN 40 using the IP ranges, 192.168.1.x should be routed to VLAN 999 and from the ip range 10.172.4.x to VLAN 20. How can I do it?
Here is a short breif of the VLAN's and why I use it:
VLAN 100 is the management VLAN i use for managing the switches
VLAN 999 is the VLAN i use at office for office purposes
VLAN 20 is the VLAN i use for guests internet
and VLAN 40 is the new VLAN where I want the routing to happen
01-04-2012 03:18 AM
Dear Ahmed,
as I said PBR is used to route traffic COMING FROM a given vlan/subnet and not TO.
Also, as per your initial post, 192.168.1.x is an address belonging to vlan999 and 10.172.4.x to VLAN 20 already...
If you want to have routing in vlan 40 too, first you need to create a SVI with an IP address on your 3750, with an IP scheme different from the other vlans. Have you done that?
I have the impression, as I already pointed out, that you need to approach PBR basics before trying to configure it.
Riccardo
01-04-2012 03:26 AM
well I have done that
Here are the configurations for vlan 20 and vlan 999
interface Vlan999
description Office
ip address 192.168.1.123 255.255.255.0
interface Vlan20
description Guest
ip address 10.172.4.1 255.255.255.0
and for the routing stuff I used PBR since I found that was the easiest way to do it on 3750, I may not know the best as you know but here is what I did and all what I am asking you is for a solution, what I am doing here is lets say fast etherenet port 4 of a 2960 is on vlan 40 :| and that is connected to a dlink dumb switch (layer1) and it has pc's which has ip ranges 192.168.1.x and 10.172.4.x. and so want to route the packets going to vlan 40 using the ip ranges. I hope you understand what I mean now
Access-list 110 permit ip 10.172.4.0 0.0.0.255 any
access-list 120 permit ip 192.168.1.0 0.0.0.255 any
route-map INT_RVLAN permit 10
match ip address 120 110
set ip next-hop 192.168.1.123 10.172.4.1
interface VLAN 40
ip policy route-map INT_RVLAN
01-04-2012 04:51 AM
Ahmed,
unfortunately I still don't understand what you mean and what you are trying to do...
you did not configure any IP address on interface vlan 40! PBR is a L3 feature, meaning that is has to do with routing. If vlan 40 has no IP address configured, no routing can occur at this point (beside the fact that also from a sintax point of your your PBR is not correct).
I think we have to start from the basics here.
If you need help please answer to all the questions below:
1. What are the IP addresses of the hosts connected in vlan 40 on the 2960 (IP address plus subnet mask please)?
2. What is the deafult gateway of vlan 40? It should be interface vlan40 of the 3750, but since I don't see any IP address on previous post you must tell us. Also what is the IP address of the dg in vlan40?
3. Do the hosts in vlan40 need connectivity to all other hosts in other vlans?
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: