Задаємо IPадреси всіх пристроїв

Router1

Router2

Router3

Спробуємо підняти інтерфейси на пристроях

Router1

Для того щоб підняти інтерфейс потрібно визначити DCEта встановити clockrate 64000;

Router2

Router3

На всіх пристроях інтерфейси підняті і працюють правильно.

Перевіримо сусідів кожного пристрою.

Router1

Router2

 

 

Router3

Як бачимо, всі пристрої доступні з кожного сусіднього. Все функціонує правильно.

Перевіримо правильність призначення IPадрес шляхом пінгування.

Router1 → Router2 s0

 

Router1 → Router3 s1

 

Router1 → PC1

Статична маршрутизація

Для того щоб зв’язати між собою комп’ютери PC1, PC2 і PC3 потрібно виконати статичну маршрутизацію роутерів.

Для того щоб це здійснити потрібно задати 5 статичних маршрутів, оскільки кожен роутер має 2 сусіда, для 2-х роутерів потрібно 2 маршрута, отже для троьх – 6 (умова що останні два роутери також з’єднані).

Виконуємо маршрутизацію

Router1

Router2

Router3

 

Перевіримо

Router1

Router2

Router3

 

Якщо спробувати пропінгувати кінцевий пристрій то нвчого не вийде оскільки PCмає IPадресу та маску підмережі але немає getway. Його потрібно задати. Вказуємо інтерфейс роутера.Тепер налаштування для PCмають такий вигляд.

PC1

PC2

PC3

Тепер спробуємо зробити розширений пінг

Router1:PC2 →PC3

Router2: PC1 → PC3

Router3: PC1 → PC2

 

Трасування комп’ютерів

PC1 →PC2

PC2 →PC1

PC2 →PC3

 

 

PC3 →PC2

PC3 →PC1

PC1 → PC3

Конфігурація пристроїв (Практична частина)


Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname Router1

ipcef

enablepasswordboson

ip subnet-zero

noip domain-lookup

interface Serial0

ipaddress 172.16.10.1 255.255.255.0

noip directed-broadcast

clockrate 64000

interface Ethernet0

descriptionEthernetinterfaceon Router1

ipaddress 10.1.1.1 255.255.255.0

noip directed-broadcast

ipclassless

noiphttpserver

iproute 1.1.1.0 255.255.255.0 172.16.10.2

iproute 1.1.1.0 255.255.255.0 172.16.10.1

cdpholdtime 60

cdptimer 45

linecon 0

lineaux 0

linevty 0 4

login

passwordboson

noschedulerallocate

end

 

Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname Router2

ipcef

ip subnet-zero

noip domain-lookup

interface Serial0

noipaddress

noip directed-broadcast

interface Ethernet0

ipaddress 10.1.1.2 255.255.255.0

noip directed-broadcast

ipclassless

noiphttpserver

iproute 0.0.0.0 0.0.0.0 10.1.1.1

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end

 

Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname Router4

ipcef

ip subnet-zero

noip domain-lookup

interface Loopback0

ipaddress 1.1.1.1 255.255.255.0

noipdirectedbroadcast

interface Loopbacks0

noipaddress

noipdirectedbroadcast

interfaceLoopback

noipaddress

noipdirectedbroadcast

interface Serial0

ipaddress 172.16.10.2 255.255.255.0

noip directed-broadcast

interface Ethernet0

noipaddress

noip directed-broadcast

ipclassless

noiphttpserver

iproute 0.0.0.0 0.0.0.0 172.16.10.1

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end


Конфігурація пристроїв (Самостійна частина)


Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname Router1

ipcef

ip subnet-zero

noip domain-lookup

interface Serial0

ipaddress3.1.1.1 255.255.255.0

noip directed-broadcast

clockrate 64000

interface Serial1

ipaddress3.1.3.1 255.255.255.0

noip directed-broadcast

interface Ethernet0

ipaddress3.1.4.1 255.255.255.0

noip directed-broadcast

interface Bri0

noipaddress

noip directed-broadcast

shutdown

interface Bri0:1

noipaddress

noip directed-broadcast

shutdown

interface Bri0:2

noipaddress

noip directed-broadcast

shutdown

ipclassless

noiphttpserver

iproute3.1.5.0 255.255.255.0 3.1.1.2

iproute3.1.6.0 255.255.255.0 3.1.3.2

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end

 

Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname Router2

ipcef

ip subnet-zero

noip domain-lookup

interface Serial0

ipaddress3.1.1.2 255.255.255.0

noip directed-broadcast

interface Serial1

ipaddress3.1.2.1 255.255.255.0

noip directed-broadcast

clockrate 64000

interface Ethernet0

ipaddress3.1.5.1 255.255.255.0

noip directed-broadcast

interface Bri0

noipaddress

noip directed-broadcast

shutdown

interface Bri0:1

noipaddress

noip directed-broadcast

shutdown

interface Bri0:2

noipaddress

noip directed-broadcast

shutdown

ipclassless

noiphttpserver

iproute3.1.4.0 255.255.255.0 3.1.1.1

iproute3.1.6.0 255.255.255.0 3.1.2.2

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end

 

Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname Router3

ipcef

ip subnet-zero

noip domain-lookup

interface Serial0

ipaddress3.1.3.2 255.255.255.0

noip directed-broadcast

clockrate 64000

interface Serial1

ipaddress3.1.2.2 255.255.255.0

noip directed-broadcast

interface Ethernet0

ipaddress3.1.6.1 255.255.255.0

noip directed-broadcast

interface Bri0

noipaddress

noip directed-broadcast

shutdown

interface Bri0:1

noipaddress

noip directed-broadcast

shutdown

interface Bri0:2

noipaddress

noip directed-broadcast

shutdown

ipclassless

noiphttpserver

iproute3.1.5.0 255.255.255.0 3.1.2.1

iproute3.1.4.0 255.255.255.0 3.1.3.1

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end

 

Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname C:

ipcef

ip subnet-zero

noip domain-lookup

interface Ethernet0

ipaddress3.1.4.2 255.255.255.0

noip directed-broadcast

ipclassless

noiphttpserver

iproute 0.0.0.0 0.0.0.0 3.1.4.1

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end

exit

 

Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname C:

ipcef

ip subnet-zero

noip domain-lookup

interface Ethernet0

ipaddress3.1.5.2 255.255.255.0

noip directed-broadcast

ipclassless

noiphttpserver

iproute 0.0.0.0 0.0.0.0 3.1.5.1

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end

exit

 

Version 12.3

servicetimestampsdebuguptime

servicetimestampsloguptime

noservice password-encryption

hostname C:

ipcef

ip subnet-zero

noip domain-lookup

interface Ethernet0

ipaddress3.1.6.2 255.255.255.0

noip directed-broadcast

ipclassless

noiphttpserver

iproute 0.0.0.0 0.0.0.0 3.1.6.1

linecon 0

lineaux 0

linevty 0 4

noschedulerallocate

end

exit


Висновок:На даній лабораторній роботі було здобуто навички здійснення маршрутизації між пристроями, правильне налаштування IPадрес, масок підмереж та getway.Засвоєно матеріал по ARPтаблицям, MACадресам та методам здійснення статичної та динамічної маршрутизації.