PPP CHAP PAP + Ospf
PPP CHAP PAP + Ospf
Establece,
configura, mantiene y termina una conexión punto a punto.
R1#conf t R2#conf t
R1(config)#hostname router1 R2(config)#hostname router2
router1(config)#username router2 password cisco router2(config)#username router1 password cisco
router1(config)#interface serial 2/0 router2(config)#interface serial 2/0
router1(config-if)#ip add 172.16.0.1 255.255.255.252 router2(config-if)#ip add 172.16.0.2 255.255.255.252
router1(config-if)#clock rate 64000 router2(config-if)#no shutdown
router1(config-if)#no shu router2(config-if)#encapsulation PPP
router1(config-if)#no shutdown router2(config-if)#ppp authentication chap
router1(config-if)#encapsulation PPP router2(config-if)#do ping 172.16.0.1
router1(config-if)#ppp authentication chap router2(config)#router rip
router1(config-if)#do ping 172.16.0.2 router2(config-router)#version 2
router1(config)#router rip router2(config-router)#no auto-summary
router1(config-router)#version 2 router2(config-router)#network 172.16.0.0
router1(config-router)#network 192.168.1.0 router2(config-router)#network 80.80.80.0
router1(config-router)#network 172.160.0.0 router2(config-router)#
router1(config-router)#no auto-summary show interface serial1/0
show interface serial1/0
R4#conf t R3#conf t
R4(config)#hostname router4 R3(config)#hostname router3
router4(config)#username router3 password cisco router3(config)#username router4 password cisco
router4(config)#interface s2/0 router3(config)#interface s2/0
router4(config-if)#ip add 172.16.1.1 255.255.255.252 router3(config-if)#ip add 172.16.1.2 255.255.255.252
router4(config-if)#clock rate 64000 router3(config-if)#no shutdown
router4(config-if)#no shutdown router3(config-if)#encapsulation PPP
router4(config-if)#encapsulation PPP router3(config-if)#ppp authentication pap
router4(config-if)#ppp authentication pap router3(config-if)#ppp pap sent-username router3 password cisco
router4(config-if)#ppp pap sent-username router4 password cisco router3(config-if)#do ping 172.16.1.1
router4(config-if)#do ping 172.16.1.2 router3(config)#router rip
router4(config)#router rip router3(config-router)#version 2
router4(config-router)#version 2 router3(config-router)#network 80.80.80.0
router4(config-router)#network 192.168.2.0 router3(config-router)#network 172.16.1.0
router4(config-router)#network 172.16.1.0 router3(config-router)#no auto-summary
PPPOE PPPOE
R5#
R5#conf t
R5(config)#hostname router5
router5(config)#username router2 password cisco
router5(config)#username router3 password cisco
router5(config)#ip local pool POOLparaPPPoE 172.16.2.1 172.16.2.5
router5(config)#interface virtual-template 1
router5(config-if)#ip address 172.16.2.6 255.255.255.248
router5(config-if)#mtu 1492
router5(config-if)#peer default ip address pool POOLparaPPPoE
router5(config-if)#ppp authentication chap callin
router5(config-if)#exit
router5(config)#bba-group pppoe global
router5(config-bba-group)#virtual-template 1
router5(config-bba-group)#exit
router5(config)#interface f0/0
router5(config-if)#pppoe enable group global
router5(config-if)#no shutdown
router5(config-if)#
router2# router3#
router2#conf t router3#conf t
router2(config)#interface f0/0 router3(config)#interface f0/0
router2(config-if)#pppoe enable router3(config-if)#pppoe enable
router2(config-if)#pppoe-client dial-pool-number 1 router3(config-if)#pppoe-client dial-pool-number 1
router2(config-if)#exit router3(config-if)#exit
router2(config)#interface dialer 1 router3(config)#interface dialer 2
router2(config-if)#mtu 1492 router3(config-if)#mtu 1492
router2(config-if)#ip address negotiated router3(config-if)#ip address negotiated
router2(config-if)#encapsulation ppp router3(config-if)#encapsulation ppp
router2(config-if)#dialer pool 1 router3(config-if)#dialer pool 1
router2(config-if)#ppp authentication chap callin router3(config-if)#ppp authentication chap callin
router2(config-if)#ppp chap hostname router2 router3(config-if)#ppp chap hostname router3
router2(config-if)#ppp chap password cisco router3(config-if)#ppp chap password cisco
router2(config-if)#exit router3(config-if)#exit
router2(config)#ip route 0.0.0.0 0.0.0.0 dialer 1 router3(config)#ip route 0.0.0.0 0.0.0.0 dialer 2
router2(config)#exit router3(config)#exit
router2#debug ppp authentication router3#debug ppp authentication
router2#debug pppoe events router3#debug pppoe events
router2(config)#interface f0/0 router3(config)#interface f0/0
router2(config-if)#no shutdown router3(config-if)#no shutdown
router2# router3#