Cisco 2950

Configurazioni per connettività ADSL, ISDN e switch per privati e piccole network

Moderatore: Federico.Lagni

Rispondi
Avatar utente
z3n0
Cisco fan
Messaggi: 56
Iscritto il: ven 22 giu , 2012 9:09 pm

Ciao a tutti,
sto configurando i miei primi switch :lol:

Nello specifico, la rete è composta da un 1841 con ADSL e due switch (senza particolari vlan) collegati tra loro (ovviamente in gigabit?).
Cioè, visto che ho due 24p, devo fare in modo che sembri un 48p :D

Il primo è così:

Codice: Seleziona tutto

spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
 description VERSO ROUTER CISCO 1841
!
interface GigabitEthernet0/2
 description VERSO SWITCH CISCO 2950 PORTA GIGABIT 2
!
interface Vlan1
 description LAN
 ip address 192.168.2.101 255.255.255.0
 no ip route-cache
!
Mentre il secondo è cosi:

Codice: Seleziona tutto

spanning-tree mode pvst
no spanning-tree optimize bpdu transmission
spanning-tree extend system-id
!
!
!
!
interface FastEthernet0/1
!
interface FastEthernet0/2
!
interface FastEthernet0/3
!
interface FastEthernet0/4
!
interface FastEthernet0/5
!
interface FastEthernet0/6
!
interface FastEthernet0/7
!
interface FastEthernet0/8
!
interface FastEthernet0/9
!
interface FastEthernet0/10
!
interface FastEthernet0/11
!
interface FastEthernet0/12
!
interface FastEthernet0/13
!
interface FastEthernet0/14
!
interface FastEthernet0/15
!
interface FastEthernet0/16
!
interface FastEthernet0/17
!
interface FastEthernet0/18
!
interface FastEthernet0/19
!
interface FastEthernet0/20
!
interface FastEthernet0/21
!
interface FastEthernet0/22
!
interface FastEthernet0/23
!
interface FastEthernet0/24
!
interface GigabitEthernet0/1
 shutdown
!
interface GigabitEthernet0/2
 description COLLEGATA ALLA GIGABIT 2 DELLO SWITCH CISCO 2950
!
interface Vlan1
 ip address 192.168.2.102 255.255.255.0
 no ip route-cache
!
no ip http server
!
Collegando un PC sia sullo switch 1 che sul 2, riesco a pingare sia il Router che entrambi gli Switch e sembra essere tutto ok..

Volevo capire se basta come configurazione e sopratutto a cosa potrebbe servire configurare le singole FastEthernet con "switchport mode access".
Inoltre potrebbe servirmi mettere le Gigabit in "Trunk"?

Grazie per il supporto :mrgreen:
CiscoEVPN
Cisco power user
Messaggi: 76
Iscritto il: sab 08 nov , 2014 11:12 am

Ciao Z3,

La configurazione che hai impostato sui 2 Switch è proprio la base per consentire ad N Client di collegarsi ad internet tramite il Cisco 1841 quindi, la risposta alla prima domanda è: si, basta per navigare

2 Quesito

" cosa potrebbe servire configurare le singole FastEthernet con "switchport mode access"

Il comando : switchport mode access Vlanxxx serve se hai creato più Vlan sui tuoi 2 Switch, lo applichi ad una porta e questa vedrà solo la Vlanxxx che hai assegnato, tutto il traffico proveniente da altre Vlan verrà ignorato

3 Quesito

Inoltre potrebbe servirmi mettere le Gigabit in "Trunk"?

Risposta: Si, se hai diverse Vlan da trasportare tra uno switch e l'altro, impostando sulla GE che ti interessa i comandi:

switchport mode trunk
switchport trunk encapsulation dot1q
switchport trunk allowed Vlan1x, Vlan2x, Vlan3x etc etc


Spero di essere stato chiaro

saluti
Avatar utente
z3n0
Cisco fan
Messaggi: 56
Iscritto il: ven 22 giu , 2012 9:09 pm

Grazie mille CiscoEVPN.
Quindi, in questo caso, non essendo necessaria alcuna VLAN, posso tranquillamente considerarla corretta..
C'è qualche altro parametro che mi consiglieresti per questo tipo di utilizzo?
CiscoEVPN
Cisco power user
Messaggi: 76
Iscritto il: sab 08 nov , 2014 11:12 am

Ciao,

Sugli switch essendo una configurazione base senza Vlan e altre Features, direi di no

Lavora invece sul Router se vuoi che faccia da Firewall ad esempio
Avatar utente
z3n0
Cisco fan
Messaggi: 56
Iscritto il: ven 22 giu , 2012 9:09 pm

Grazie mille..
Rispondi