Справочник по настройке сетевого оборудования Cisco
Шрифт:
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)
В
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
r4(config)#access-list 2 permit 10.1.1.1
r4(config-router)#distance 255 0.0.0.0 255.255.255.255 2
Проверка осуществляется командами:
r4#show ip route eigrp
10.0.0.0/8 is variably subnetted, 7 subnets, 2 masks
D 10.0.12.0/24 [90/307200] via 10.0.24.2, 00:00:12, FastEthernet0/1
D 10.0.13.0/24 [90/307200] via 10.0.34.3, 00:00:12, FastEthernet0/0
D 10.2.2.2/32 [90/409600] via 10.0.24.2, 00:00:12, FastEthernet0/1
D 10.3.3.3/32 [90/409600] via 10.0.34.3, 00:00:12, FastEthernet0/0
r4#show ip route 10.1.1.1
% Subnet not in table
EIGRP
фильтрация
с
командой
пассивный
интерфейс
(Filtering with Passive-Interface)
Данный пример рассматривался ранее, данная команда полностью отключает EIGRP на интерфейсах.
r1(config)#router eigrp 1
r1(config-router)#passive-interface default
r1(config-router)#no passive-interface FastEthernet 0/0
r1(config-router)#no passive-interface Loopback 0
r1(config-router)#no auto-summary
r1(config-router)#end
r1#wr
EIGRP
фильтрация
с
офсет
листом
(Filtering with Offset-List)
В EIGRP при помощи офсет листа можно изменить метрику, данные действия показаны ниже:
r4#sh ip route 10.3.3.3
Routing entry for 10.3.3.3/32
Known via "eigrp 1", distance 90, metric 409600, type internal
Redistributing via eigrp 1
Last update from 10.0.34.3 on FastEthernet0/0, 00:00:41 ago
Routing Descriptor Blocks: