cisco交换机


用户模式、特权模式、全局模式Switch> 用户模式 enableSwitch# 特权模式 configure terminalSwitch(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 0password 123456login推出保存 下次登陆有密码 这个密码是进入用户模式时候的密码
配置特权模式的密码:全局模式下配置 enable secret 123456 #加密的密码


#配置telnet密码
Switch(config)#line vty 0 3 #最多可以有四个人登陆Switch(config-line)#pasSwitch(config-line)#password 123456Switch(config-line)#loginSwitch(config-line)#

#############保存配置 开机启动过的配置Switch#copy running-config startup-configDestination filename [startup-config]?Building configuration…[OK]Switch#
Switch#w #wr或者w都可以 尝试Building configuration…[OK]Switch#

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

Switch#erase startup-configErasing the nvram filesystem will remove all configuration files! Continue? [confirm][OK]Erase of nvram: complete%SYS-7-NV_BLOCK_INIT: Initialized the geometry of nvramSwitch#

#配置交换机的管理端口Switch(config-if)#ip address 192.168.1.1 255.255.255.0Switch(config-if)#no shuSwitch(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.254Switch(config)#

no ip domain-lookup #关闭域名查找的功能line console 0Switch(config-line)#logging synchronousSwitch(config-line)#exec-timeout 0 0外加安全设置
#查看端口的状态
Switc免费云主机域名h#show ip interface briefInterface 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.配置主机名hostname2.时钟同步clock timezone GMT 83.配置路由器的motdbanner 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 0R1(config-line)# logging synchronous !! 配置console的日志同步功能,使得命令行界面弹出的日志信息不回打断用户正在输入中的配置命令R1(config-line)# exitR1(config)# no ip domain lookup !! 关闭域名解析,以防在特权模式下敲错命令而陷入域名解析的过程5.密码配置 第一console口密码 特权密码
全局模式:
line console 0password 123456login推出保存 下次登陆有密码 这个密码是进入用户模式时候的密码
配置特权模式的密码:全局模式下配置 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

相关推荐: https网页打不开

很多人现在都遇到公司是https类网页无法打开,是由于微软KB2661254这个补丁把网页加密等级最低要求是:1024位。而之前很多网页服务器加密是512位,大部人处理此方法是把KB2661354这个补丁卸载。但是由于现在很多用户使用360安全卫士或QQ管家,…

免责声明:本站发布的图片视频文字,以转载和分享为主,文章观点不代表本站立场,本站不承担相关法律责任;如果涉及侵权请联系邮箱:360163164@qq.com举报,并提供相关证据,经查实将立刻删除涉嫌侵权内容。

(0)
打赏 微信扫一扫 微信扫一扫
上一篇 01/28 21:30
下一篇 01/28 21:30