background image
390
Chapter 10
Route Optimization
Finally, we need to specify where to send traffic if the match condition is
not met:
route-map routeweb permit 20
set ip next-hop 172.16.2.1
RouterA will now send all HTTP traffic over the T3 link to RouterC and
all other traffic over the T1 link to RouterB.
Hands-on Lab
A
dd a distribute-list command to RouterA, such that RouterB
can see network 1.1.1.0/24 in its routing table, but not network 2.2.2.0/24,
as shown in the following graphic:
Solution
RouterA and RouterB should have their s0 interfaces interconnected with a
serial crossover cable. We will arbitrarily designate RouterB as the DCE side
and RouterA as the DTE side.
First, we create an access list on RouterA that specifies which networks
we want to be advertised:
access-list 1 permit 1.0.0.0 0.255.255.255
Next, we use the distribute-list command to permit only the net-
work specified in the access list:
router rip
distribute­list 1 out
Lo0
1.1.1.1/24
RouterA
RouterB
RIP
s0
s0
Lo1
2.2.2.2/24
3.3.3.1/24
3.3.3.2/24
Copyright ©2001 SYBEX , Inc., Alameda, CA
www.sybex.com