background image
380
Chapter 10
Route Optimization
can use the distribute-list command to accomplish this goal. To illus-
trate how to use the distribute-list command, consider a variation of
our original example. This time, Network A is running EIGRP, Network B
is running RIP, and we want only the 1.0.0.0 network and the 2.0.0.0 net-
work to be advertised to Network B.
First, we create an access list that specifies which networks we want to be
learned by RouterB:
access-list 2 permit 1.0.0.0 0.255.255.255
access-list 2 permit 2.0.0.0 0.255.255.255
Next, we use the distribute-list command to permit only the net-
works specified in the access list:
router eigrp 10
distribute-list 2 in
Notice the in argument in the distribute-list command. The in argu-
ment tells the EIGRP routing process to learn only routes that are permitted
by the access list, as shown in Figure 10.9.
F I G U R E 1 0 . 9
Distribute list
Network B
RIP
router eigrp 10
network 1.0.0.0
redistribute rip metric 56 100 255 1 1500
distribute-list 2 in
!
router rip
network 8.0.0.0
redistribute eigrp 10 metric 3
!
access-list 2 permit 1.0.0.0 0.255.255.255
access-list 2 permit 2.0.0.0 0.255.255.255
Network A
EIGRP - Process ID 10
I can only see
networks 1.0.0.0 and
2.0.0.0 from
Network A.
RouterC
RouterB
RouterA
8.8.8.0/24
1.1.1.0/24
Copyright ©2001 SYBEX , Inc., Alameda, CA
www.sybex.com