[基础] CISCO路由交换的基本配置

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

衡阳技师学院信息技术系

实训教学教案

教师姓名尹友明

衡阳技师学院信息系编制

2009年9月1日

【基础】CISCO路由交换的基本配置捕获

一、交换机基本配置命令

switch> 用户模式

1:进入特权模式enable

switch> enable

switch#

2:进入全局配置模式configure terminal

switch> enable

switch#configure terminal

switch(conf)#

3:交换机命名以2950为例

switch> enable

switch#configure terminal

switch(conf)#hostname 2950

2950(conf)#

4:配置使能口令以cisco为例

switch> enable

switch#configure terminal

switch(conf)#hostname 2950

switch(conf)#enable password cisco

5:配置使能密码enable secret ciscolab 以cicsolab为例

switch> enable

switch#configure terminal

switch(conf)#hostname 2950

2950(conf)# enable secret ciscolab

6:设置虚拟局域网vlan 1 interface vlan 1

switch> enable

switch#configure terminal

switch(conf)#hostname 2950

2950(conf)# interface vlan 1

(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交换机端口ip和子网掩码2950(conf-if)#no shut

2950(conf-if)#exit

2950(conf)#ip default-gateway 192.168.1.254 设置网关地址

7:进入交换机某一端口interface fastehernet 0/17 以17端口为例

switch> enable

switch#configure terminal

switch(conf)#hostname aptch2950

2950(conf)# interface fastehernet 0/17

2950(conf-if)#

8:查看命令show

switch> enable

switch# show version 察看系统中的所有版本信息

show interface vlan 1 查看交换机有关ip 协议的配置信息

show running-configure 查看交换机当前起作用的配置信息

show interface fastethernet 0/1 察看交换机1接口具体配置和统计信息

show mac-address-table 查看mac地址表

show mac-address-table aging-time 查看mac地址表自动老化时间

9:交换机恢复出厂默认恢复命令

switch> enable

switch# erase startup-configure

switch# reload

10:双工模式设置

switch> enable

switch#configure terminal

2950(conf)#hostname aptch-2950

2950(conf)# interface fastehernet 0/17 以17端口为例

2950(conf-if)#duplex full/half/auto 有full , half, auto 三个可选项11:cdp相关命令

switch> enable

switch# show cdp 查看设备的cdp全局配置信息

show cdp interface fastethernet 0/17 查看17端口的cdp配置信息

show cdp traffic 查看有关cdp包的统计信息

show cdp nerghbors 列出与设备相连的cisco设备

二、路由器命令

router> 用户模式

1:进入特权模式enable

router > enable

router #

2:进入全局配置模式configure terminal

router > enable

router #configure terminal

router (conf)#

3:交换机命名hostname routera 以routerA为例

router > enable

router #configure terminal

router(conf)#hostname routerA

routera (conf)#

4:配置使能口令enable password cisco 以cisco为例

router > enable

router #configure terminal

router(conf)#hostname routerA

routerA (conf)# enable password cisco

5:配置使能密码enable secret ciscolab 以cicsolab为例

router > enable

router #configure terminal

router(conf)#hostname routerA

routerA (conf)# enable secret ciscolab

相关文档
最新文档