ROUTING DINAMICO
Obiettivo: si vuole costruire la rete rappresentata nello schema, attraverso tre router
Cisco 2620 fra loro collegati attraverso link seriali basati su leased line (linea
dedicata di tipo T1/E1) con velocità 64K.
Configurare gli apparati dando gli hostname e impostando le rotte dinamiche tramite
il protocollo RIP assicurandosi la raggiungibilità di ogni apparato tramite il ping.
1
SOLUZIONE:
Si configurano gli ip e i default gateway dei PC
CONFIGURIAMO LO SWITCH SW1:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW1
SW1(config)#interface vlan 1
SW1(config-if)#ip address [Link] [Link]
SW1(config-if)#no shutdown
%LDXX - Interface vlan 1, changed state to up
SW1(config-if)#exit
SW1(config)#ip default-gateway [Link]
SW1(config)#exit
CONFIGURIAMO LO SWITCH SW2:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW2
SW2(config)#interface vlan 1
SW2(config-if)#ip address [Link] [Link]
SW2(config-if)#no shutdown
%LDXX - Interface vlan 1, changed state to up
SW2(config-if)#exit
SW2(config)#ip default-gateway [Link]
SW2(config)#exit
CONFIGURIAMO LO SWITCH SW3:
Switch>enable
Switch#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Switch(config)#hostname SW3
SW3(config)#interface vlan 1
SW3(config-if)#ip address [Link] [Link]
SW3(config-if)#no shutdown
%LDXX - Interface vlan 1, changed state to up
SW3(config-if)#exit
SW3(config)#ip default-gateway [Link]
SW3(config)#exit
2
CONFIGURIAMO IL ROUTER R1:
Configuriamo l’hostname
Router>enable
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#exit
R1#
Configuriamo l’interfaccia F0/0
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface F0/0
R1(config-if)#ip address [Link] [Link]
R1(config-if)#no shutdown
R1(config-if)#
%LDXX - Line protocol on Interface FastEthernet0/0, changed state to up
R1(config-if)#exit
Configuriamo l’interfaccia S0/0
R1(config)#interface S0/0
R1(config-if)#ip address [Link] [Link]
R1(config-if)#no shutdown
R1(config-if)#
%LDXX - Interface Serial0/0, changed state to down
R1(config-if)#exit
R1(config)#exit
Guardo se è DCE o DTE
R1#show controllers s0/0
<Blah blah blah for a few lines>
buffer size 1524 HD unit -1, V.35 DCE cable, no clock
<Blah blah blah for LOTS more lines...
...This information is specific to the chipset in the interface
and includes a lot of incomprehensible gobbledy gook...
But it DOES have statistical counts such as:
- buffer over/under runs,
- memory errors,
- encapsulation errors,
- etc.
which is useful for indicating a congested or error-prone line.
E’ DCE quindi devo impostare il Clock su questa interfaccia
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface S0/0
R1(config-if)#clock rate 64000
R1(config-if)#exit
3
Abilito il RIP
R1(config)#router rip
R1(config-router)#network [Link]
R1(config-router)#network [Link]
R1(config-router)#exit