Pagina 1 di 1

Cisco 2950

Inviato: mer 05 ago , 2015 3:13 pm
da z3n0
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:

Re: Cisco 2950

Inviato: gio 06 ago , 2015 3:50 pm
da CiscoEVPN
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

Re: Cisco 2950

Inviato: gio 06 ago , 2015 4:26 pm
da z3n0
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?

Re: Cisco 2950

Inviato: sab 08 ago , 2015 10:12 am
da CiscoEVPN
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

Re: Cisco 2950

Inviato: sab 08 ago , 2015 11:52 am
da z3n0
Grazie mille..