cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
3862
Views
5
Helpful
3
Replies

Multiple Route Maps in a single VLAN

nathan.deane
Level 1
Level 1

Hi,

I am working on anetwork design that requires 3 x Route-maps to be applied on a single VLAN (using a 4948-E). The purpose is that depending where the traffic is going i want to set a different next hope (1 of 2 firewalls)

but when i add in the route maps to teh vlan and the do "sh run" the VLAN interface has only the last added route-map ?

can a single VLAN hold more than one route-map ? i know a normal physical interface can and they are used in sequence

config

access-list 101 permit ip 10.1.3.0 255.255.255.0 host 10.1.1.60

access-list 102 permit ip 10.1.3.0 255.255.255.0 host 10.1.1.70

access-list 103 permit ip 10.1.3.0 255.255.255.0 host 10.1.1.55

route-map destdb permit 1

match ip address 101

set ip default next-hop 10.1.4.1

route-map destdb2 permit 2

match ip address 102

set ip default next-hop 10.1.4.1

route-map destdb3 permit 3

match ip address 103

set ip default next-hop 10.1.5.1

interface vlan 4

ip policy route-map destdb

ip policy route-map destdb2

ip policy route-map destdb3

1 Accepted Solution

Accepted Solutions

leonvd79
Level 4
Level 4

Hello Nathan,

The switch allows you to apply only one route-map per interface.

If you need to match more than one source, you can merge the three route-maps into one route-map.

Here is an example:

route-map destdb permit 10

match ip address 101

set ip default next-hop 10.1.4.1

route-map destdb permit 20

match ip address 102

set ip default next-hop 10.1.4.1

route-map destdb permit 30

match ip address 103

set ip default next-hop 10.1.5.1

interface vlan 4

ip policy route-map destdb

HTH

--Leon

* Please rate posts.

View solution in original post

3 Replies 3

leonvd79
Level 4
Level 4

Hello Nathan,

The switch allows you to apply only one route-map per interface.

If you need to match more than one source, you can merge the three route-maps into one route-map.

Here is an example:

route-map destdb permit 10

match ip address 101

set ip default next-hop 10.1.4.1

route-map destdb permit 20

match ip address 102

set ip default next-hop 10.1.4.1

route-map destdb permit 30

match ip address 103

set ip default next-hop 10.1.5.1

interface vlan 4

ip policy route-map destdb

HTH

--Leon

* Please rate posts.

Oh ok,

so in this situation there is a single route-map but depending on what the destination address is the switch will allocate the next hop based on the access list.

let me give this a try

I will rate if it works ;)

Thanks

Ok well the switch took the config and gave this output

"show route-map destdb

route-map destdb, permit, sequence 1

Match clauses:

ip address (access-lists): 101

Set clauses:

ip default next-hop 10.1.3.10 10.1.4.1

Policy routing matches: 0 packets, 0 bytes

route-map destdb, permit, sequence 2

Match clauses:

ip address (access-lists): 102

Set clauses:

ip default next-hop 10.1.4.1

Policy routing matches: 0 packets, 0 bytes

route-map destdb, permit, sequence 3

Match clauses:

ip address (access-lists): 103

Set clauses:

ip default next-hop 10.1.5.1

Policy routing matches: 0 packets, 0 bytes"

so it should be good to go

Thanks