实验1和2 实验设备与Cisco IOS介绍

作者:zieckey(zieckey@yahoo.com.cn)

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 - Trans Bridge , B - Source Route Bridge

                  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命令,这对于我们今后的学习大有帮助。

 
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值