cisco交换机

用户模式、特权模式、全局模式

创新互联建站专注于企业成都全网营销推广、网站重做改版、桥东网站定制设计、自适应品牌网站建设、HTML5建站商城网站建设、集团公司官网建设、外贸网站建设、高端网站制作、响应式网页设计等建站业务,价格优惠性价比高,为桥东等各大城市提供网站开发制作服务。

Switch>   用户模式  enable

Switch#   特权模式   configure terminal

Switch(config)#    

Switch(config)#no ip domain-lookup  #关闭域名查找的功能

Switch(config-line)#logging   synchronous  #配置鼠标选项

Switch(config)#hostname  ccna  #配置主机名

ccna(config)#no  hostname  ccna  #取消主机名

line console   0  

exec-timeout  0  0   #console  口配置  exec-timeout  5  30  五分钟30s   0  0  不配置超时

回到上一层  exit

回到最初 用end

#安全 配置用户模式下用户密码登陆

全局模式:

line console  0

password  123456

login

推出保存 下次登陆有密码  这个密码是进入用户模式时候的密码


配置特权模式的密码:

全局模式下配置 enable secret  123456  #加密的密码



#配置telnet密码

Switch(config)#line vty  0 3  #最多可以有四个人登陆

Switch(config-line)#pas

Switch(config-line)#password  123456

Switch(config-line)#login

Switch(config-line)#

#############保存配置 开机启动过的配置

Switch#copy running-config  startup-config

Destination filename [startup-config]?

Building configuration...

[OK]

Switch#

Switch#w  #wr或者w都可以  尝试

Building configuration...

[OK]

Switch#

# 特权模式下  reload  代表重启系统  

Switch#erase   startup-config

Erasing the nvram filesystem will remove all configuration files! Continue? [confirm]

[OK]

Erase of nvram: complete

%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvram

Switch#


#配置交换机的管理端口

interface vlan 1

Switch(config-if)#ip address   192.168.1.1  255.255.255.0

Switch(config-if)#no shu

Switch(config-if)#no shutdown

Switch(config-if)#

%LINK-5-CHANGED: Interface Vlan1, changed state to up

Switch(config-if)#

##配置交换机的默认网关

Switch(config)#ip default-gateway  192.168.1.254

Switch(config)#


  1. no ip domain-lookup  #关闭域名查找的功能

  2. line console  0

    Switch(config-line)#logging  synchronous

  3. Switch(config-line)#exec-timeout     0   0

外加安全设置 

#查看端口的状态

Switch#show  ip  interface   brief

Interface              IP-Address      OK? Method Status                Protocol

FastEthernet0/1        unassigned      YES manual down                  down

FastEthernet0/2        unassigned      YES manual down                  down

FastEthernet0/3        unassigned      YES manual down                  down

FastEthernet0/4        unassigned      YES manual down                  down

##############整理思路

1.配置主机名

hostname 

2.时钟同步

clock timezone GMT 8

3.配置路由器的motd

banner motd #Hello , This is a LAB of ccietea.com#

4.配置console 口

R1(config)# line console 0 !! 进入console口

R1(config-line)# no exec-time !! 配置console永不超时,也可用命令exec-time 0 0

R1(config-line)# logging synchronous !! 配置console的日志同步功能,使得命令行界面弹出的日志信息不回打断用户正在输入中的配置命令

R1(config-line)# exit

R1(config)# no ip domain lookup !! 关闭域名解析,以防在特权模式下敲错命令而陷入域名解析的过程

5.密码配置  第一console口密码 特权密码

全局模式:

line console  0

password  123456

login

推出保存 下次登陆有密码  这个密码是进入用户模式时候的密码


配置特权模式的密码:

全局模式下配置 enable secret  123456  #加密的密码


6.配置telnet密码

R1(config)# line vty 0 4 !! 进入VTY 0-4线路

R1(config-line)# password ccietea !! 设置VTY线路密码,即用户通过telnet登入路由器时输入的密码

R1(config-line)# login !! 使得Telnet登录到本设备需用密码验证

R1(config-line)# exit

分享题目:cisco交换机
URL链接:https://www.cdcxhl.com/article44/iecohe.html

成都网站建设公司_创新互联,为您提供全网营销推广企业网站制作网站建设定制网站ChatGPT建站公司

广告

声明:本网站发布的内容(图片、视频和文字)以用户投稿、用户转载内容为主,如果涉及侵权请尽快告知,我们将会在第一时间删除。文章观点不代表本网站立场,如需处理请联系客服。电话:028-86922220;邮箱:631063699@qq.com。内容未经允许不得转载,或转载时需注明来源: 创新互联

网站建设网站维护公司