用戶模式、特權(quán)模式、全局模式
創(chuàng)新互聯(lián)建站專注于企業(yè)成都全網(wǎng)營銷推廣、網(wǎng)站重做改版、橋東網(wǎng)站定制設(shè)計、自適應(yīng)品牌網(wǎng)站建設(shè)、HTML5建站、商城網(wǎng)站建設(shè)、集團(tuán)公司官網(wǎng)建設(shè)、外貿(mào)網(wǎng)站建設(shè)、高端網(wǎng)站制作、響應(yīng)式網(wǎng)頁設(shè)計等建站業(yè)務(wù),價格優(yōu)惠性價比高,為橋東等各大城市提供網(wǎng)站開發(fā)制作服務(wù)。
Switch> 用戶模式 enable
Switch# 特權(quán)模式 configure terminal
Switch(config)#
Switch(config)#no ip domain-lookup #關(guān)閉域名查找的功能
Switch(config-line)#logging synchronous #配置鼠標(biāo)選項
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
推出保存 下次登陸有密碼 這個密碼是進(jìn)入用戶模式時候的密碼
配置特權(quán)模式的密碼:
全局模式下配置 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#
# 特權(quán)模式下 reload 代表重啟系統(tǒng)
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)#
##配置交換機的默認(rèn)網(wǎng)關(guān)
Switch(config)#ip default-gateway 192.168.1.254
Switch(config)#
no ip domain-lookup #關(guān)閉域名查找的功能
line console 0
Switch(config-line)#logging synchronous
Switch(config-line)#exec-timeout 0 0
外加安全設(shè)置
#查看端口的狀態(tài)
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 !! 進(jìn)入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 !! 關(guān)閉域名解析,以防在特權(quán)模式下敲錯命令而陷入域名解析的過程
5.密碼配置 第一console口密碼 特權(quán)密碼
全局模式:
line console 0
password 123456
login
推出保存 下次登陸有密碼 這個密碼是進(jìn)入用戶模式時候的密碼
配置特權(quán)模式的密碼:
全局模式下配置 enable secret 123456 #加密的密碼
6.配置telnet密碼
R1(config)# line vty 0 4 !! 進(jìn)入VTY 0-4線路
R1(config-line)# password ccietea !! 設(shè)置VTY線路密碼,即用戶通過telnet登入路由器時輸入的密碼
R1(config-line)# login !! 使得Telnet登錄到本設(shè)備需用密碼驗證
R1(config-line)# exit
分享題目:cisco交換機
URL鏈接:http://sd-ha.com/article44/iecohe.html
成都網(wǎng)站建設(shè)公司_創(chuàng)新互聯(lián),為您提供全網(wǎng)營銷推廣、企業(yè)網(wǎng)站制作、網(wǎng)站建設(shè)、定制網(wǎng)站、ChatGPT、建站公司
聲明:本網(wǎng)站發(fā)布的內(nèi)容(圖片、視頻和文字)以用戶投稿、用戶轉(zhuǎn)載內(nèi)容為主,如果涉及侵權(quán)請盡快告知,我們將會在第一時間刪除。文章觀點不代表本網(wǎng)站立場,如需處理請聯(lián)系客服。電話:028-86922220;郵箱:631063699@qq.com。內(nèi)容未經(jīng)允許不得轉(zhuǎn)載,或轉(zhuǎn)載時需注明來源: 創(chuàng)新互聯(lián)