Cisco 1841 e onboard switch port

Tutto ciò che ha a che fare con la configurazione di apparati Cisco (e non rientra nelle altre categorie)

Moderatore: Federico.Lagni

Rispondi
ottobrerosso
Cisco fan
Messaggi: 56
Iscritto il: mer 05 ott , 2011 2:14 pm

Ciao a tutti,
sono ancora qui a chiedere consigli...
HO preso un modulo HWIC (HWIC-4ESW) con 4 porte fastEthernet.
La mia idea sarebbe quella di configuarle come se fossero uno switch vero e proprio collegato al router, ma mi sono accorto che non è proprio la stessa cosa... -.-''
Volevo chiedere come poter far si che queste porte possano "parlare" con il router?
Ho provato a collegare il pc ad una di esse e mi aspettavo che il pool DHCP che ho configurato facesse il suo e tutto finiva li, invece non è andata come mi aspettavo...
Cosa devo fare ?
Grazie a tutti!
paolomat75
Messianic Network master
Messaggi: 2965
Iscritto il: ven 29 gen , 2010 10:25 am
Località: Prov di GE

Posta la configurazione.

Paolo
Non cade foglia che l'inconscio non voglia (S.B.)
ottobrerosso
Cisco fan
Messaggi: 56
Iscritto il: mer 05 ott , 2011 2:14 pm

Ciao,
ecco qua,
ma non c'è nulla sulle porte... mi aspetto che se ci collego un cavo vada visto che sono integrate nel router... o no ?!?!

R1841#sh ip int brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 10.135.100.254 YES NVRAM up up
FastEthernet0/1 unassigned YES NVRAM administratively down down
FastEthernet0/1/0 unassigned YES unset up down
FastEthernet0/1/1 unassigned YES unset up down
FastEthernet0/1/2 unassigned YES unset up down
FastEthernet0/1/3 unassigned YES unset up down
ATM0/0/0 unassigned YES NVRAM initializing down
ATM0/0/0.1 unassigned YES unset initializing down
Vlan1 unassigned YES NVRAM up down
NVI0 unassigned NO unset up up
Dialer0 unassigned YES NVRAM up up
R1841#


R1841#sh running-config
Building configuration...

Current configuration : 1908 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1841
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 10.135.100.254
ip dhcp excluded-address 10.135.100.253
!
ip dhcp pool Campus
network 10.135.100.0 255.255.255.0
default-router 10.135.100.254
dns-server 8.8.8.8
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
vpdn enable
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
ip address 10.135.100.254 255.255.255.0
ip nat inside
ip virtual-reassembly
ip tcp adjust-mss 1410
no ip mroute-cache
speed 100
full-duplex
no cdp enable
!
interface FastEthernet0/1
no ip address
shutdown
duplex auto
speed auto
!
interface FastEthernet0/1/0
duplex full
speed 100
!
interface FastEthernet0/1/1
!
interface FastEthernet0/1/2
!
interface FastEthernet0/1/3
!
interface ATM0/0/0
no ip address
no ip route-cache cef
no ip route-cache
no ip mroute-cache
atm restart timer 300
no atm ilmi-keepalive
atm pppatm link reset
bundle-enable
dsl operating-mode auto
hold-queue 224 in
!
interface ATM0/0/0.1 point-to-point
no ip route-cache
pvc 8/35
pppoe-client dial-pool-number 1
!
!
interface Vlan1
no ip address
!
interface Dialer0
ip address negotiated
no ip proxy-arp
ip nat outside
ip virtual-reassembly
encapsulation ppp
dialer pool 1
dialer-group 1
ppp authentication pap callin
ppp pap sent-username user password 0 pwd
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
!
!
ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer0 overload
!
access-list 1 permit 10.0.0.0 0.255.255.255
dialer-list 1 protocol ip permit
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
login
!
scheduler allocate 20000 1000
end

R1841#


