12 avr. 2013

Cisco: PPP

Le but ici est d'etablir une connection entre deux hotes via PPP (Point to Point Protocol) et de s'echanger les informations de routage via OSPF.

Fichier a telecharger: ppp_clean.pkt
Logiciel: packet tracer



1. Configurer PAP
Creer sur:
R1 HOMER password duffman
R0 LENNY password carlita



2.  Configurer CHAP
R1, R2: password nucleaire


3. Protocol de routage: OSPF
























****************************************************
Correction
****************************************************

1.- Configuration des interfaces:
`````````````````````````````
R0:
    int f0/0
        ip address 10.0.0.126 255.255.255.128
        no shutdown
        exit
   
    int s0/1/0
        ip address 1.1.1.1 255.255.255.252
        clock rate 56000
        bandwidth 56
        no shut

   
R1:
    int f0/0
        ip address 10.0.1.62 255.255.255.192
        no shutdown
        exit
   
    int s0/1/1
        ip address 1.1.1.2 255.255.255.252
        no shutdown
        bandwidth 56

   
    int s0/1/0
        ip address 1.1.1.5 255.255.255.252
        clock rate 56000
        bandwidth 56
        no shutdown

   
R2:
    int s0/1/1
        ip address 1.1.1.6 255.255.255.252
        no shutdown
        bandwidth 56
   
    int f0/0
        ip address 10.0.2.30 255.255.255.224
        no shutdown



2.- Configuration des DHCP:
`````````````````````````````
R0:
    ip dhcp pool LAN0
        network 10.0.0.0 255.255.255.128
        default-router 10.0.0.126
        dns-server 8.8.8.8
        exit
    ip dhcp excluded-address 10.0.0.126

   
R1:
    ip dhcp pool LAN1
        network 10.0.1.0 255.255.255.192
        default-router 10.0.1.62
        dns-server 8.8.8.8
        exit
    ip dhcp excluded-address 10.0.1.1 10.0.1.10

   
R2:
    ip dhcp pool LAN2
        network 10.0.2.0 255.255.255.224
        default-router 10.0.2.30
        dns-server 8.8.8.8
        exit
    ip dhcp excluded-address 10.0.2.30

   
   
3.- Mise en place de PPP et PAP entre R0 et R1:
````````````````````````````````````````````````
R0:
    int S0/1/0
        encapsulation ppp
        ppp authentication pap
        ppp pap sent-username HOMER password duffman

       
R1:
    int S0/1/1
        encapsulation ppp
        ppp authentication pap
        ppp pap sent-username LENNY password carlita

   

4.- Creation des usernames sur R0 et R1:
`````````````````````````````````````````
R0:
    username LENNY password carlita
   
R1:
    username HOMER password duffman
   

5.- Configuration de PPP CHAP entre R1 et R2:
`````````````````````````````````````````
R1:
    int s0/1/0
        encapsulation ppp
        ppp authentication chap
        exit
    hostname R1
    enable password nucleaire


NB: dans packet tracer, nous sommes obligé d'utiliser le "hostname" et le "enable password" pour l'authentification CHAP.

R2:
    int s0/1/1
        encapsulation ppp
        ppp authentication chap
        exit
    hostname R2
    enable password nucleaire

   

6.- Creation des usernames pour l'auth CHAP:
```````````````````````````````````````````````
R1:
    username R2 password nucleaire
   
R2:
    username R1 password nucleaire
   

7.- Pour vérifier PPP:
``````````````````````
 #show interface serial   
    -> affiche l'état du lien (LCP Open/Close)
        l'encapsulation, et les protocoles négociés via NCP
 # debug ppp negociation
    -> affiche en temps reel sur la ligne console la négociation du lien (échanges LCP)
 # debug ppp authentication
    -> affiche l'auth en temps reel sur la ligne console
   

R1#show int s0/1/0
Serial0/1/0 is up, line protocol is up (connected)
  Hardware is HD64570
  Internet address is 1.1.1.5/30
  MTU 1500 bytes, BW 128 Kbit, DLY 20000 usec,
     reliability 255/255, txload 1/255, rxload 1/255
  Encapsulation PPP, loopback not set, keepalive set (10 sec)
  LCP Open
  Open: IPCP, CDPCP
  <== protocol negocie via NCP


LCP Link Control Protocol
NCP Network Control Protocol


8.- Configuration d'OSPF:
```````````````````````````
R0:
    router ospf 51
        network 10.0.0.0 0.0.0.127 area 0
        networ 1.1.1.0 0.0.0.3 area 0
        passive-interface f0/0

       
R1:
    router ospf 60
        network 10.0.1.0 0.0.0.63 area 0
        network 1.1.1.0 0.0.0.3 area 0
        network 1.1.1.4 0.0.0.3 area 0
        passive-interface f0/0

       
R2:
    router ospf 74
        network 10.0.2.0 0.0.0.31 area 0
        networ 1.1.1.4 0.0.0.3 area 0
        passive-interface f0/0




 Fichier contenant la correction a telecharger: ppp_correction.pkt

Aucun commentaire:

Enregistrer un commentaire