實驗1和2 實驗設備與Cisco IOS介紹

作者:zieckey([email protected])

All Rights Reserved

1.   實驗目的

1.        學習Cisco IOS的背景知識

2.        掌握Cisco IOS的操作模式轉換和基本命令操作方法

3.        熟悉IP地址相關知識

4.        掌握IP Classless命令

2.   Cisco IOS的命令模式轉換方法

Cisco IOS命令模式的轉換方法如下圖圖2.1所示:

2.1 Cisco IOS命令模式的轉換方法

3.   無分類域間路由協議原理

CIDRclassless interdomain routing)無類間路由,由於ipv4提供的空間有限,面臨着地址枯竭的危險,爲了減少ip地址的浪費(比如你要申請1000ip,最早的時候可能給你一個b類地址,現在則用2C類地址就可以搞定了),同時也減少路由器上的路由表的大小(將幾個C類地址合成一個網絡)比如:192.168.4.0/24192.168.7.0/24,則在路由器上可以表示爲192.168.4.0/22。和subnet相對,有時候也把cidr叫做supernet

CIDR的基本觀點是採用一種分配多個I P地址的方式,使其能夠將路由表中的許多表項總和( s u m m a r i z a t i o n )成更少的數目。例如,如果給單個站點分配1 6C類地址,以一種可以用總和的方式來分配這1 6個地址,這樣,所有這1 6個地址可以參照Internet上的單個路由表表項。同時,如果有8個不同的站點是通過同一個Internet服務提供商的同一個連接點接入Internet的,且這8個站點分配的8個不同I P地址可以進行總和,那麼,對於這8個站點,在Internet上,只需要單個路由表表項。

4.   實驗過程

登陸

telnet 192.168.100.12

 

User Access Verification

 

Password:cisco

進入特權模式

r8>en

Password:cisco

 

進入配置模式

r8#config term

Enter configuration commands, one per line.  End with CNTL/Z.

 

對該設備重新命名

r8(config)#hostname zieckey

zieckey(config)#hostname r8

 

進入接口模式

r8(config)#interface s0/0/1

配置IP地址

r8(config-if)#ip address 172.16.1.2 255.255.255.0

r8(config-if)#no shutdown

r8(config-if)#exit

r8(config)#interface s0/0/0

r8(config-if)#ip address 172.16.2.2 255.255.255.0

r8(config-if)#no shutdown

r8(config-if)#exit

r8(config)#

r8#show CDP neighbors

Capability Codes: R - Router, T - TransBridge, B - SourceRouteBridge

                  S - Switch, H - Host, I - IGMP, r - Repeater

 

Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID

sw3              Fas 0/1            169         S I       WS-C3560- Fas 0/2

Beijing          Ser 0/0/0          156        R S I      2811      Ser 0/0/1

r7               Ser 0/0/1          138        R S I      2811      Ser 0/0/0

r8#SHOW VERSION

Cisco IOS Software, 2800 Software (C2800NM-ADVENTERPRISEK9-M), Version 12.4(12)

 RELEASE SOFTWARE (fc1)

Technical Support: http://www.cisco.com/techsupport

Copyright (c) 1986-2006 by Cisco Systems, Inc.

Compiled Fri 17-Nov-06 12:02 by prod_rel_team

 

ROM: System Bootstrap, Version 12.4(1r) [hqluong 1r], RELEASE SOFTWARE (fc1)

 

r8 uptime is 7 hours, 3 minutes

System returned to ROM by power-on

System image file is "flash:c2800nm-adventerprisek9-mz.124-12(1).bin"

 

 

This product contains cryptographic features and is subject to United

States and local country laws governing import, export, transfer and

use. Delivery of Cisco cryptographic products does not imply

third-party authority to import, export, distribute or use encryption.

Importers, exporters, distributors and users are responsible for

compliance with U.S. and local country laws. By using this product you

agree to comply with applicable laws and regulations. If you are unable

to comply with U.S. and local laws, return this product immediately.

 

A summary of U.S. laws governing Cisco cryptographic products may be found at:

http://www.cisco.com/wwl/export/crypto/tool/stqrg.html

 

r8#show run

Building configuration...

 

Current configuration : 944 bytes

!

version 12.4

service timestamps debug datetime msec

service timestamps log datetime msec

no service password-encryption

!

………..

 

配置Florence的靜態路由。

r8#configure

Configuring from terminal, memory, or network [terminal]?

Enter configuration commands, one per line.  End with CNTL/Z.

r8(config)#ip route 10.2.2.0 255.255.255.0 172.16.2.1

r8(config)#ip route 10.1.1.0 255.255.255.0 172.16.1.1

 

是靜態路由失效

r8(config)#no ip classless

r8(config)#

 

5.   實驗分析總結

 

實驗中,通過telnet登錄到某一路由器,實際上是通過網絡協議telnet登錄到某一路由器的操作系統上,也就是登錄到Cisco IOS上,然後通過Cisco IOS提供的基本命令來配置該路由器。

通過該次實驗我們基本瞭解到了Cisco網絡設備的背景知識,以及更理性的複習了一些網絡知識,另外還接觸了一些基本的Cisco IOS命令,這對於我們今後的學習大有幫助。

 
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章