
Настроюємо маршрутизатор r2:
R2(config)#interface serial 0/2/0
R2(config-if)#encapsulation frame-relay
R2(config-if)#interface serial 0/2/0.201 point-to-point
R2(config-subif)#frame-relay interface-dlci 201
R2(config-subif)#ip address 10.0.0.2 255.255.255.252
R2(config-subif)#interface serial 0/2/0.203 point-to-point
R2(config-subif)#frame-relay interface-dlci 203
R2(config-subif)#ip address 10.0.0.9 255.255.255.252
R2(config-subif)#interface serial 0/2/0
R2(config-if)#no shutdown
Далі настроюємо порт fastEthernet 0/0:
R2(config)#interface fastEthernet 0/0
R2(config-if)#ip address 192.20.10.1 255.255.255.252
R2(config-if)#no shutdown
Настроюємо маршрутизатор r3:
R3(config)#interface serial 0/2/0
R3(config-if)#encapsulation frame-relay
R3(config-if)#interface serial 0/2/0.301 point-to-point
R3(config-subif)#frame-relay interface-dlci 301
R3(config-subif)#ip address 10.0.0.6 255.255.255.252
R3(config-subif)#interface serial 0/2/0.302 point-to-point
R3(config-subif)#frame-relay interface-dlci 302
R3(config-subif)#ip address 10.0.0.10 255.255.255.252
R3(config-subif)#interface serial 0/2/0
R3(config-if)#no shutdown
Далі настроюємо порт fastEthernet 0/0:
R3(config)#interface fastEthernet 0/0
R3(config-if)#ip address 192.30.10.1 255.255.255.252
R3(config-if)#no shutdown
Т
Рис. 2 – Задання DLCI
для порта Serial
0
Рис. 3 – Задання DLCI
для порта Serial
1
Рис. 4 – Задання DLCI
для порта Serial
2
Рис. 5 – Задання DLCI
для порта Serial
0
Тепер повинен бути зв’язок між R1 та R2, R1 та R3, R2 та R3, що можна перевірити за допомогою утиліти ping. Але зв’язку між мережами 192.10.10.0, 192.20.10.0 та 192.30.10.0 не буде. Для того, щоб він з’явився у мережі варто настроїти маршрутизацію. Наприклад, для протоколу RIP настроювання буде таке:
R1(config)#router rip
R1(config-router)#versin 2
R1(config-router)#no auto-summary
R1(config-router)#network 192.10.10.0
R1(config-router)#network 10.0.0.0
R2(config)#router rip
R2(config-router)#version 2
R2(config-router)#no auto-summary
R2(config-router)#network 192.20.10.0
R2(config-router)#network 10.0.0.0
R3(config)#router rip
R3(config-router)#version 2
R3(config-router)#no auto-summary
R3(config-router)#network 192.30.10.0
R3(config-router)#network 10.10.10.0
Для протоколу OSPF настроювання буде таке:
R1(config)#router ospf 10
R1(config-router)#network 192.10.10.0 0.0.0.255 area 0
R1(config-router)#network 10.0.0.0 0.0.0.3 area 0
R1(config-router)#network 10.0.0.4 0.0.0.3 area 0
R2(config)#router ospf 10
R2(config-router)#network 192.20.10.0 0.0.0.255 area 0
R2(config-router)#network 10.0.0.0 0.0.0.3 area 0
R2(config-router)#network 10.0.0.8 0.0.0.3 area 0
R3(config)#router ospf 10
R3(config-router)#network 192.30.10.0 0.0.0.255 area 0
R3(config-router)#network 10.0.0.4 0.0.0.3 area 0
R3(config-router)#network 10.0.0.8 0.0.0.3 area 0
А для протоколу EIGRP таке:
R1(config)#router eigrp 20
R1(config-router)#network 192.10.10.0 0.0.0.255
R1(config-router)#network 10.0.0.0 0.0.0.3
R1(config-router)#network 10.0.0.4 0.0.0.3
R2(config)#router eigrp 20
R2(config-router)#network 192.20.10.0 0.0.0.255
R2(config-router)#network 10.0.0.0 0.0.0.3
R2(config-router)#network 10.0.0.8 0.0.0.3
R3(config)#router eigrp 20
R3(config-router)#network 192.20.10.0 0.0.0.255
R3(config-router)#network 10.0.0.4 0.0.0.3
R3(config-router)#network 10.0.0.8 0.0.0.3
Після настройки маршрутизації між будь-якими пристроями мережі буде працювати зв’язок.