Configuration examples – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual
Page 369

Multi-Service IronWare Routing Configuration Guide
341
53-1003033-02
Configuration examples
Brocade(config-routemap test)# rule-name test permit 20
Syntax: [no] rule-name rule_name
The rule_name parameter is the name assigned to a specific instance in a route-map. The
rule-name may be up to 127 characters in length.
The [no] version of the command removes the name assigned to this instance.
Output example
Brocade(config)# route-map xGW_map permit 1
Brocade(config-routemap xGW_map permit 1)# rule-name xGW_path1
Brocade(config-routemap xGW_map permit 1)# match ip address xGW_Filter1
Brocade(config-routemap xGW_map permit 1)# match ipv6 address xGW_Filter1
Brocade(config-routemap xGW_map permit 1)# set next-hop-flood-vlan 2
preserve-vlan
Brocade(config)#route-map xGW_map permit 2
Brocade(config-routemap xGW_map permit 2)# rule-name xGW_path2
Brocade(config-routemap xGW_map permit 2)# match ip address xGW_Filter2
Brocade(config-routemap xGW_map permit 2)# set interface ethernet 15/1
preserve-vlan
Limitations
•
The same rule names can be used in multiple route maps.
•
For each route-map instance, there can be one rule-name configured.
•
Within each route-map the rule name has to be unique.
•
The show commands will show all the route-maps configured with the same rule name at the
same time.
•
The maximum number of rule names that can be configured in a system is 4096.
Configuration examples
This section presents the following configuration examples:
•
“Preserve VLAN IDs and forwarding to single destination”
•
“Preserve VLAN IDs and replicate to multiple ports within a VLAN”
Preserve VLAN IDs and forwarding to single destination
1. Configure the access list for IPv4.
Brocade(config)# access-list 101 permit ip any any
2. Configure the route map with a set policy to preserve VLAN for IPv4 traffic.
Brocade(config)# route-map map4 permit 10
Brocade(config-routemap map4ve)# match ip address 101
Brocade(config-routemap map4ve)# set ip next-hop 192.168.2.1 preserve-vlan
Brocade(config-routemap map4ve)# exit
3. Apply route map to physical or VE interface.
Brocade(config)# interface e1/1
Brocade(config-if-e1000-1/1)# allow-all-vlan pbr