Grazie
Avatar utente
carini
Network Emperor
Messaggi: 275
Iscritto il: mar 18 apr , 2006 2:17 pm
Località: Como
Contatta:

ottobrerosso ha scritto:Ciao,
ecco qua,
ma non c'è nulla sulle porte... mi aspetto che se ci collego un cavo vada
Non ho capito quello che intendi fare, ma da quello che intuisco ti serve configurare una vlan per ogni porta che vuoi utilizzare su una rete differente

Codice: Seleziona tutto

[...]
interface FastEthernet0
 description Connected to wireless
 duplex auto
 speed auto
!
[...]
interface FastEthernet2
 description Connected to server
 switchport access vlan 20
[...]

Codice: Seleziona tutto

c1801#show vlan-switch 

VLAN Name                             Status    Ports
---- -------------------------------- --------- -------------------------------
1    default                          active    Fa1, Fa3, Fa4, Fa5, Fa6, Fa7, Fa8
20   Servers                          active    Fa2
Immagine
ottobrerosso
Cisco fan
Messaggi: 56
Iscritto il: mer 05 ott , 2011 2:14 pm

Ciao,
a me serve far funzionare le porte fastethernet che ho collegato al router.
Provo a fare un esempio per essere più preciso.
Io ho configurato un Pool DHCP sulla network 10.135.100.0 / 24 Vlan 1, quello che mi aspetto se collegassi uno switch al router è che gli host collegati alle porte sulla vlan1 ricevano un indirizzo IP 10.135.100.X.
Però questo non succede...
Come faccio a far si che se collego un dispositivo ad una delle 4 porte questo riceva un indirizzo ip e parli col router ?
Spero di essere stato più chiaro.
Grazie!
Avatar utente
carini
Network Emperor
Messaggi: 275
Iscritto il: mar 18 apr , 2006 2:17 pm
Località: Como
Contatta:

ottobrerosso ha scritto:Ciao,
Come faccio a far si che se collego un dispositivo ad una delle 4 porte questo riceva un indirizzo ip e parli col router ?
Spero di essere stato più chiaro.
Grazie!
Come prima cosa controlla che la porta venga vista come status = up

Codice: Seleziona tutto

show ip interface brief 
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet2              unassigned      YES unset  up                    up      
Infine controlli che nella sezione del DHCP venga distribuito l'indirizzo corretto, puoi usare la guida di tech republic

http://www.techrepublic.com/article/con ... or-switch/

o

http://www.ciscopress.com/articles/arti ... 1&seqNum=5
Immagine
lorbellu
Network Emperor
Messaggi: 313
Iscritto il: gio 25 ott , 2007 6:14 pm

Come faccio a far si che se collego un dispositivo ad una delle 4 porte questo riceva un indirizzo ip e parli col router ?
Se non ho capito male, vuoi utilizzare le 4 porte come quello che sono; un modulo switch, analogamente ad un router "casalingo".
La domanda a questo punto è : "Vuoi che le tue Fast0/0 e Fast0/1 facciano parte del gruppo?"
  • Se la risposta è NO, devi sconfigurare la Fast0/0 e configurare la VLAN1 analogamente alla Fast0/0. Ovviamente a quel punto, ciò che è collegato alla fast0/0 deve essere spostato ad una delle 4 porte del modulo ESW
  • Se la risposta é SI, devi sconfigurare la fast0/0, attivare la fast0/1 e mettere fast0/0, fast0/1 e vlan1 in bridge tra loro, configurando l'IP sulla risultante interfaccia BVI.
Saluti
Lorbellu
paolomat75
Messianic Network master
Messaggi: 2965
Iscritto il: ven 29 gen , 2010 10:25 am
Località: Prov di GE

Sottoscrivo quello che ti hanno detto.

Paolo
Non cade foglia che l'inconscio non voglia (S.B.)
paolomat75
Messianic Network master
Messaggi: 2965
Iscritto il: ven 29 gen , 2010 10:25 am
Località: Prov di GE

Hai risolto?

Paolo
Non cade foglia che l'inconscio non voglia (S.B.)
ottobrerosso
Cisco fan
Messaggi: 56
Iscritto il: mer 05 ott , 2011 2:14 pm

Ciao,
no scusate mi sto perdendo...
Ho un modulo con 4 porte switch collegato al router.
Da profano mi aspetto che se configuro un pool dhcp sul router e collego un pc ad una delle 4 porte questo prenda un indirizzo ip. Ma a quanto ho capito così non è perché devo modificare la configurazione fare un bridge, giusto ?
Detto questo il mio presupposto che le 4 porte switch funzionino come se vi fosse uno switch in trunk collegato al router direi che è sbagliato, corretto?
Detto questo per far si che le 4 porte switch funzionino come se avessi collegato uno switch al router cosa devo fare? Un bridge? Se si avete qualche info o guida a cui possa rifarmi?
Grazie!
paolomat75
Messianic Network master
Messaggi: 2965
Iscritto il: ven 29 gen , 2010 10:25 am
Località: Prov di GE

Come ti ha suggerito lorbellu, hai 2 possibilità, quella con il bridge se vuoi usare la f0/0, oppure non usare la f0/0 e mettere l'IP sulla VLAN 1 (cosa più semplice). Non ho guide sotto mano, ma la seconda opzione è molto semplice.

Paolo
Non cade foglia che l'inconscio non voglia (S.B.)
ottobrerosso
Cisco fan
Messaggi: 56
Iscritto il: mer 05 ott , 2011 2:14 pm

Ciao,
mi sa che comunque ho sbagliato qualcosa...

Codice: Seleziona tutto

R1841#sh running-config
Building configuration...

Current configuration : 2001 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1841
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 10.135.100.254
ip dhcp excluded-address 10.135.100.253
!
ip dhcp pool Campus
   network 10.135.100.0 255.255.255.0
   default-router 10.135.100.254
   dns-server 8.8.8.8 8.8.4.4
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
vpdn enable
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 10.135.100.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 ip tcp adjust-mss 1410
 no ip mroute-cache
 speed 100
 full-duplex
 no cdp enable
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1/0
 duplex full
 speed 100
!
interface FastEthernet0/1/1
!
interface FastEthernet0/1/2
!
interface FastEthernet0/1/3
!
interface ATM0/0/0
 no ip address
 no ip route-cache cef
 no ip route-cache
 no ip mroute-cache
 atm restart timer 300
 no atm ilmi-keepalive
 atm pppatm link reset
 bundle-enable
 dsl operating-mode auto
 hold-queue 224 in
!
interface ATM0/0/0.1 point-to-point
 no ip route-cache
 pvc 8/35
  pppoe-client dial-pool-number 1
 !
!
interface Vlan1
 description Interface VLAN1
 ip address 10.10.10.1 255.255.255.0
 ip helper-address 10.135.100.254
!
interface Dialer0
 ip address negotiated
 no ip proxy-arp
 ip nat outside
 ip virtual-reassembly
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp authentication pap callin
 ppp pap sent-username User password 0 pwd
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
!
!
ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer0 overload
!
access-list 1 permit 10.0.0.0 0.255.255.255
dialer-list 1 protocol ip permit
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
scheduler allocate 20000 1000
end

R1841#

Grazie come sempre!
paolomat75
Messianic Network master
Messaggi: 2965
Iscritto il: ven 29 gen , 2010 10:25 am
Località: Prov di GE

Non hai fatto nessuna delle 2 opzioni.
Leva l'IP dalla Fastethernet0/0, metti quel IP sulla VLAN 1.

Ciao
Non cade foglia che l'inconscio non voglia (S.B.)
ottobrerosso
Cisco fan
Messaggi: 56
Iscritto il: mer 05 ott , 2011 2:14 pm

Ciao,
forse ce l'ho fatta, ecco qua la nuova configurazione:

Codice: Seleziona tutto

R1841#show running-config
Building configuration...

Current configuration : 2220 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1841
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
ip cef
!
!
no ip dhcp use vrf connected
ip dhcp excluded-address 10.135.100.254
ip dhcp excluded-address 10.135.100.253
ip dhcp excluded-address 10.10.10.1
!
ip dhcp pool Campus
   network 10.135.100.0 255.255.255.0
   default-router 10.135.100.254
   dns-server 8.8.8.8 8.8.4.4
!
ip dhcp pool VLAN1
   network 10.10.10.0 255.255.255.0
   default-router 10.135.100.254
   dns-server 8.8.8.8 8.8.4.4
   lease 0 6
!
!
ip auth-proxy max-nodata-conns 3
ip admission max-nodata-conns 3
vpdn enable
!
!
!
!
!
!
!
!
!
!
interface FastEthernet0/0
 ip address 10.135.100.254 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 ip tcp adjust-mss 1410
 no ip mroute-cache
 speed 100
 full-duplex
 no cdp enable
!
interface FastEthernet0/1
 no ip address
 shutdown
 duplex auto
 speed auto
!
interface FastEthernet0/1/0
 duplex full
 speed 100
!
interface FastEthernet0/1/1
!
interface FastEthernet0/1/2
!
interface FastEthernet0/1/3
!
interface ATM0/0/0
 no ip address
 no ip route-cache cef
 no ip route-cache
 no ip mroute-cache
 atm restart timer 300
 no atm ilmi-keepalive
 atm pppatm link reset
 bundle-enable
 dsl operating-mode auto
 hold-queue 224 in
!
interface ATM0/0/0.1 point-to-point
 no ip route-cache
 pvc 8/35
  pppoe-client dial-pool-number 1
 !
!
interface Vlan1
 description Interface VLAN1
 ip address 10.10.10.1 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 ip tcp adjust-mss 1410
 no ip mroute-cache
!
interface Dialer0
 ip address negotiated
 no ip proxy-arp
 ip nat outside
 ip virtual-reassembly
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp authentication pap callin
 ppp pap sent-username User password 0 pwd
!
ip forward-protocol nd
ip route 0.0.0.0 0.0.0.0 Dialer0
!
!
ip http server
no ip http secure-server
ip nat inside source list 1 interface Dialer0 overload
!
access-list 1 permit 10.0.0.0 0.255.255.255
dialer-list 1 protocol ip permit
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line vty 0 4
 login
!
scheduler allocate 20000 1000
end

R1841#


R1841#sh ip int brief
Interface                  IP-Address      OK? Method Status                Protocol
FastEthernet0/0            10.135.100.254  YES NVRAM  up                    up
FastEthernet0/1            unassigned      YES NVRAM  administratively down down
FastEthernet0/1/0          unassigned      YES unset  up                    up
FastEthernet0/1/1          unassigned      YES unset  up                    down
FastEthernet0/1/2          unassigned      YES unset  up                    down
FastEthernet0/1/3          unassigned      YES unset  up                    down
ATM0/0/0                   unassigned      YES NVRAM  up                    up
ATM0/0/0.1                 unassigned      YES unset  up                    up
Vlan1                      10.10.10.1      YES NVRAM  up                    up
NVI0                       unassigned      NO  unset  up                    up
Virtual-Access1            unassigned      YES unset  up                    up
Dialer0                    87.5.140.141    YES IPCP   up                    up
R1841#


R1841#sh ip dhcp binding
Bindings from all pools not associated with VRF:
IP address          Client-ID/              Lease expiration        Type
                    Hardware address/
                    User name
10.10.10.2          0178.24af.889c.a8       Jan 01 1970 06:18 AM    Automatic
10.135.100.1        0178.24af.889c.a8       Jan 02 1970 12:11 AM    Automatic
R1841#


Manca qualcosa secondo voi? Devo fare altro?
Grazie!
Rispondi