Besoin d'aide configuration cisco 1921 pour liaison internet
sylvain91700
-
brupala Messages postés 111157 Date d'inscription Statut Membre Dernière intervention -
brupala Messages postés 111157 Date d'inscription Statut Membre Dernière intervention -
Bonjour à tous,
Je n'arrive pas à configurer correctement mon routeur cisco 1921 pour accéder à internet.
Voici les infos que mon fournisseur d'accès m'a transmis :
Customer range : 62.23.135.184 - 62.23.135.191
Network Address : 62.23.135.184
Broadcast Address : 62.23.135.191
Sub-net Mask : 255.255.255.248
Gateway Address : 62.23.135.185
Voici mon fichier de conf :
!
! Last configuration change at 13:33:39 UTC Mon Jun 2 2014 by admin
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Cisco-1921
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$SVMV$B6sbkzqhTdGkXI.gPfgwL1
!
aaa new-model
!
!
aaa authentication login default local
!
!
!
!
!
aaa session-id common
!
!
!
!
ip dhcp excluded-address 10.0.0.1 10.0.2.0
!
ip dhcp pool externe
network 10.0.0.0 255.255.0.0
default-router 10.0.0.1
dns-server 8.8.8.8
!
!
!
no ip domain lookup
ip domain name testwifi.fr
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
!
!
license udi pid CISCO1921/K9 sn FCZ1813C3KQ
!
!
username admin privilege 15 secret 5 $1$J60S$hS.R7dakAZ996ChIVIHNX0
!
redundancy
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/1
ip address 10.0.0.1 255.255.0.0
no shutdown
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/0
ip address 62.23.135.184 255.255.255.248
no shutdown
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/1/0
no ip address
!
interface GigabitEthernet0/1/1
no ip address
!
interface GigabitEthernet0/1/2
no ip address
!
interface GigabitEthernet0/1/3
no ip address
!
interface Vlan1
no ip address
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 1 interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 62.23.135.185
!
!
!
access-list 1 permit 10.0.0.0 0.0.255.255
!
!
!
control-plane
!
!
!
line con 0
privilege level 15
logging synchronous
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
privilege level 15
logging synchronous
transport input all
!
scheduler allocate 20000 1000
!
end
Merci d'avance de votre aide
Je n'arrive pas à configurer correctement mon routeur cisco 1921 pour accéder à internet.
Voici les infos que mon fournisseur d'accès m'a transmis :
Customer range : 62.23.135.184 - 62.23.135.191
Network Address : 62.23.135.184
Broadcast Address : 62.23.135.191
Sub-net Mask : 255.255.255.248
Gateway Address : 62.23.135.185
Voici mon fichier de conf :
!
! Last configuration change at 13:33:39 UTC Mon Jun 2 2014 by admin
!
version 15.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Cisco-1921
!
boot-start-marker
boot-end-marker
!
!
enable secret 5 $1$SVMV$B6sbkzqhTdGkXI.gPfgwL1
!
aaa new-model
!
!
aaa authentication login default local
!
!
!
!
!
aaa session-id common
!
!
!
!
ip dhcp excluded-address 10.0.0.1 10.0.2.0
!
ip dhcp pool externe
network 10.0.0.0 255.255.0.0
default-router 10.0.0.1
dns-server 8.8.8.8
!
!
!
no ip domain lookup
ip domain name testwifi.fr
ip cef
no ipv6 cef
multilink bundle-name authenticated
!
!
!
license udi pid CISCO1921/K9 sn FCZ1813C3KQ
!
!
username admin privilege 15 secret 5 $1$J60S$hS.R7dakAZ996ChIVIHNX0
!
redundancy
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/1
ip address 10.0.0.1 255.255.0.0
no shutdown
ip nat inside
duplex auto
speed auto
!
interface GigabitEthernet0/0
ip address 62.23.135.184 255.255.255.248
no shutdown
ip nat outside
duplex auto
speed auto
!
interface GigabitEthernet0/1/0
no ip address
!
interface GigabitEthernet0/1/1
no ip address
!
interface GigabitEthernet0/1/2
no ip address
!
interface GigabitEthernet0/1/3
no ip address
!
interface Vlan1
no ip address
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip nat inside source list 1 interface GigabitEthernet0/1 overload
ip route 0.0.0.0 0.0.0.0 62.23.135.185
!
!
!
access-list 1 permit 10.0.0.0 0.0.255.255
!
!
!
control-plane
!
!
!
line con 0
privilege level 15
logging synchronous
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
privilege level 15
logging synchronous
transport input all
!
scheduler allocate 20000 1000
!
end
Merci d'avance de votre aide
1 réponse
-
Salut
interface GigabitEthernet0/0
ip address 62.23.135.184 255.255.255.248
no shutdown
ip nat outside
duplex auto
speed auto
Mets plutôt 62.23.135.186
184, c'est le numéro de ton réseau IP,
sur le bloc de 8 adresses fourni par le FAI, tu n'en as que 5 d'utilisables:
DE .186 à .190
-
-
bon c'est bon y'avait une erreur dans la ligne ip natinside, ça pointait pas sur le bon port...
maintenant ça marche!- Effectivement,
il fallait 0/0 dedans .
Mais là tu gaspilles 4 adresses IP, c'est dommage.
tu devrais au moins faire le nat sur le pool 62.23.135.186 à 62.23.135.190
ip nat pool toto.....
-