================================================== ZADATAK 2 - DODAVANJE STATICKIH RUTA ================================================== ==================== R1 ========================== Router>enable Router#configure terminal Router(config)#hostname R1 R1(config)#interface fastethernet 0/0 R1(config-if)#ip address 10.0.0.1 255.0.0.0 R1(config-if)#no shutdown R1(config-if)#exit R1(config)#interface serial 0/0/0 R1(config-if)#ip address 20.0.0.1 255.0.0.0 R1(config-if)#clock rate 64000 R1(config-if)#bandwidth 64 R1(config-if)#no shutdown R1(config-if)#exit ! STATICKE RUTE R1(config)#ip route 30.0.0.0 255.0.0.0 20.0.0.2 R1(config)#ip route 40.0.0.0 255.0.0.0 20.0.0.2 R1(config)#ip route 50.0.0.0 255.0.0.0 20.0.0.2 R1(config)#end R1#show ip route R1#show ip interface brief ==================== R2 ========================== Router>enable Router#configure terminal Router(config)#hostname R2 R2(config)#interface serial 0/0 R2(config-if)#ip address 20.0.0.2 255.0.0.0 R2(config-if)#no shutdown R2(config-if)#exit R2(config)#interface fastethernet 0/0 R2(config-if)#ip address 30.0.0.1 255.0.0.0 R2(config-if)#no shutdown R2(config-if)#exit ! STATICKE RUTE R2(config)#ip route 10.0.0.0 255.0.0.0 20.0.0.1 R2(config)#ip route 40.0.0.0 255.0.0.0 30.0.0.2 R2(config)#ip route 50.0.0.0 255.0.0.0 30.0.0.2 R2(config)#end R2#show ip route R2#show ip interface brief ==================== R3 ========================== Router>enable Router#configure terminal Router(config)#hostname R3 R3(config)#interface fastethernet 0/0 R3(config-if)#ip address 30.0.0.2 255.0.0.0 R3(config-if)#no shutdown R3(config-if)#exit R3(config)#interface serial 0/0 R3(config-if)#ip address 40.0.0.1 255.0.0.0 R3(config-if)#clock rate 64000 R3(config-if)#bandwidth 64 R3(config-if)#no shutdown R3(config-if)#exit ! STATICKE RUTE R3(config)#ip route 10.0.0.0 255.0.0.0 30.0.0.1 R3(config)#ip route 20.0.0.0 255.0.0.0 30.0.0.1 R3(config)#ip route 50.0.0.0 255.0.0.0 40.0.0.2 R3(config)#end R3#show ip route R3#show ip interface brief ==================== R4 ========================== Router>enable Router#configure terminal Router(config)#hostname R4 R4(config)#interface serial 0/0/0 R4(config-if)#ip address 40.0.0.2 255.0.0.0 R4(config-if)#no shutdown R4(config-if)#exit R4(config)#interface fastethernet 0/0 R4(config-if)#ip address 50.0.0.1 255.0.0.0 R4(config-if)#no shutdown R4(config-if)#exit ! STATICKE RUTE R4(config)#ip route 10.0.0.0 255.0.0.0 40.0.0.1 R4(config)#ip route 20.0.0.0 255.0.0.0 40.0.0.1 R4(config)#ip route 30.0.0.0 255.0.0.0 40.0.0.1 R4(config)#end R4#show ip route R4#show ip interface brief ==================== PC0 ========================= ! Desktop > IP Configuration IP Address: 10.0.0.2 Subnet Mask: 255.0.0.0 Default Gateway: 10.0.0.1 DNS Server: (prazno) ! Desktop > Command Prompt PC>ipconfig PC>ping 50.0.0.2 ==================== PC1 ========================= ! Desktop > IP Configuration IP Address: 50.0.0.2 Subnet Mask: 255.0.0.0 Default Gateway: 50.0.0.1 DNS Server: (prazno) ! Desktop > Command Prompt PC>ipconfig PC>ping 10.0.0.2 ==================== PROVERA ===================== ! Na svakom ruteru: show ip interface brief show ip route ! Na PC0: ping 50.0.0.2 ! Na PC1: ping 10.0.0.2 ==================== UKLANJANJE RUTA R1 ========= R1>enable R1#configure terminal R1(config)#no ip route 30.0.0.0 255.0.0.0 20.0.0.2 R1(config)#no ip route 40.0.0.0 255.0.0.0 20.0.0.2 R1(config)#no ip route 50.0.0.0 255.0.0.0 20.0.0.2 R1(config)#end IP Address: 10.0.0.2 Subnet Mask: 255.255.255.0 Default Gateway: 10.0.0.1 DNS Server: IP Address: 50.0.0.2 Subnet Mask: 255.255.255.0 Default Gateway: 50.0.0.1 DNS Server: