Mi date una mano a far uscire il router ???

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

Moderatore: Federico.Lagni

DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

Ciao a tutti
come immaginate non so nulla di configurazioni ios
ho pescato di qua e di la per poter mettere 2-3 cosine nel router.
Adesso lo vedo in lan ma non riesco a pingare un ip del messagenet.

Il router e collegato ad un altro router che mi fa la conessione internet.
Quello lo messo come gateway (192.168.0.1)

Vi posto la configuratione forse qualcuno vede qualcosa che non va.

Codice: Seleziona tutto

version 12.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname routervoip
!
boot-start-marker
boot system flash flashimage
boot system flash c1700-ipvoice-mz.123-4.T3.bin
boot-end-marker
!
enable password xxxxxxx
!
memory-size iomem 15
clock timezone CET 1
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 2
!
no aaa new-model
ip subnet-zero
!
!
!
!
ip cef
no ip domain lookup
ip name-server 195.110.128.1     >>>sono i dns del provider adsl
ip name-server 212.48.4.11      
!
!
voice call send-alert
voice call disc-pi-off
voice call debug short-header
voice rtp send-recv
voice dsp release early
!
!
voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g729r8
!
!
!
!
!
!
gw-accounting aaa
!
!
!
!
interface Ethernet0/0
 no ip address
 shutdown
 half-duplex
!
interface FastEthernet0/0
 description connected to EthernetLAN
 ip address 192.168.0.200 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 speed auto
!
interface Dialer0
 ip address negotiated
 ip nat outside
 ip virtual-reassembly
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp authentication chap pap callin
 ppp ipcp dns request
 ppp ipcp wins request
 hold-queue 224 in
!
router rip
 version 2
 network 192.168.0.0
 no auto-summary
!
ip default-gateway 192.168.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 Dialer0
ip http server
!
ip nat service sip udp port 5061
!
!
snmp-server community public RO
snmp-server community routv RO
snmp-server enable traps tty
!
!
control-plane
!
!
voice-port 2/0
 cptone IT
 timeouts interdigit 20
!
voice-port 2/1
!
!
!
!
!
dial-peer voice 1 voip
 destination-pattern .T
 session protocol sipv2
 session target sip-server
 session transport udp
 dtmf-relay sip-notify
!
dial-peer voice 2 pots
 destination-pattern 5308xxx
 port 2/1
!
sip-ua
 authentication username 5308xxx password 070D28xxx1C16
 retry invite 4
 retry response 3
 retry bye 2
 retry cancel 2
 registrar ipv4:212.97.59.76:5061 expires 3600
 sip-server ipv4:212.97.59.76:5061
!
banner motd ^Codt
_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/


       ////////////   //////////   ////    //// ////////////////////////////
      ////     ///  ////    ////  ////    ////       ////
     ////     ///  ////    ////  ////    ////       //// \\\\          ////
    ////////////  ////    ////  ////    ////       ////   \\\\        ////
   ///////       ////    ////  ////    ////       ////     \\\\      ////
  ////  ///     ////    ////  ////    ////       ////       \\\\    ////
 ////    ///   ////    ////  ////    ////       ////         \\\\  ////
////     ///   //////////   ////////////       ////           \\\\////


_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/^C
!
line con 0
 exec-timeout 0 0
 password xxxxxx
 login
 speed 115200
line aux 0
line vty 0 1
 exec-timeout 0 0
 password xxxxxx
 login
line vty 2 4
 exec-timeout 0 0
 login
!
sntp server 193.204.114.232
end

Grazie del aiuto
Denis
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

Una cosina ... o capito (finalmante) come si mettono i parametri nella configurazione ...
Ma come e che si cancellano ?

Grazie ancora
Denis
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

Ma interface Dialer0 a cosa serve ?
serve solo per quelli che devono accedere via isdn oppure adsl ?

... dai che fra un po finisco di fare consulente as400 e comincio a smanetare sui cosco ... si paga bene ?

Denis
Avatar utente
TheIrish
Site Admin
Messaggi: 1840
Iscritto il: dom 14 mar , 2004 11:26 pm
Località: Udine
Contatta:

Calma calma, che router? chi collegato a cosa?
Le interfacce dialer servono per il protocollo PPP, supportando così tutte le features di autenticazione e blah blah. Possono in oltre, ove necessario, lanciare la composizione di un numero telefonico.
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

Si ... mi sa che per la mia config non serve.
Nel senso, il mio router (1751) si deve collegare ad internet tramite la fastethernet0 ed andare nel altro router zyxel che si collega ad internet.

Quindi a me serve una semplice conessione del router tramite il gateway 192.168.0.1 che e il zyxel.

In tanto ho cancellato dalla conf il Dialer0.
Il resto e cosi:

Codice: Seleziona tutto

version 12.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname routervoip
!
boot-start-marker
boot system flash flashimage
boot system flash c1700-ipvoice-mz.123-4.T3.bin
boot-end-marker
!
enable password xxxxx
!
memory-size iomem 15
clock timezone CET 1
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 2
!
no aaa new-model
ip subnet-zero
!
!
!
!
ip cef
no ip domain lookup
ip name-server 195.110.128.1
ip name-server 212.48.4.11
!
!
voice call send-alert
voice call disc-pi-off
voice call debug short-header
voice rtp send-recv
voice dsp release early
!
!
voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g729r8
!
!
!
!
gw-accounting aaa
!
!
!
!
interface Ethernet0/0
 no ip address
 shutdown
 half-duplex
!
interface FastEthernet0/0
 description connected to EthernetLAN
 ip address 192.168.0.200 255.255.255.0
 ip nat inside
 ip virtual-reassembly
 speed auto
!
router rip
 version 2
 network 192.168.0.0
 no auto-summary
!
ip default-gateway 192.168.0.1
ip classless
ip http server
!
ip nat service sip udp port 5061
!
!
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
dialer-list 1 protocol ip permit
snmp-server community public RO
snmp-server community routv RO
snmp-server community DENIS RW
snmp-server enable traps tty
!
!
control-plane
!
!
voice-port 2/0
 cptone IT
 timeouts interdigit 20
!
voice-port 2/1
!
!
dial-peer voice 1 voip
 destination-pattern .T
 session protocol sipv2
 session target sip-server
 session transport udp
 dtmf-relay sip-notify
!
dial-peer voice 2 pots
 destination-pattern xxxxxxx
 port 2/1
!
sip-ua
 authentication username xxxxxxx password xxxxxxx
 retry invite 4
 retry response 3
 retry bye 2
 retry cancel 2
 registrar ipv4:212.97.59.76:5061 expires 3600
 sip-server ipv4:212.97.59.76:5061
!
!
line con 0
 exec-timeout 0 0
 password xxxxxxx
 login
 speed 115200
line aux 0
line vty 0 1
 exec-timeout 0 0
 password xxxxxxxx
 login
line vty 2 4
 exec-timeout 0 0
 login
!
sntp server 193.204.114.232
end
Prego aiuto ... e dalle 11 che li sto sopra per fare una telefonata...

Grazie
Denis
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

Certo che e proprio stronzo sto router ...
Si vede nella mia conf. ip default-gateway 192.168.0.1
... ma non lo capisce mica.

Codice: Seleziona tutto

routervoip#sh ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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.0.0/24 is directly connected, FastEthernet0/0
... ma ci sono arrivato facendo:

Codice: Seleziona tutto


routervoip#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
routervoip(config)#ip route 0.0.0.0 0.0.0.0 192.168.0.1
routervoip(config)#^Z
routervoip#wr
Building configuration...
[OK]
routervoip#sh ip route
Codes: C - connected, S - static, 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
       i - IS-IS, su - IS-IS summary, 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 192.168.0.1 to network 0.0.0.0

C    192.168.0.0/24 is directly connected, FastEthernet0/0
S*   0.0.0.0/0 [1/0] via 192.168.0.1
routervoip#

... mah ... non voglio capire perhe ... ma e 'na caxxata.

Denis
Avatar utente
TheIrish
Site Admin
Messaggi: 1840
Iscritto il: dom 14 mar , 2004 11:26 pm
Località: Udine
Contatta:

Ip default gateway va usato solamente quando l'ip routing è disabilitato (es: rommon). Nel resto dei casi, si utilizza ip route esattamente come hai fatto tu. Scusa se non ho risposto prima.
Ultima modifica di TheIrish il sab 08 ott , 2005 10:06 am, modificato 1 volta in totale.
Avatar utente
andrewp
Messianic Network master
Messaggi: 2199
Iscritto il: lun 13 giu , 2005 7:32 pm
Località: Roma

Denis, questo non è un bar.
Manipolatore di bit.
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

SithDrew: ... non capisco la batuta
... ma scusami

TheIrish: grazie della conferma.
Una cosa chiedo ... dovrebbe essere lo stesso anche per i dns ?
Perche se pingo il nome dns di un sito non mi va.
Esce solo se li do l'ip

Grazie ancora
Denis
Avatar utente
andrewp
Messianic Network master
Messaggi: 2199
Iscritto il: lun 13 giu , 2005 7:32 pm
Località: Roma

Non è una battuta, ti invitavo ad utilizzare parolaccie e commenti in un luogo diverso da questo forum.
Manipolatore di bit.
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

Se caxxata e una parolaccia, non lo sapevo.
Pensavo forse una cosa come caxxarola.
... e pi ho meso le x.
Cosa devo usare ? cavolo va bene ?

