Справочник по настройке сетевого оборудования Cisco. Александр Владимирович Меньшуткин
Чтение книги онлайн.
Читать онлайн книгу Справочник по настройке сетевого оборудования Cisco - Александр Владимирович Меньшуткин страница 27
EIGRP
фильтрация
с
картой
маршрутов
(Filtering with Route-Map)
В данном примере мы перераспределяем в EIGRP два адреса, которым присваиваем им соответствующие метки, в дальнейшем по меткам их можно будет перераспределять.
r1(config)#route-map conn_eigrp permit 10
r1(config-route-map)#match interface loopback10
r1(config-route-map)#set tag 10
r1(config-route-map)#route-map conn_eigrp permit 20
r1(config-route-map)#match interface loopback100
r1(config-route-map)#set tag 100
r1(config-route-map)#exit
r1(config)#router eigrp 1
r1(config-router)#redistribute connected route-map conn_eigrp
Первая команда показывает, что данные маршруты пришли как внешние, две другие присвоенные метки. Проверка осуществляется командами:
r4#show ip route eigrp
10.0.0.0/8 is variably subnetted, 10 subnets, 2 masks
D EX 10.0.10.1/32 [170/435200] via 10.0.34.3, 00:00:30,FastEthernet0/0
[170/435200] via 10.0.24.2, 00:00:30, FastEthernet0/1
D 10.0.12.0/24 [90/307200] via 10.0.24.2, 01:11:03, FastEthernet0/1
D 10.0.13.0/24 [90/307200] via 10.0.34.3, 01:11:03, FastEthernet0/0
D 10.2.2.2/32 [90/409600] via 10.0.24.2, 01:32:15, FastEthernet0/1
D 10.3.3.3/32 [90/409600] via 10.0.34.3, 01:11:03, FastEthernet0/0
D 10.1.1.1/32 [90/435200] via 10.0.34.3, 00:19:50, FastEthernet0/0
[90/435200] via 10.0.24.2, 00:19:50, FastEthernet0/1
D EX 10.0.100.1/32 [170/435200] via 10.0.34.3,00:00:30,FastEthernet0/0
[170/435200] via 10.0.24.2, 00:00:30, FastEthernet0/1
r4#show ip route 10.0.10.1
Routing entry for 10.0.10.1/32
Known via "eigrp 1", distance 170, metric 435200
Tag 10, type external
Redistributing via eigrp 1
Last update from 10.0.24.2 on FastEthernet0/1, 00:02:09 ago
Routing Descriptor Blocks:
* 10.0.34.3, from 10.0.34.3, 00:02:09 ago, via FastEthernet0/0
Route metric is 435200, traffic share count is 1
Total delay is 7000 microseconds, minimum bandwidth is 10000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
Route tag 10
10.0.24.2, from 10.0.24.2, 00:02:09 ago, via FastEthernet0/1
Route metric is 435200, traffic share count is 1
Total delay is 7000 microseconds, minimum bandwidth is 10000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
Route tag 10
r4#show ip route 10.0.100.1
Routing entry for 10.0.100.1/32
Known via "eigrp 1", distance 170, metric 435200
Tag 100, type external
Redistributing via eigrp 1
Last update from 10.0.24.2 on FastEthernet0/1, 00:02:41 ago
Routing Descriptor Blocks:
* 10.0.34.3, from 10.0.34.3, 00:02:41 ago, via FastEthernet0/0
Route metric is 435200, traffic share count is 1
Total delay is 7000 microseconds, minimum bandwidth is 10000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
Route tag 100
10.0.24.2, from 10.0.24.2, 00:02:41 ago, via FastEthernet0/1
Route metric is 435200, traffic share count is 1
Total delay is 7000 microseconds, minimum bandwidth is 10000 Kbit
Reliability 255/255, minimum MTU 1500 bytes
Loading 1/255, Hops 2
Route tag 100
EIGRP
фильтрация
по
административной
дистанции
(Filtering with Administrative Distance)
В данном примере мы устанавливаем для адреса 10.1.1.1 максимальную административную дистанцию и делаем его не достижимым.
r4#show ip route eigrp
10.0.0.0/8 is variably subnetted, 8 subnets, 2 masks
D 10.0.12.0/24 [90/307200] via 10.0.24.2, 01:19:12, FastEthernet0/1
D 10.0.13.0/24 [90/307200] via 10.0.34.3, 01:19:12, FastEthernet0/0
D 10.2.2.2/32 [90/409600] via 10.0.24.2, 01:40:23, FastEthernet0/1
D 10.3.3.3/32 [90/409600] via 10.0.34.3, 01:19:12, FastEthernet0/0
D 10.1.1.1/32 [90/435200] via 10.0.34.3, 00:27:58, FastEthernet0/0
[90/435200] via 10.0.24.2, 00:27:58, FastEthernet0/1