Documentos de Académico
Documentos de Profesional
Documentos de Cultura
Addressing Table
Device
Interface
IP Address
Subnet Mask
Default Gateway
Fa0/0
172.16.3.1
255.255.255.0
N/A
S0/0/0
172.16.2.1
255.255.255.0
N/A
Fa0/0
172.16.1.1
255.255.255.0
N/A
S0/0/0
172.16.2.2
255.255.255.0
N/A
S0/0/1
192.168.1.2
255.255.255.0
N/A
FA0/0
192.168.2.1
255.255.255.0
N/A
S0/0/1
192.168.1.1
255.255.255.0
N/A
PC1
NIC
172.16.3.10
255.255.255.0
172.16.3.1
PC2
NIC
172.16.1.10
255.255.255.0
172.16.1.1
PC3
NIC
192.168.2.10
255.255.255.0
192.168.2.1
R1
R2
R3
Mc tiu
CCNA Lab
Routing Protocols and Concepts
hostname
enable secret
enable password
Step 2: Cu hnh password cho cc cng console v virtual terminal line trn mi router.
password
login
Step 3: Dng thm lnh logging synchronous ti cc cng console v virtual terminal lines.
Lnh ny rt u ch cho c lab v mi trng thc cc thng ip ca h thng khng chn vo du
nhc lnh ti cc cng console, aux hoc vty.
Router(config-line)#logging synchronous
Cu hnh trn R2:
R1(config)#line console 0
R1(config-line)#logging synchronous
R1(config-line)#line vty 0 4
R1(config-line)#logging synchronous
V d : Khi cu cha cu hnh cho R1 lnh ny trn line console v bt u vo cu hnh cho interface
F0/0 th cc thng ip ca Router s chn vo du nhc lnh:
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 172.16.3.1 255.255.255.0
R1(config-if)#no shutdown
R1(config-if)#descri
*Mar 1 01:16:08.212: %LINK-3-UPDOWN: Interface FastEthernet0/0, changed
state to up
*Mar 1 01:16:09.214: %LINEPROTO-5-UPDOWN: Line protocol on Interface
FastEthernet0/0, changed state to upption
R1(config-if)#
Nu dng lnh logging synchronous th vn cu hnh trn s khng b ngt
v chn thng ip ca IOS router.
R1(config)#interface fastethernet 0/0
Page 2 of 10
CCNA Lab
Routing Protocols and Concepts
CCNA Lab
Routing Protocols and Concepts
Page 4 of 10
CCNA Lab
Routing Protocols and Concepts
CCNA Lab
Routing Protocols and Concepts
subnet-maskSubnet mask of the remote network to be added to the routing table. The subnet
mask can be modified to summarize a group of networks.
Trn R3 router, cu hnh static route cho mng ch 172.16.1.0 dng IP ca Serial 0/0/1 interface ca R2
nh l next-hop address.
R3(config)#ip route 172.16.1.0 255.255.255.0 192.168.1.2
Step 2: xem routing table kim tra c static route mi cha?
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, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is not set
S
C
C
R3#
CCNA Lab
Routing Protocols and Concepts
R2#
Step 6: ping kim tra li gia host PC3 v host PC2.
T PC3, ping n PC2 thn cng.
subnet-maskSubnet mask of the remote network to be added to the routing table. The subnet
mask can be modified to summarize a group of networks.
R3#show running-config
Building configuration...
<output omitted>
!
hostname R3
!
interface FastEthernet0/0
ip address 192.168.2.1 255.255.255.0
!
interface Serial0/0/0
Page 7 of 10
CCNA Lab
Routing Protocols and Concepts
no ip address
shutdown
!
interface Serial0/0/1
ip address 192.168.1.1 255.255.255.0
!
ip route 172.16.1.0 255.255.255.0 192.168.1.2
ip route 172.16.2.0 255.255.255.0 Serial0/0/1
!
end
Step 3: Trn R2 router, cu hnh static route.
Trn R2 router, cu hnh static route n mng 172.16.3.0 dng Serial 0/0/0 interface ca R2 router nh
l exit interface.
R2(config)# ip route 172.16.3.0 255.255.255.0 Serial0/0/0
R2(config)#
Step 4: Xem routing table.
R2#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, * - candidate default
U - per-user static route, o - ODR
Gateway of last resort is not set
C
C
S
C
S
R2#
CCNA Lab
Routing Protocols and Concepts
10101100.00010000.00000001.00000000
10101100.00010000.00000010.00000000
10101100.00010000.00000011.00000000
Tm s bit ging nhau t tri sang , tt c cc bit cn li s cho gi tr l bit 0. Ta thy a ch i din l
172.16.0.0, v c 22 bit ging nhau nn:
Prefix
172.16.0.0 v
255.255.252.0
Page 9 of 10
CCNA Lab
Routing Protocols and Concepts
Page 10 of 10