miércoles, 23 de octubre de 2013

Configuración Cisco PPP y CHAP

Configuración Cisco PPP y CHAP


Escenario


Se realizara la configuración de pc y equipos cisco, en una topología punto a punto, se empleará encapsulación PPP y autenticación CHAP



Configuración Cisco PPP y CHAP



  • PC1 --> 192.168.1.100 / 255.255.255.0, gateway 192.168.1.1
  • Router1 --> G0/0 192.168.1.1 / 255.255.255.0, S0/0/0 200.200.200.1 / 255.255.255.252 



  • PC2 --> 192.168.2.100 / 255.255.255.0, gateway 192.168.2.1
  • Router2 --> G0/0 192.168.2.1 / 255.255.255.0, S0/0/0 200.200.200.2 / 255.255.255.252



  • Router1 y Router2, encapsulación PPP
  • Password protocolo autenticación  CHAP "cisco"



Desarrollo

1. Uso de Cisco Packet Tracer para realizar las pruebas.
2. Configuración de PC1 y PC2 con sus respectivas direcciones IP y gateway.
3. Configuración de Router1 como sigue:
hostname Router1
!
username Router2 password 0 cisco

!
interface GigabitEthernet0/0
 ip address 192.168.1.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 200.200.200.1 255.255.255.252
 mtu 150
 encapsulation ppp
 ppp authentication chap
!
interface Serial0/0/1
 no ip address
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 192.168.2.0 255.255.255.0 Serial0/0/0 
!

line con 0
!
line aux 0
!
line vty 0 4
 login
!
end

Router1#


4. Configuración de Router2 como sigue:

hostname Router2
!
username Router1 password 0 cisco
!
interface GigabitEthernet0/0
 ip address 192.168.2.1 255.255.255.0
 duplex auto
 speed auto
!
interface GigabitEthernet0/1
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface GigabitEthernet0/2
 no ip address
 duplex auto
 speed auto
 shutdown
!
interface Serial0/0/0
 ip address 200.200.200.2 255.255.255.252
 encapsulation ppp
 ppp authentication chap
!
interface Serial0/0/1
 no ip address
 shutdown
!
interface Vlan1
 no ip address
 shutdown
!
ip classless
ip route 192.168.1.0 255.255.255.0 Serial0/0/0 
!
line con 0
!
line aux 0
!
line vty 0 4
 login
!
end


Router2#


Prueba de comunicación

1. Pruebas de vecindad entre los router:

Router1#show cdp n
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID    Local Intrfce   Holdtme    Capability   Platform    Port ID
Switch       Gig 0/0          133            S       2960        Gig 1/1
Router2      Ser 0/0/0        141            R       C2900       Ser 0/0/0


Router2#show cdp n
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater, P - Phone
Device ID    Local Intrfce   Holdtme    Capability   Platform    Port ID
Switch       Gig 0/0          136            S       2960        Gig 1/1
Router1      Ser 0/0/0        149            R       C2900       Ser 0/0/0


2. Tabla de ruta

Router1#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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

     192.168.1.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.1.0/24 is directly connected, GigabitEthernet0/0
L       192.168.1.1/32 is directly connected, GigabitEthernet0/0
S    192.168.2.0/24 is directly connected, Serial0/0/0
     200.200.200.0/24 is variably subnetted, 3 subnets, 2 masks
C       200.200.200.0/30 is directly connected, Serial0/0/0
L       200.200.200.1/32 is directly connected, Serial0/0/0
C       200.200.200.2/32 is directly connected, Serial0/0/0



Router2#show ip route
Codes: L - local, 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, E - EGP
       i - IS-IS, 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

S    192.168.1.0/24 is directly connected, Serial0/0/0
     192.168.2.0/24 is variably subnetted, 2 subnets, 2 masks
C       192.168.2.0/24 is directly connected, GigabitEthernet0/0
L       192.168.2.1/32 is directly connected, GigabitEthernet0/0
     200.200.200.0/24 is variably subnetted, 3 subnets, 2 masks
C       200.200.200.0/30 is directly connected, Serial0/0/0
C       200.200.200.1/32 is directly connected, Serial0/0/0
L       200.200.200.2/32 is directly connected, Serial0/0/0


3. Pruebas de conectividad desde los pc

Ping desde PC 192.168.1.100 a 192.168.2.100


PC>ping 192.168.2.100

Pinging 192.168.2.100 with 32 bytes of data:

Reply from 192.168.2.100: bytes=32 time=1ms TTL=126
Reply from 192.168.2.100: bytes=32 time=1ms TTL=126
Reply from 192.168.2.100: bytes=32 time=1ms TTL=126
Reply from 192.168.2.100: bytes=32 time=6ms TTL=126

Ping statistics for 192.168.2.100:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:

    Minimum = 1ms, Maximum = 6ms, Average = 2ms



Ping desde PC 192.168.2.100 a 192.168.1.100

PC>ping 192.168.1.100

Pinging 192.168.1.100 with 32 bytes of data:

Reply from 192.168.1.100: bytes=32 time=2ms TTL=126
Reply from 192.168.1.100: bytes=32 time=1ms TTL=126
Reply from 192.168.1.100: bytes=32 time=1ms TTL=126
Reply from 192.168.1.100: bytes=32 time=7ms TTL=126

Ping statistics for 192.168.1.100:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:

    Minimum = 1ms, Maximum = 7ms, Average = 2ms


Aquí lo puedes ver en video


Configuracion PPP y CHAP con Cisco Packet Tracer


No hay comentarios:

Publicar un comentario