77范文网 - 专业文章范例文档资料分享平台

SWITCH交换机基础知识(4)

来源:网络收集 时间:2019-06-17 下载这篇文档 手机版
说明:文章内容仅供预览,部分内容可能不全,需要完整文档或者需要复制内容,请下载word后使用。下载word有问题请添加微信号:或QQ: 处理(尽可能给您提供完整文档),感谢您的支持与谅解。点击这里给我发消息

Setting the Passwords

配置密码:

1.登陆密码(用户模式):防止未授权用户登陆 2.启用密码(特权模式):防止未授权用户修改配置 Setting the User Mode and Enable Mode Passwords

1900下,输入K进入CLI,输入enable进入特权模式,再输入config t进入全局配置模式,如下: >en

#config t (config)#

当进入全局配置模式后,使用enable password命令配置登陆密码个启用密码,如下:

(config)#enable password ? level Set exec level password (config)#enable password level ? <1-15> Level Number

level1为登陆密码,level15为启用密码,密码长度范围是4到8字符之间,如下:

(config)#enable password level 1 nocoluvsnoko Error: Invalid password length.

Password must be between 4 and 8 characters 重配置并验证:

(config)#enable password level 1 noco (config)#enable password level 15 noko (config)#exit #exit

2950下的配置和配置router有点类似,如下: Switch>en Switch#conf t

Switch(config)#line ? <0-16> First Line number

console Primary terminal line vty Virtual terminal

Switch(config)#line vty ? <0-15> First Line number

Switch(config)#line vty 0 15 Switch(config-line)#login

Switch(config-line)#password noko Switch(config-line)#line con 0 Switch(config-line)#login

Switch(config-line)#password noco

Switch(config-line)#exit Switch(config)#exit Switch#

Set the Enable Secret Password

enable secret比enable password更安全,而且同时设置了2者的话,只有前者起作用1900下的配置,注意在1900下,enable secret和enable password可以设置成一样的,如下:

(config)#enable secret noko

2950下的配置和router类似,但是enable secret和enable passwor不可以设置成一样的,如下:

Switch(config)#enable password noko Switch(config)#enable secret noko The enable secret you have chosen is the same as your enable password. This is not recommended. Re-enter the enable secret. Switch(config)#enable secret noco Switch(config)# Setting the Hostname

给1900配置主机名,使用hostname命令,如下: (config)#hostname Noko Noko(config)#

给2950配置主机名,使用hostname命令,如下: Switch(config)#hostname Noco Noco(config)#

Setting IP Information

你可以不配置IP信息,直接把线缆插进端口,一样可以工作.配置IP地址信息有2点原因:

1.通过telnet或其他软件方式来管理switch 2.配置VLANs和其他等网络功能

默认下,没有IP地址和默认网关信息配置,在1900下,使用show ip命令查看默认IP配置,如下: 1900#sh ip

IP Address: 0.0.0.0 Subnet Mask: 0.0.0.0 Default Gateway: 0.0.0.0 Management VLAN: 1 Domain name:

Name server 1: 0.0.0.0

Name server 2: 0.0.0.0 HTTP server: Enable HTTP port: 80 RIP: Enable

在1900下使用ip address和ip default-gateway命令来配置IP地址信息和默认网关信息,如下:

1900(config)#ip address 172.16.10.16 255.255.255.0 1900(config)#ip default-gateway 172.16.10.1 1900(config)#

2950下的配置是在VLAN1接口下配置,VLAN1是管理VLAN,默认所有接口均是VLAN1的成员,配置如下: 2950(config)#int vlan1

2950(config-if)#ip address 172.16.10.17 255.255.255.0 2950(config-if)#no shut 2950(config-if)#exit

2950(config)#ip default-gateway 172.16.10.1 2950(config)#

注意2950的IP地址配置是在VLAN1接口下,另外要注意打开接口

Configuring Interface Description

配置描述信息,在接口配置模式下使用description命令,1900下的描述信息不能使用空格键,如下: 1900(config)#int e0/1

1900(config-if)#description Cisco_VLAN 1900(config-if)#int f0/26

1900(config-if)#description trunk_to_building_4 1900(config-if)# 息

2950下的描述就可以使用空格键,如下: 2950(config)#int fa 0/1

2950(config-if)#description Sales Printer 2950(config-if)#^Z

可以使用show interface和show running-config命令来查看这些描述信

Erasing the Switch Configuration

1900和2950的配置文件是存储在NVRAM里的,但是1900里你不能查看NVRAM或startup-config的内容,只能查看 running-config的内容,在1900里,你对配置所进行的修改自动被复制到NVRAM里,所以没有copy run start这样的命令;但是2950就有startup-config和running-config,使用copy run start来保

存配置到NVRAM里,擦除2950里startup-config文件使用erase startup-config命令;擦除1900里的使用delete命令.如下:

1900#delete ?

nvram NVRAM configuration

vtp Reset VTP configuration to defaults 1900#delete nvram

2950:

2950#erase startup-config

Refer to the exhibit. The Serial0/0 interface of the Tampa router connects to the Orlando router. Which two statements are true about the connection between these two routers? (Choose two.) A. Routing updates exchanged between the Orlando and Tampa routers are authenticated. B. Data exchanges between the Orlando and Tampa routers are encrypted.

C. The on device witch the Tampa router will negotiate a data link is the Orlando router. D. The link uses a two-way handshake for authentication. E. The link uses a three-way handshake for authentication.

F. The link is addressed on the \ Answer: C,E

百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库SWITCH交换机基础知识(4)在线全文阅读。

SWITCH交换机基础知识(4).doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印 下载失败或者文档不完整,请联系客服人员解决!
本文链接:https://www.77cn.com.cn/wenku/zonghe/660732.html(转载请注明文章来源)
Copyright © 2008-2022 免费范文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ: 邮箱:tiandhx2@hotmail.com
苏ICP备16052595号-18
× 注册会员免费下载(下载后可以自由复制和排版)
注册会员下载
全站内容免费自由复制
注册会员下载
全站内容免费自由复制
注:下载文档有可能“只有目录或者内容不全”等情况,请下载之前注意辨别,如果您已付费且无法下载或内容有问题,请联系我们协助你处理。
微信: QQ: