IOS基本操作和配置(二)

開啓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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章