Vous êtes sur la page 1sur 4

PPP (Point to Point Protocol)

Konfigurasi Router :
Router 1 :
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R1
R1(config)#int s0/0/0
R1(config-if)#encapsulation ppp
R1(config-if)#ppp authentication chap
R1(config-if)#ip add 10.10.10.1 255.255.255.252
R1(config-if)#clock rate 128000
R1(config-if)#exit
R1(config)#username R2 password cisco
R1(config)#int s0/0/0
R1(config-if)#no shut

Router 2 :
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R2
R2(config)#username R1 password cisco
R2(config)#username R3 password cisco
R2(config)#int serial 0/0/0
R2(config-if)#ip add 10.10.10.2 255.255.255.252
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication chap
R2(config-if)#no shut
R2(config)#int serial 0/0/1
R2(config-if)#encapsulation ppp
R2(config-if)#ppp authentication pap
R2(config-if)#ppp pap sent-username R2 password cisco
R2(config-if)#ip add 10.10.10.5 255.255.255.252
R2(config-if)#clock rate 128000
R2(config-if)#no shut

Router 3 :
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hostname R3
R3(config)#username R2 password cisco
R3(config)#int serial 0/0/1
R3(config-if)#ip add 10.10.10.6 255.255.255.252
R3(config-if)#encapsulation ppp
R3(config-if)#ppp authentication pap
R3(config-if)#ppp pap sent-username R3 password cisco
R3(config-if)#no shut

Konfigurasi routing protocol (OSPF)


Router 1 :
R1(config)#router ospf 10
R1(config-router)#network 10.10.10.0 0.0.0.3 area 0

Router 2 :
R2(config)#router ospf 20
R2(config-router)#network 10.10.10.0 0.0.0.3 area 0
R2(config-router)#network 10.10.10.4 0.0.0.3 area 0

Router 3 :
R3(config)#router ospf 30
R3(config-router)#network 10.10.10.4 0.0.0.3 area 0

Tabel routing setiap router


Router 1:
R1#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

10.0.0.0/30 is subnetted, 2 subnets


C 10.10.10.0 is directly connected, Serial0/0/0
O 10.10.10.4 [110/128] via 10.10.10.2, 00:01:22, Serial0/0/0

Router 2 :
R2#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

10.0.0.0/30 is subnetted, 2 subnets


C 10.10.10.0 is directly connected, Serial0/0/0
C 10.10.10.4 is directly connected, Serial0/0/1

Router 3 :
R3#sh ip route
Codes: C - connected, S - static, I - IGRP, 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

10.0.0.0/30 is subnetted, 2 subnets


O 10.10.10.0 [110/128] via 10.10.10.5, 00:01:29, Serial0/0/1
C 10.10.10.4 is directly connected, Serial0/0/1

Vous aimerez peut-être aussi