温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

IOS基本操作和配置(二)

发布时间:2020-06-28 09:02:10 来源:网络 阅读:316 作者:1017276839 栏目:移动开发

开启VTY登录

R1(config)#line vty 0 15

R1(config-line)#password 0 cisco

R1(config-line)#login

关闭VTY登录

R1(config-line)#no login

配置特权模式密码(明文)

R1(config)#enable password cisco

查看配置的密码

Router#show running-config

Building configuration...

Current configuration : 792 bytes
!
version 12.3
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname Router
!
boot-start-marker
boot-end-marker
!
enable password cisco
!

配置特权模式密码(加密)优先级更高

Router(config)#enable secret cisco1

加密明文密码

Router(config)#service password-encryption

关闭密码

Router(config)#no enable password

Router(config)#no enable secret

配置接口IP地址

R2(config)#interface fastEthernet 0/0

R2(config-if)#ip address 192.168.2.2 255.255.255.0

启用接口

R2(config-if)#no shutdown

配置主机名

Router(config)#hostname cisco

启用http服务(必须配置IP地址,和enable密码,用户名是cisco)

Router(config)#ip http server

查看DCE接口

需要配置DCE时钟同步,同步之后才可以通信

Router#show controllers Serial0/0/0
Interface Serial0/0/0
Hardware is PowerQUICC MPC860
DCE V.35, no clock
idb at 0x81081AC4, driver data structure at 0x81084AC0
SCC Registers:
General [GSMR]=0x2:0x00000000, Protocol-specific [PSMR]=0x8
Events [SCCE]=0x0000, Mask [SCCM]=0x0000, Status [SCCS]=0x00

配置时钟(DTE不需要配置时钟)

Router(config)#interface serial 0/0/0

Router(config-if)#ip address 10.10.10.1 255.255.255.0

Router(config-if)#clock rate 64000

Router(config-if)#no shutdown

显示当前VTY连接我的用户

Router#show users

踢掉连接我的指定用户

Router#clear line 66

向AI问一下细节

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI