Configuration PPPoE dans un Routeur Cisco 2900series

Fermé
medzeinmal Messages postés 12 Date d'inscription lundi 9 mars 2015 Statut Membre Dernière intervention 17 novembre 2016 - 24 oct. 2016 à 01:09
medzeinmal Messages postés 12 Date d'inscription lundi 9 mars 2015 Statut Membre Dernière intervention 17 novembre 2016 - 6 nov. 2016 à 20:17
Bonsoir,

A. Le schéma est le suivant :
ISP(Username:1234 password:1234)------> Modem ADSL(configuré en tant que bride 192.168.99.1)------routeur Cisco 2900( (interface fa0/0) ---->(fa0/1 192.168.99.2) )------>switch------PC

B. la configuration:

1. Configuration PPPoE WAN:

Configuration de port connecté au modem (fa0/0):
Router#conf t
Router(config)#
Router(config)#interface dialer 1
Router(config-if)#ip address negotiated
Router(config-if)#encapsulation ppp
Router(config-if)#ppp authentication pap callin
Router(config-if)#ppp papsent-usernamed 1234 password 1234
Router(config-if)#ppp ipcp rout default
Router(config-if)#dialer pool 10
Router(config-if)#no shut
Router(config-if)#exit

Router(config)#int fa0/0
Router(config-if)#no ip address
Router(config-if)#pppoe enable
Router(config-if)#pppoe-client dialer-pool-number 10
Router(config-if)#no shut

je voudrai savoir si la configuration précédente est correcte?

ci-après la configuration des DHCP, NAT et ROUTE
cordialement.

2. IP address for LAN:
Router#configure terminal
Router(config)#interface g0/1
Router(config-if)#ip address 192.168.99.2 255.255.255.0
Router(config-if)#no shutdown
3. DHCP:
Router#configure terminal
Router(config)#dhcp excluded-address 192.168.99.1 192.168.99.30 (on a exclus la plage de 1 a 30)
Router(config-if)#dhcp pool ?
WORD Pool name
Router(config)#ip dhcp pool LAN (Le nom du pool est LAN)
Router(dhcp-config)#network 192.168.99.0 255.255.255.0
Router(dhcp-config)#default-router 192.168.99.1
Router(dhcp-config)#dns-server 202.131.80.1 202.131.80.5
Router(dhcp-config)#end

Router#show running-config
Disable and enable the network card for the PC it should be:

4. NAT:
Router#configure terminal
Router(config)#access-list 1 permit 192.168.99.0 0.0.0.255
Router(config)#ip nat inside source list 1 interface g0/0 (cette commande indique qu’au n a utilisé le Nat dynamique)
----LAN interface (Nat inside)----------- and ----WAN interface (Nat outside)-----------
Router#configure terminal
Router(config)#interface g0/1
Router(config-if)#ip nat inside
Router(config-if)#exit

Router#configure terminal
Router(config)#interface g0/0
Router(config-if)#ip nat outside
Router(config-if)#end

Router#show running-config

5. Route
Router#configure terminal
Router(config)#ip routr 0.0.0.0 0.0.0.0 192.168.99.1
Router(config)#end
Router#show running-config


merci de m'aider a arriver a avoir Internet sur mon réseau
cordialement.
A voir également:

1 réponse

brupala Messages postés 109405 Date d'inscription lundi 16 juillet 2001 Statut Membre Dernière intervention 18 avril 2024 13 617
Modifié par brupala le 24/10/2016 à 10:03
Salut,
Pas tout regardé, mais déjà la route par défaut n'est pas bonne:
Il faudrait
Ip route 0.0.0.0 0.0.0 int dialer 1
Et le nat outside sur dialer 1aussi pas sur gi 0/0

et ... Voili  Voilou  Voila !
0
medzeinmal Messages postés 12 Date d'inscription lundi 9 mars 2015 Statut Membre Dernière intervention 17 novembre 2016
5 nov. 2016 à 20:31
Bonsoir,
j'ai chargé le code suivant dans le routeur Cisco 2900:

---------------Show Run---------------------------
Router>en
Router#
Router#show run
Building configuration...