Denis
Avatar utente
andrewp
Messianic Network master
Messaggi: 2199
Iscritto il: lun 13 giu , 2005 7:32 pm
Località: Roma

DenisJ ha scritto:Certo che e proprio stronzo sto router ...

... mah ... non voglio capire perhe ... ma e 'na caxxata.
Ora, perfavore, terminiamo l' OT.


Dimmi l'architettura di rete e vediamo come risolvere.
Manipolatore di bit.
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

Grazie bello (be... fai finta che non guardo la foto ;-)

Ti spiego... il mio router (1751) non ha la sch. adsl e quindi si collega tramite un altro router che fa da gateway (192.168.0.1).

Sono riuscito a risolvere il fatto che il cisco mi esca su internet tramite il gateway.
Ma non mi risolve ancora i dns.
I dns del provider adsl sono : 195.110.128.1 e 212.48.4.11

E li ho inseriti... non so se nel punto giusto.

Codice: Seleziona tutto

version 12.3
service timestamps debug uptime
service timestamps log uptime
no service password-encryption
!
hostname routervoip
!
boot-start-marker
boot system flash flashimage
boot system flash c1700-ipvoice-mz.123-4.T3.bin
boot-end-marker
!
no logging buffered
enable password xxxxxxx
!
memory-size iomem 15
clock timezone CET 1
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
voice-card 2
!
no aaa new-model
ip subnet-zero
!
!
!
!
ip cef
no ip domain lookup
ip name-server 195.110.128.1
ip name-server 212.48.4.11
!
!
voice call send-alert
voice call disc-pi-off
voice call debug short-header
voice rtp send-recv
voice dsp release early
!
!
voice class codec 1
 codec preference 1 g711alaw
 codec preference 2 g729r8
!
gw-accounting aaa
!
!
!
!
interface Ethernet0/0
 no ip address
 shutdown
 half-duplex
!
interface FastEthernet0/0
 description connected to EthernetLAN
 ip address 192.168.0.200 255.255.255.0
 ip access-group 101 out
 ip nat outside
 ip virtual-reassembly
 speed auto
!
router rip
 version 2
 network 192.168.0.0
 no auto-summary
!
ip default-gateway 192.168.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 192.168.0.1
ip http server
!
ip nat service sip udp port 5061
!
!
access-list 1 permit 192.168.0.0 0.0.0.255
access-list 101 permit ip any any
snmp-server community DENIS RW
snmp-server enable traps tty
!
!
control-plane
!
voice-port 2/0
 cptone IT
 timeouts interdigit 3
 caller-id enable
!
voice-port 2/1
!
!
!
!
!
dial-peer voice 1 voip
 destination-pattern .T
 voice-class codec 1
 session protocol sipv2
 session target sip-server
 session transport udp
 dtmf-relay sip-notify
!
dial-peer voice 2 pots
 destination-pattern xxx
 port 2/0
!
sip-ua
 authentication username xxx password xxx
 retry invite 4
 retry response 3
 retry bye 2
 retry cancel 2
 registrar ipv4:212.97.59.76:5061 expires 3600
 sip-server ipv4:212.97.59.76:5061
!
!
line con 0
 exec-timeout 0 0
 speed 115200
line aux 0
line vty 0 1
 exec-timeout 0 0
 password xxx
 login
line vty 2 4
 exec-timeout 0 0
 login
!
sntp server 193.204.114.232
end
Grazie del aiuto
Denis

P.S. se nel caso... sai perche riesco a chiamare via sip ma non riesco a ricevere ?
Avatar utente
TheIrish
Site Admin
Messaggi: 1840
Iscritto il: dom 14 mar , 2004 11:26 pm
Località: Udine
Contatta:

Cosa intendi con il fatto che non te li risolve? il router li risolve o no?
Cioè, se dal router dai ping www.google.it , lo pinga? O sono i pc che non risolvono?
DenisJ
Cisco fan
Messaggi: 40
Iscritto il: mer 28 set , 2005 8:43 pm

E il router che non lo risolve

Codice: Seleziona tutto

routervoip#ping www.google.it

Translating "www.google.it"
% Unrecognized host or address, or protocol not running.

routervoip#ping google.it

Translating "google.it"
% Unrecognized host or address, or protocol not running.

routervoip#ping sip.messagenet.it

Translating "sip.messagenet.it"
% Unrecognized host or address, or protocol not running.

routervoip#
Non so se ho messo giusto i dns.
Secondo voi e giusto meterli con commando

Codice: Seleziona tutto

ip name-server 195.110.128.1
ip name-server 212.48.4.11
Grazie ancora

P.S. non penso comunque che sia il motivo per il quale posso solo chiamare e non essere chiamato ...
Bloccato