Setting the next hop to a gre tunnel – Brocade Multi-Service IronWare Routing Configuration Guide (Supporting R05.6.00) User Manual
Page 365

Multi-Service IronWare Routing Configuration Guide
337
53-1003033-02
Configuration examples
Brocade(config-mpls-lsp-t3)# to 10.1.1.1
Brocade(config-mpls-lsp-t3)# enable
Brocade(config)# route-map pbrmap permit 10
Brocade(config-routemap pbrmap)# match ip address 101
Brocade(config-routemap pbrmap)# set next-hop-lsp t3
The following commands configure three entries in a route map called “test-route”. The first entry
(permit 50) matches on the IP address information in ACL 50 above. For IP traffic from subnet
10.157.23.0/24, this route map entry sets the next-hop IP address to 192.168.2.1.
Brocade(config)# route-map test-route permit 50
Brocade(config-routemap test-route)# match ip address 50
Brocade(config-routemap test-route)# set ip next-hop 192.168.2.1
Brocade(config-routemap test-route)# exit
The following commands configure the second entry in the route map. This entry (permit 51)
matches on the IP address information in ACL 51 above. For IP traffic from subnet 10.157.24.0/24,
this route map entry sets the next-hop IP address to 192.168.2.2.
Brocade(config)# route-map test-route permit 51
Brocade(config-routemap test-route)# match ip address 51
Brocade(config-routemap test-route)# set ip next-hop 192.168.2.2
Brocade(config-routemap test-route)# exit
The following commands configure the third entry in the test-route route map. This entry (permit
52) matches on the IP address information in ACL 52 above. For IP traffic from subnet
10.157.25.0/24, this route map entry sets the next-hop IP address to 192.168.2.3.
Brocade(config)# route-map test-route permit 52
Brocade(config-routemap test-route)# match ip address 52
Brocade(config-routemap test-route)# set ip next-hop 192.168.2.3
Brocade(config-routemap test-route)# exit
The following command enables PBR by globally applying the test-route route map to all interfaces.
Brocade(config)# ip policy route-map test-route
Alternatively, you can enable PBR on specific interfaces, as shown in the following example. The
commands in this example configure IP addresses in the three source subnets identified in ACLs
50, 51, and 52, then apply route map test-route the interface.
Brocade(config)# interface ve 1
Brocade(config-vif-1)# ip address 10.157.23.1/24
Brocade(config-vif-1)# ip address 10.157.24.1/24
Brocade(config-vif-1)# ip address 10.157.25.1/24
Brocade(config-vif-1)# ip policy route-map test-route
Setting the next hop to a GRE tunnel
This section describes how to configure a Brocade device to apply PBR to traffic on port 1/4 from
subnets 10.12.13.x and 10.15.16.x. Packets from these subnets are then sent to a next hop that is
a GRE tunnel. In this configuration, two GRE tunnels are configured to provide redundancy. If the
first tunnel in the configuration (Tunnel 1) is down, traffic will be routed to the second tunnel
(Tunnel 2). In situations where both tunnels are down, traffic from the subnets will be routed as
directed from the IP route table.
Brocade(config)# interface ethernet 1/4
Brocade(config-if-e1000-1/1)# ip policy route-map test1
Brocade(config-if-e1000-1/1)# exit