096.55555.69
096.888.6300
0915.183535
0915.363436

CCNA 5.0 Bài lab static – ospf – tn1

CCNA 5.0 Bài lab static – ospf – tn1

static-ospf-tn1

static-ospf-tn1

 

Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname R1
R1(config)#ena
R1(config)#enable pas
R1(config)#enable password cisco
R1(config)#li
R1(config)#line con
R1(config)#line console 0
R1(config-line)#pas
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#li
R1(config)#line v
R1(config)#line vty 0 4
R1(config-line)#pas
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#ban
R1(config)#banner mo
R1(config)#banner motd “R1-cuongnm”
R1(config)#int f0/0
R1(config-if)#no shut

R1(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R1(config-if)#des
R1(config-if)#description connect to dn1
R1(config-if)#ip add
R1(config-if)#ip address 203.191.1.193 255.255.255.224
R1(config-if)#exit
R1(config)#int s0/0/0
R1(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/0, changed state to down
R1(config-if)#clo
R1(config-if)#clock ra
R1(config-if)#clock rate 56000
R1(config-if)#des
R1(config-if)#description connect to R2
R1(config-if)#ip add 203.191.1.233 255.255.255.252
R1(config-if)#exit
R1(config)#ip route 203.191.1.224 255.255.255.248 s0/0/0
R1(config)#ip route 203.191.1.0 255.255.255.128 s0/0/0
R1(config)#ip route 203.191.1.128 255.255.255.192 s0/0/0
R1(config)#ip route 203.191.0.0 255.255.255.0 s0/0/0
R1(config)#exit
R1#
%SYS-5-CONFIG_I: Configured from console by console

R1#wr
Building configuration…
[OK]
R1#

R2

Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname R2
R2(config)#ena
R2(config)#enable pas
R2(config)#enable password cisco
R2(config)#li
R2(config)#line con
R2(config)#line console 0
R2(config-line)#pas
R2(config-line)#password cisco
R2(config-line)#login
R2(config-line)#exit
R2(config)#li
R2(config)#line v
R2(config)#line vty 0 4
R2(config-line)#pas
R2(config-line)#password cisco
R2(config-line)#exit
R2(config)#ban
R2(config)#banner mo
R2(config)#banner motd “R2-cuongnm”
R2(config)#int s0/0/0
R2(config-if)#no shut

R2(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R2(config-if)#
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

R2(config-if)#ip add 203.191.1.234 255.255.255.252
R2(config-if)#exit
R2(config)#int f0/0
R2(config-if)#no shut

R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R2(config-if)#ip add 203.191.1.2 255.255.255.128
R2(config-if)#exit
R2(config)#int f0/1
R2(config-if)#no shut

R2(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up

R2(config-if)#ip add
R2(config-if)#ip address 203.191.1.130 255.255.255.192
R2(config-if)#exit
R2(config)#int s0/0/1
R2(config-if)#no shut

%LINK-5-CHANGED: Interface Serial0/0/1, changed state to down
R2(config-if)#clo
R2(config-if)#clock ra
R2(config-if)#clock rate 56000
R2(config-if)#ip add
R2(config-if)#ip address 203.191.1.226 255.255.255.248
R2(config-if)#exit
R2(config)#ip route 203.191.1.192 255.255.255.224 s0/0/0
R2(config)#router os
R2(config)#router ospf 1
R2(config-router)#net
R2(config-router)#network 203.191.1.232 0.0.0.3 ar
R2(config-router)#network 203.191.1.232 0.0.0.3 area 0
R2(config-router)#net
R2(config-router)#network 203.191.1.2 0.0.0.0 are
R2(config-router)#network 203.191.1.2 0.0.0.0 area 0
R2(config-router)#network 203.191.1.130 0.0.0.0 area 0
R2(config-router)#network 203.191.1.226 0.0.0.0 area 0
R2(config-router)#re
R2(config-router)#redistribute sta
R2(config-router)#redistribute static sub
R2(config-router)#redistribute static subnets
R2(config-router)#exit
R2(config)#exit
R2#
%SYS-5-CONFIG_I: Configured from console by console

R2#wr
Building configuration…
[OK]
R2#

Cau hinh tren R3

Router>
Router>en
Router#conf t
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#hos
Router(config)#hostname R3
R3(config)#ena
R3(config)#enable pas
R3(config)#enable password cisco
R3(config)#li
R3(config)#line con
R3(config)#line console 0
R3(config-line)#pas
R3(config-line)#password cisco
R3(config-line)#login
R3(config-line)#exit
R3(config)#li
R3(config)#line vt
R3(config)#line vty 0 4
R3(config-line)#pas
R3(config-line)#password cisco
R3(config-line)#login
R3(config-line)#exit
R3(config)#ban
R3(config)#banner mo
R3(config)#banner motd “R3-cuongnm”
R3(config)#int s0/0/0
R3(config-if)#no shut

R3(config-if)#
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up

R3(config-if)#ip add
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to up

% Incomplete command.
R3(config-if)#ip add 203.191.1.227 255.255.255.248
R3(config-if)#exit
R3(config)#int f0/0
R3(config-if)#no shut

R3(config-if)#
%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to up

%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/0, changed state to up

R3(config-if)#ip add
R3(config-if)#ip address 203.191.0.3 255.255.255.0
R3(config-if)#exit
R3(config)#router os
R3(config)#router ospf 1
R3(config-router)#net
R3(config-router)#network 203.191.0.3 0.0.0.0 area
R3(config-router)#network 203.191.0.3 0.0.0.0 area 0
R3(config-router)#network 203.191.1.227 0.0.0.0 area 0
R3(config-router)#
00:05:31: %OSPF-5-ADJCHG: Process 1, Nbr 203.191.1.234 on Serial0/0/0 from LOADING to FULL, Loading Done

R3(config-router)#
R3(config-router)#exit
R3(config)#
R3(config)#exit
R3#
%SYS-5-CONFIG_I: Configured from console by console

R3#wr
Building configuration…
[OK]
R3#show 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

C 203.191.0.0/24 is directly connected, FastEthernet0/0
203.191.1.0/24 is variably subnetted, 5 subnets, 5 masks
O 203.191.1.0/25 [110/65] via 203.191.1.226, 00:00:12, Serial0/0/0
O 203.191.1.128/26 [110/65] via 203.191.1.226, 00:00:12, Serial0/0/0
O E2 203.191.1.192/27 [110/20] via 203.191.1.226, 00:00:12, Serial0/0/0
C 203.191.1.224/29 is directly connected, Serial0/0/0
O 203.191.1.232/30 [110/128] via 203.191.1.226, 00:00:12, Serial0/0/0
R3#

 

Nhắn tin qua Facebook