Forse sbaglio il NAT [ RISOLTO ]

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

Moderatore: Federico.Lagni

Rispondi
bonovox38
n00b
Messaggi: 14
Iscritto il: sab 16 mag , 2009 1:18 pm

Scusate, le domande ma sono nuovo di cisco.
Questo mio router si collega, da telnet nel router naviga dal pc non esce su internet

Codice: Seleziona tutto

Router#sh run
Building configuration...

Current configuration : 3048 bytes
!
version 12.4
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no logging buffered
enable password 7 ...
!
no aaa new-model
!
resource policy
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.0.1 192.168.0.199
ip dhcp excluded-address 192.168.0.50
!
ip dhcp pool CLIENT
   import all
   network 192.168.0.0 255.255.255.0
   default-router 192.168.0.50 
   lease 0 2
!
!
ip cef
!

!
!
!
!
interface Ethernet0
 description CRWS Generated text. Please do not delete this:192.168.0.50-255.255.255.0
 ip address 192.168.0.1 255.255.255.0
 ip nat inside
 no ip mroute-cache
 hold-queue 100 out
!
interface ATM0
 no ip address
 no ip mroute-cache
 atm vc-per-vp 64
 no atm ilmi-keepalive
 dsl operating-mode ansi-dmt
 hold-queue 224 in
 pvc 8/35 
  encapsulation aal5mux ppp dialer
  dialer pool-member 1
 !        
!         
interface Dialer1
 ip address negotiated
 ip nat outside
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp authentication chap pap callin
 ppp chap hostname @virgilio.it
 ppp chap password 7 ...
 ppp pap sent-username @virgilio.it password 7 ...
 ppp ipcp dns request
 ppp ipcp wins request
!         
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
!         
ip nat inside source list 102 interface Dialer1 overload

!         
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!         
control-plane
!         
banner motd ^CC
**************************************************************** 
*--------------------------------------------------------------* 
*       ROUTER PERIMETRALE ~ {  }                       * 
*--------------------------------------------------------------* 
* WARNING: System is RESTRICTED to authorized personnel ONLY!  * 
* Unauthorized use of this system will be logged and           * 
* prosecuted to the fullest extent of the law.                 * 
*                                                              *       
* If you are NOT authorized to use this system, LOG OFF NOW!   * 
*                                                              *       
****************************************************************
^C        
!         
line con 0
 exec-timeout 120 0
 no modem enable
 stopbits 1
line aux 0
line vty 0 4
 exec-timeout 120 0
 password 7 ...
 login    
 length 0 
!         
scheduler max-task-time 5000
end       
          
Router#
Ultima modifica di bonovox38 il mer 18 nov , 2009 2:03 pm, modificato 1 volta in totale.
Avatar utente
Francesco87
Cisco fan
Messaggi: 59
Iscritto il: mar 10 apr , 2007 9:13 am
Località: Ethernet 0/0

Ma quel "default-router 192.168.0.50" nel pool dhcp è corretto considerando che la interfaccia lan del router è indirizzata 192.168.0.1?
The netmask in Cisco access lists are inverted. Nobody knows why, they just are.
bonovox38
n00b
Messaggi: 14
Iscritto il: sab 16 mag , 2009 1:18 pm

é stato variato in 1, ma non è quello il problema.
Comunque avevo assegnato ip a mano alla scheda di rete.
bonovox38
n00b
Messaggi: 14
Iscritto il: sab 16 mag , 2009 1:18 pm

Grazie per l'aiuto, anche non inserendo il dns ho visto che la configurazione ora funziona

Codice: Seleziona tutto

Building configuration...

Current configuration : 2842 bytes
!
version 12.4
no service pad
service timestamps debug uptime
service timestamps log uptime
service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
no logging buffered
enable password 7 ...
!
no aaa new-model
!
resource policy
!
no ip dhcp use vrf connected
ip dhcp excluded-address 192.168.0.1 192.168.0.199
ip dhcp excluded-address 192.168.0.205 192.168.0.255
!
ip dhcp pool CLIENT
   import all
   network 192.168.0.0 255.255.255.0
   default-router 192.168.0.1 
   lease 0 2
!
!
ip cef
!

!
!
!
!
interface Ethernet0
 description Indirizzo del router
 ip address 192.168.0.1 255.255.255.0
 ip nat inside
 no ip mroute-cache
 hold-queue 100 out
!
interface ATM0
 no ip address
 no ip mroute-cache
 atm vc-per-vp 64
 no atm ilmi-keepalive
 dsl operating-mode ansi-dmt
 hold-queue 224 in
 pvc 8/35 
  encapsulation aal5mux ppp dialer
  dialer pool-member 1
 !        
!         
interface Dialer1
 ip address negotiated
 ip nat outside
 encapsulation ppp
 dialer pool 1
 dialer-group 1
 ppp authentication chap pap callin
 ppp chap hostname @virgilio.it
 ppp chap password 7 ...
 ppp pap sent-username @virgilio.it password 7 ...
 ppp ipcp dns request
 ppp ipcp wins request
!         
ip route 0.0.0.0 0.0.0.0 Dialer1
ip http server
!         
ip nat inside source list 102 interface Dialer1 overload
!         
access-list 102 permit ip 192.168.0.0 0.0.0.255 any
dialer-list 1 protocol ip permit
!         
control-plane
!         
       
!         
line con 0
 exec-timeout 120 0
 no modem enable
 stopbits 1
line aux 0
line vty 0 4
 exec-timeout 120 0
 password 7 ...
 login    
 length 0 
!         
scheduler max-task-time 5000
end   
Rispondi