View Single Post
Staro 29.08.2007., 00:42   #3
Striček
Write in ©
Moj komp
 
Striček's Avatar
 
Datum registracije: Sep 2006
Lokacija: Zagreb
Postovi: 445
Iz priloženog se vidi da routeri nisu u istom subnetu<-prva greška 192.168.3.1/24---192.168.6.1/24
Zato ti ne radi!
Znači na Rtr0/ser1 staviš 192.168.3.1/24
Rtr1/ser1 staviš 192.168.3.2/24
----------------------------------------------------------------------
Na jednom od serijskih portova moraš postaviti clocking, svejedno koji no samo jedan mora sinkronizirati vezu.<-druga greška
Naredba na interface:
rtr(config-if)#clock rate 64000
----------------------------------------------------------------------
Naredba za statičko routiranje

rtr(config)#ip route {ciljana mreža+subnet} {next-hop interface ili izlazni port}
npr:
rtr(config)#ip route 192.168.1.0 255.255.255.0 ser0
ili
rtr(config)#ip route 192.168.1.0 255.255.255.0 192.168.3.1
----------------------------------------------------------------------
Kasnije pogledaj routing tablicu na oba routera, trebala bi ovako otprilike izgledati (iz simulatora):

ZA RTR0:
---------------------------------------------------------------------
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.3.0/24 is directly connected, Serial2/0
S 192.168.4.0/24 is directly connected, Serial2/0

-----------------------------------------------------------------------
ZA RTR1:
-----------------------------------------------------------------------
Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP
D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP
i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area
* - candidate default, U - per-user static route, o - ODR
P - periodic downloaded static route

Gateway of last resort is not set

S 192.168.1.0/24 is directly connected, Serial2/0
C 192.168.3.0/24 is directly connected, Serial2/0
C 192.168.4.0/24 is directly connected, FastEthernet0/0
---------------------------------------------------------------------
Evo i konfiguracijska datoteka sa routera koji provajdira clocking
rtr#show running-config

!
version 12.2
!
hostname Router
!
interface FastEthernet0/0
ip address 192.168.1.1 255.255.255.0

duplex auto
speed auto
!
interface FastEthernet1/0
no ip address
duplex auto
speed auto
shutdown
!
interface Serial2/0
ip address 192.168.3.1 255.255.255.0
clock rate 64000

!
interface Serial3/0
no ip address
shutdown
!
interface FastEthernet4/0
no ip address
shutdown
!
interface FastEthernet5/0
no ip address
shutdown
!
ip classless
ip route 192.168.4.0 255.255.255.0 Serial2/0
!
!
!
!
line con 0
!
end

Inače satičko routiranje je dobar izbor za ovako male mreže!
Javi ako zapneš.
Striček je offline   Reply With Quote