Configure a simple route-map to control traffic flow.
Scenario:
Based on your current
configuration, all traffic destined for network 192.168.1.0
originating from 192.168.4.0 will travel via 192.168.3.0. Your task is
to configure a route-map that will send all traffic destined for
192.168.1.0 via 192.168.2.0.
Initial Configuration:
Configure the above network as shown in
the diagram above. Use OSPF as your routing protocol. Also, on
interface S 0/0, issue the command bandwidth 128. This will make the
link between Routers A and B appear to be slower than the link between
Routers A and C, forcing OSPF to choose the link between A and C as
the optimum path to 192.168.1.0. Verify all links are operational and
use the trace command to verify traffic from 192.168.4.0 destined for
192.168.1.0 is using the link between Routers A and C. Now you can
begin the actual lab!
Configuring the Route map:
Traffic will be entering Router A
via Ethernet 0. So we must activate a route map on that interface.
In this lab we will name the route map CHANGEROUTE. To enable the
route map on an interface, issue the command:
RouterA(config-if)# ip policy route-map CHANGEROUTE
Next we will need an access list
statement in order to identify the packets that need to be policy
routed. In this case, it will be packets from 192.168.4.0. This can be
taken care of with a standard access list statement:
It is now time to configure the actual
route map. The first step is to configure an instance of the route
map. The second step is to identify the packets that need to be route
mapped. The third step to tell the router where to send the packet.
Use the following commands:
RouterA(config)# route-map
CHANGEROUTE permit 10
RouterA(config-route-map)# match ip address 1
RouterA(config-route-map)# set interface serial 0/0
Verify that the route map is
functioning. To view the process, issue the debug ip policy command
and then ping from the workstation on 192.168.4.0.
What are the results of the debug ip
policy command?
What other command could you use to
verify the route map is working and your packets are traveling over
the desired link?