Tải bản đầy đủ (.pdf) (42 trang)

Tài Liệu Thực Hành Môn Thiết Kế Mạng Lan

Bạn đang xem bản rút gọn của tài liệu. Xem và tải ngay bản đầy đủ của tài liệu tại đây (801.12 KB, 42 trang )

Lab













Router

Ethernet interfaces.
configurations.

router R2.

?________________
? _________________________

Biên So

Page 1


:


Reload

:

Routers.

router R1.
PC1

Desktop
Terminal trên Desktop tab.
OK: Bits Per Second = 9600 Data Bits = 8 Parity = None Stop
Bits = 1 Flow Control = None
Enter
Router.
.
:
Router>enable
Router#
:

privileged EXEC mode.

.

erase startup-config.
Enter
[confirm]
NVRAM.
Router#erase startup-config

Erasing the nvram filesystem will remove all files! Continue? [confirm]
[OK]
Erase of nvram: complete
Router#
:

.
reload

.

no

không.
Router#reload
System configuration has been modified. Save? [yes/no]: no
Proceed with reload? [confirm]
Enter

[confirm]

you like to enter the initial configuration dialog? [yes/no]: no
you like to terminate autoinstall? [yes]: [Press Return]
Enter to accept default.
RETURN to get started!

Would
Would
Press
Press


3:

n trên Router R1.
HyperTerminal session

router R1.

privileged EXEC mode.
Router>enable
Router#

Biên So

Page 2


global configuration mode.
Router#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
Router(config)#
uter là R1.
hostname R1.
Router(config)#hostname R1
R1(config)#
:

DNS lookup.
DNS lookup
no ip domain-lookup.

R1(config)#no ip domain-lookup
R1(config)#

EXEC mode
enable secret password.
class.
R1(config)#enable secret class
R1(config)#
enable password password ?
_______________________________________________________________________________
_______________________________________________________________________________
message-of-the-day banner.
message-of-the-day banner
banner motd.
R1(config)#banner motd &
Enter TEXT message. End with the character '&'.
********************************
!!!AUTHORIZED ACCESS ONLY!!!
********************************
&
R1(config)#
console trên router.
cisco
.
R1(config)#line console 0
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#
irtual terminal lines.

cisco.
R1(config)#line vty 0 4
R1(config-line)#password cisco
R1(config-line)#login
R1(config-line)#exit
R1(config)#
FastEthernet0/0 interface.

Biên So

Page 3


FastEthernet0/0 interface
IP address 192.168.1.1/24.
R1(config)#interface fastethernet 0/0
R1(config-if)#ip address 192.168.1.1 255.255.255.0
R1(config-if)#no shutdown
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)#

R1(config-if)#interface serial 0/0/0
R1(config-if)#ip address 192.168.2.1 255.255.255.0
R1(config-if)#clock rate 64000
R1(config-if)#no shutdown
R1(config-if)#
Chú ý:


end
R1(config-if)#end
R1#

privileged EXEC mode.

R1.
copy running-config startup-config.
R1#copy running-config startup-config
Building configuration...
[OK]
R1#

4

cho Serial 0/0/0 interface.
Serial 0/0/0 interface
IP address 192.168.2.2/24.
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 192.168.2.2 255.255.255.0
R2(config-if)#no shutdown
%LINK-5-CHANGED: Interface Serial0/0/0, changed state to up
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state
to up
R2(config-if)#

R2(config-if)#interface fastethernet 0/0
R2(config-if)#ip address 192.168.3.1 255.255.255.0
R2(config-if)#no shutdown


Biên So

Page 4


%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)#

end
R2(config-if)#end
R2#

privileged EXEC mode.

copy running-config startup-config.
R2#copy running-config startup-config
Building configuration...
[OK]
R2#

5

Gateway: 192.168.1.1.
PC2.
PC2
Gateway: 192.168.3.1.

6:


R2

192.168.3.10/24 và default

.

1:

.
show ip route
R2
.
C .
R1#show ip route
Codes: 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
i - IS-IS, su - IS-IS summary, 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 192.168.1.0/24 is directly connected, FastEthernet0/0
C 192.168.2.0/24 is directly connected, Serial0/0/0
-----------------------R2#show ip route
Codes: 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

i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
ia - IS-IS inter area, * - candidate default, U - per-user static route

Biên So

Page 5


o - ODR, P - periodic downloaded static route
Gateway of last resort is not set
C 192.168.2.0/24 is directly connected, Serial0/0/0
C 192.168.3.0/24 is directly connected, FastEthernet0/0
2:

.
show ip interface brief
R1#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.1.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.2.1 YES manual up up
Serial0/0/1 unassigned YES unset administratively down down
Vlan1 unassigned YES manual administratively down down
-----------------------R2#show ip interface brief
Interface IP-Address OK? Method Status Protocol
FastEthernet0/0 192.168.3.1 YES manual up up
FastEthernet0/1 unassigned YES unset administratively down down
Serial0/0/0 192.168.2.2 YES manual up up
Serial0/0/1 unassigned YES unset down down
Vlan1 unassigned YES manual administratively down down

up và up,
show ip route.
3:

router.

.

.
.
R1,
R2,

default gateway hay không? __________
? __________
:

không
1.

.
?(

)

____________
? ____________
2.

PC.

? ____________
show ip interface brief.
up và up hay không? ____________
yes,
ping
default gateway

3.

thành công.
4: K
router R1,
R2,
không
1.

ping

router R1 và R2.
R2
R1

ping 192.168.2.2? ____________
ping 192.168.2.1? ____________
u:

.
? ____________

2.


3.

Biên So

? ____________
router.
? ____________
clock rate
DCE ? ____________
show ip interface brief.

Page 6



yes, lúc này chúng
R1

R2

R2

R3.

7:
1:
ping
Ping không thành công
2:

Ping không thành công
3:
Ping không thành công

router R1

R2.
router R2.
R2 t

router R1.

?
________________________________________________________________________________
________________________________________________________________________________

8:
฀ show running-config

฀ show ip route

฀ show ip interface brief


Biên So

Page 7


Lab


(Static Route)

1

erase startup-config

reload

no

Biên So

Page 8


2:

.


฀ hostname

฀ no ip domain-lookup

฀ enable secret

฀ password

฀ login



3
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface fastethernet 0/0
IP address
.
R1(config-if)#ip address 172.16.3.1 255.255.255.0
R1(config-if)#no shut

R1#______________________________________
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
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.3.0 is directly connected, FastEthernet0/0
0/0/0 trên router R1
R2.
R1#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#interface Serial 0/0/0
IP address cho interface se
.
R1(config-if)#ip address 172.16.2.1 255.255.255.0

is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
:

clock rate cho router R1.
.
?
64000 bps.
R1(config-if)#clock rate 64000
is_up: 0 state: 0 sub state: 1 line: 0 has_route: False

Biên So

.

Page 9


R1(config-if)#_____________________________

is_up: 0 state: 0 sub state: 1 line: 0 has_route: False
%LINK-3-UPDOWN: Interface Serial0/0/0, changed state to down

R2#configure terminal
Enter configuration commands, one per line. End with CNTL/Z.
R2(config)#interface serial 0/0/0
R2(config-if)#ip address 172.16.2.2 255.255.255.0
is_up: 0 state: 6 sub state: 1 line: 0

R2(config-if)#_____________________________


is_up: 0 state: 4 sub state: 1 line: 0
%LINK-3-UPDOWN: Interface Serial0/0/0, changed state to up
is_up: 1 state: 4 sub state: 1 line: 0
RT: add 172.16.2.0/24 via 0.0.0.0, connected metric [0/0]
RT: interface Serial0/0/0 added to routing table
is_up: 1 state: 4 sub state: 1 line: 0
%LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0/0, changed state to
up
is_up: 1 state: 4 sub state: 1 line: 0

R1#_________________________________
Codes: 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
i - IS-IS, su - IS-IS summary, 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
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.2.0 is directly connected, Serial0/0/0
C 172.16.3.0 is directly connected, FastEthernet0/0

Biên So

Page 10


R2#_________________________________
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
172.16.0.0/24 is subnetted, 1 subnets
C 172.16.2.0 is directly connected, Serial0/0/0

4

là 172.16.3.10/24 và default gateway là 172.16.3.1.

ult gateway là 192.168.2.1.

6:
.
PC1,

ping

.
default gateway? ________
? ________
? ________
show ip interface brief

2
PC3,

PC3,
PC2,

PC1? ________
PC2? ________
PC1? ________
R1,
router R3? ________
.
?
____________________________________________________________________________
____________________________________________________________________________

Biên So

Page 11


7
R1#________________________________
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
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.2.0 is directly connected, Serial0/0/0

C 172.16.3.0 is directly connected, FastEthernet0/0
routing table
R1?
____________________________________________________________________
R2#_________________________________
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
172.16.0.0/24 is subnetted, 2 subnets
C 172.16.1.0 is directly connected, FastEthernet0/0
C 172.16.2.0 is directly connected, Serial0/0/0
C 192.168.1.0/24 is directly connected, Serial0/0/1
R2?
____________________________________________________________________
R3#_________________________________
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 192.168.1.0/24 is directly connected, Serial0/0/1
C 192.168.2.0

×