Current configuration : 1584 bytes
!
! No configuration change since last restart
version 15.1
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
!
!
no aaa new-model
!
no ipv6 cef
ip source-route
ip cef
!
!
!
ip dhcp excluded-address 192.168.1.1 192.168.1.30
!
ip dhcp pool LAN
network 192.168.1.0 255.255.255.0
default-router 192.168.1.1
dns-server 82.151.90.43
!
!
multilink bundle-name authenticated
!
!
crypto pki token default removal timeout 0
!
!
license udi pid CISCO2901/K9 sn FCZ1644927L
!
!
!
!
!
!
!
!
interface Embedded-Service-Engine0/0
no ip address
shutdown
!
interface GigabitEthernet0/0
no ip address
duplex auto
speed auto
pppoe enable group global
pppoe-client dial-pool-number 10
!
interface GigabitEthernet0/1
ip address 192.168.1.1 255.255.255.0
ip nat inside
ip virtual-reassembly in
duplex auto
speed auto
!
interface Dialer1
ip address negotiated
ip nat outside
ip virtual-reassembly in
encapsulation ppp
dialer pool 10
ppp authentication pap callin
ppp pap sent-username 1234 password 0 1234
ppp ipcp route default
!
ip forward-protocol nd
!
no ip http server
no ip http secure-server
!
ip route 0.0.0.0 0.0.0.0 Dialer1
!
access-list 1 permit 192.168.1.0 0.0.0.255
!
!
!
control-plane
!
!
!
line con 0
line aux 0
line 2
no activation-character
no exec
transport preferred none
transport input all
transport output pad telnet rlogin lapb-ta mop udptn v120 ssh
stopbits 1
line vty 0 4
login
transport input all
!
scheduler allocate 20000 1000
end

Router#

Nov 5 18:07:43.671: %DIALER-6-BIND: Interface Vi2 bound to profile Di1
Nov 5 18:07:43.679: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up
Nov 5 18:07:46.751: %DIALER-6-UNBIND: Interface Vi2 unbound from profile Di1
Nov 5 18:07:46.755: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to down
Nov 5 18:08:09.011: %DIALER-6-BIND: Interface Vi2 bound to profile Di1
Nov 5 18:08:09.015: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to up
Nov 5 18:08:12.095: %DIALER-6-UNBIND: Interface Vi2 unbound from profile Di1
Nov 5 18:08:12.099: %LINK-3-UPDOWN: Interface Virtual-Access2, changed state to down
Router#

-------------------------------Fin Show run----------------------

après avoir connecté mon portable au interface G0/1, le portable recevra une adresse ip du routeur, mais pas d'internet sur le portable.
0
brupala Messages postés 109405 Date d'inscription lundi 16 juillet 2001 Statut Membre Dernière intervention 18 avril 2024 13 617 > medzeinmal Messages postés 12 Date d'inscription lundi 9 mars 2015 Statut Membre Dernière intervention 17 novembre 2016
5 nov. 2016 à 22:49
Salut,
Il faudrait continuer avec des debug:
Debug ppp auth
Debug ppp neg
Debug ppp packet
0
medzeinmal Messages postés 12 Date d'inscription lundi 9 mars 2015 Statut Membre Dernière intervention 17 novembre 2016 > brupala Messages postés 109405 Date d'inscription lundi 16 juillet 2001 Statut Membre Dernière intervention 18 avril 2024
6 nov. 2016 à 10:55
Salut
Pour quoi avec de debug, mon routeur est connectè au ISP via un modem, est cette connection marche très bien.
Merci
0
brupala Messages postés 109405 Date d'inscription lundi 16 juillet 2001 Statut Membre Dernière intervention 18 avril 2024 13 617 > medzeinmal Messages postés 12 Date d'inscription lundi 9 mars 2015 Statut Membre Dernière intervention 17 novembre 2016
6 nov. 2016 à 12:20
C'est pas me modem qui gère le ppp.
0
medzeinmal Messages postés 12 Date d'inscription lundi 9 mars 2015 Statut Membre Dernière intervention 17 novembre 2016 > brupala Messages postés 109405 Date d'inscription lundi 16 juillet 2001 Statut Membre Dernière intervention 18 avril 2024
6 nov. 2016 à 13:15
Non c'est ne pas le modem qui gère le ppp, le modem est just en mode bridge, et donc vous ne constatez pas de problème au niveau de la config du routeur?
0