A. CISCO交換機配置VLAN的具體命令
交換機基本狀態:
switch: ;ROM狀態, 路由器是rommon>
hostname> ;用戶模式
hostname# ;特權模式
hostname(config)# ;全局配置模式
hostname(config-if)# ;介面狀態
B. cisco配置交換機使能加密口令是什麼命令是什麼
命令為:lineconsole0。
如下參考:
1.首先點擊電腦打開思科軟體。使用控制台電纜將計算機連接到路由器。
C. cisco交換機配置命令
switch> 用戶模式1:進入特權模式 enableswitch> enableswitch#2:進入全局配置模式 configure terminalswitch> enableswitch#configure terminalswitch(conf)#3:交換機命名 hostname aptech2950 以aptech2950為例switch> enableswitch#configure terminalswitch(conf)#hostname aptch-2950aptech2950(conf)#4:配置使能口令 enable password cisco 以cisco為例switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable password cisco5:配置使能密碼 enable secret ciscolab 以cicsolab為例switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# enable secret ciscolab6:設置虛擬區域網vlan 1 interface vlan 1switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interface vlan 1aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0 配置交換機埠ip和子網掩碼aptech2950(conf-if)#no shut 是配置處於運行中aptech2950(conf-if)#exitaptech2950(conf)#ip default-gateway 192.168.254 設置網關地址7:進入交換機某一埠 interface fastehernet 0/17 以17埠為例switch> enableswitch#configure terminalswitch(conf)#hostname aptch2950aptech2950(conf)# interface fastehernet 0/17aptech2950(conf-if)#8:查看命令 showswitch> enableswitch# show version 察看系統中的所有版本信息show interface vlan 1 查看交換機有關ip 協議的配置信息show running-configure 查看交換機當前起作用的配置信息show interface fastethernet 0/1 察看交換機1介面具體配置和統計信息show mac-address-table 查看mac地址表show mac-address-table aging-time 查看mac地址表自動老化時間9:交換機恢復出廠默認恢復命令 switch> enableswitch# erase startup-configureswitch# reload10:雙工模式設置switch> enableswitch#configure terminalswitch2950(conf)#hostname aptch-2950aptech2950(conf)# interface fastehernet 0/17 以17埠為例aptech2950(conf-if)#plex full/half/auto 有full , half, auto 三個可選項11:cdp相關命令switch> enableswitch# show cdp 查看設備的cdp全局配置信息show cdp interface fastethernet 0/17 查看17埠的cdp配置信息show cdp traffic 查看有關cdp包的統計信息show cdp nerghbors 列出與設備相連的cisco設備12:csico2950的密碼恢復拔下交換機電源線。用手按著交換機的MODE鍵,插上電源線在switch:後執行flash_ini命令:switch: flash_ini查看flash中的文件: switch: dir flash:把「config.text」文件改名為「config.old」: switch: rename flash: config.text flash: config.old執行boot: switch: boot交換機進入是否進入配置的對話,執行no : 進入特權模式察看flash里的文件: show flash : 把「config.old」文件改名為 「config.text」: switch: rename flash: config.old flash: config.text把「config.text」拷入系統的「running-configure」: flash: config.text system : running-configure把配置模式重新設置密碼存檔,密碼恢復成功。13:交換機telnet遠程登錄設置:switch>enswitch#configure terminalswitch(conf)#hostname aptech-2950aptech2950(conf)#enable password cisco 以cisco為特權模式密碼aptech2950(conf)#interface fastethernet 0/1 以17埠為telnet遠程登錄埠aptech2950(conf-if)#ip address 192.168.1.1 255.255.255.0aptech2950(conf-if)#no shutaptech2950(conf-if)#exitaptech2950(conf)line vty 0 4 設置0-4 個用戶可以telnet遠程登陸aptech2950(conf-line)#loginaptech2950(conf-line)#password edge 以edge為遠程登錄的用戶密碼主機設置:ip 192.168.1.2 主機的ip必須和交換機埠的地址在同一網路段netmask 255.255.255.0gate-way 192.168.1.1 網關地址是交換機埠地址運行:telnet 192.168.1.1 進入telnet遠程登錄界面password : edge aptech2950>enpassword: ciscoaptech#14:交換機配置的重新載入和保存設置完成交換機的配置後:aptech2950(conf)#reload是否保存(y/n) y: 保存設置信息 n:不保存設置信息路由器命令router> 用戶模式1:進入特權模式 enablerouter > enablerouter #2:進入全局配置模式 configure terminalrouter > enablerouter #configure terminalrouter (conf)#3:交換機命名 hostname routera 以routerA為例router > enablerouter #configure terminalrouter(conf)#hostname routerAroutera (conf)#4:配置使能口令 enable password cisco 以cisco為例router > enablerouter #configure terminalrouter(conf)#hostname routerArouterA (conf)# enable password cisco5:配置使能密碼 enable secret ciscolab 以cicsolab為例router > enablerouter #configure terminalrouter(conf)#hostname routerArouterA (conf)# enable secret ciscolab6:進入路由器某一埠 interface fastehernet 0/17 以17埠為例router > enablerouter #configure terminalrouter(conf)#hostname routerArouterA (conf)# interface fastehernet 0/17routerA (conf-if)#進入路由器的某一子埠 interface fastethernet 0/17.1 以17埠的1子埠為例router > enablerouter #configure terminalrouter(conf)#hostname routerArouterA (conf)# interface fastehernet 0/17.17:設置埠ip地址信息router > enablerouter #configure terminalrouter(conf)#hostname routerArouterA(conf)# interface fastehernet 0/17 以17埠為例routerA (conf-if)#ip address 192.168.1.1 255.255.255.0 配置交換機埠ip和子網掩碼routerA (conf-if)#no shut 是配置處於運行中routerA (conf-if)#exit8:查看命令 showrouter > enablerouter # show version 察看系統中的所有版本信息show interface vlan 1 查看交換機有關ip 協議的配置信息show running-configure 查看交換機當前起作用的配置信息show interface fastethernet 0/1 察看交換機1介面具體配置和統計信息show mac-address-table 查看mac地址表show mac-address-table aging-time 查看mac地址表自動老化時間show controllers serial + 編號 查看串口類型show ip router 查看路由器的路由表9:cdp相關命令router > enablerouter # show cdp 查看設備的cdp全局配置信息show cdp interface fastethernet 0/17 查看17埠的cdp配置信息show cdp traffic 查看有關cdp包的統計信息show cdp nerghbors 列出與設備相連的cisco設備10:csico2600的密碼恢復重新啟動路由器,在啟動過程中按下win+break鍵,使路由器進入rom monitor在提示符下輸入命令修改配置寄存器的值,然後重新啟動路由器remmon1>confreg 0x2142remmon2>reset重新啟動路由器後進入setup模式,選擇「no」,退回到exec模式,此時路由器原有的配置仍然保存在startup-config中,為使路由器恢復密碼後配置不變把startup-config中配置保存到running-config中,然後重新設置enable密碼,並把配置寄存器改回0x2102:router>enable router# startup-config running-configrouter#configure terminalrouter(conf)#enable password ciscorouter(conf)#config-register 0x2102保存當前配置到startup-config , 重新啟動路由器。router # running-config startup-config router #reload11:路由器telnet遠程登錄設置:router>enrouter #configure terminalrouter (conf)#hostname routerArouterA (conf)#enable password cisco 以cisco為特權模式密碼routerA (conf)#interface fastethernet 0/1 以17埠為telnet遠程登錄埠routerA (conf-if)#ip address 192.168.1.1 255.255.255.0routerA (conf-if)#no shutrouterA (conf-if)#exitrouterA (conf)line vty 0 4 設置0-4 個用戶可以telnet遠程登陸routerA (conf-line)#loginrouterA (conf-line)#password edge 以edge為遠程登錄的用戶密碼主機設置:ip 192.168.1.2 主機的ip必須和交換機埠的地址在同一網路段netmask 255.255.255.0gate-way 192.168.1.1 網關地址是交換機埠地址運行:telnet 192.168.1.1 進入telnet遠程登錄界面password : edge routera>enpassword: ciscoroutera#12:配置路由器的標識 banner $……………$在全局配置的模式下利用「banner」命令可以配置路由器的提示信息,所有連接到路由器的終端都會收到。router>enrouter #configure terminalrouter (conf)#hostname routerArouterA(conf)#banner motd $This is aptech company』 router ! Please don』t change the configuration without permission!$13:配置介面標識 description ………介面標識用於區分路由器的各個介面。router>enrouter #configure terminalrouter (conf)#hostname routerArouterA(conf)#interface fastethernet 0/1 以0/1 介面為例routerA(conf-if)# description this is a fast Ethernet port used to connecting the company』s intranet! 14:配置超時 超時適用於設置在多長時間沒有對console進行配置,自動返回exec會話時間。默認為10分鍾。router>enrouter #configure terminalrouter (conf)#hostname routerArouterA(conf)#line console 0routerA(conf-if)#exec-timeout 0 0 第一個「0」分鍾,第二個「0」秒15:配置串口參數 兩台路由器通過串口連接需要一個做為DTE,一個做為DCE。DCE設備要向DTE設備提供時鍾頻率和帶寬。DCE配置:router>enrouter #configure terminalrouter (conf)#hostname routerArouterA(conf)#interface serial 0/0routerA(conf_if)#clock rate 64000 提供時鍾頻率為64000routerA(conf_if)#bandwidth 64 提供帶寬為64DTE配置:路由器串口配置ip地址router>enrouter #configure terminalrouter (conf)#hostname routerBrouterB(conf)#interface serial 0/0routerB(conf_if)#ip address 192.168.1.1 255.255.255.016:靜態路由的配置配置路由器A的主機名和介面參數router>enable router#configure terminalrouter(conf)#hostname routerArouterA(conf)#interface fastethernet 0/1 路由器A的1埠為兩路由器的連接埠routerA(conf-if)#ip address 192.168.2.1 255.255.255.0routerA(conf-if)#no shutdownrouterA(conf-if)#exitrouterA(conf)# interface fastethernet 0/0 路由器A的0埠為與主機的連接埠routerA(conf-if)#ip address 192.168.1.2 255.255.255.0routerA(conf-if)#no shutdown主機A的ip地址為 192.168.1.1 255.255.255.0 192.168.1.2配置路由器B的主機名和介面參數router>enable router#configure terminalrouter(conf)#hostname routerBrouterB(conf)#interface fastethernet 0/0 路由器B的0埠為兩路由器的連接埠routerB(conf-if)#ip address 192.168.2.2 255.255.255.0routerB(conf-if)#no shutdownrouterB (conf-if)#exitrouterB(conf)# interface fastethernet 0/1 路由器B的1埠為與主機的連接埠routerB(conf-if)#ip address 192.168.3.1 255.255.255.0主機B的ip地址為 192.168.3.2255.255.255.0 192.168.3.1配置路由器A的靜態路由表routerA(conf)#ip router 192.168.3.0 255.255.255.0 192.168.2.2 配置路由器B的靜態路由表routerA(conf)#ip router 192.168.1.0 255.255.255.0 192.168.2.1在routerA和routerB上配置默認路由routerA(conf)#ip route 0.0.0.0 0.0.0.0 192.168.2.2routerA(conf)#ip classlessrouterB(conf)#ip route 0.0.0.0 0.0.0.0 192.168.2.1routerB(conf)#ip classless在routerA和routerB上配置動態路由(RIP)routerA(conf)#router riprouterA(conf)#network 192.168.1.0routerA(conf)#network 192.168.2.0routerB(conf)# router riprouterB(conf)#network 192.168.2.0routerB(conf)#network 192.168.3.0
D. 思科交換機的配置保存命令
1、首先打開思科交換CLI,從特權模式進入全局配置模式,如下圖所示。
E. cisco交換機的配置命令
交換機口令設置:
switch>enable ;進入特權模式
switch#config terminal ;進入全局配置模式
switch(config)#hostname ;設置交換機的主機名
switch(config)#enable secret xxx ;設置特權加密口令
switch(config)#enable password xxa ;設置特權非密口令
switch(config)#line console 0 ;進入控制台口
switch(config-line)#line vty 0 4 ;進入虛擬終端
switch(config-line)#login ;允許登錄
switch(config-line)#password xx ;設置登錄口令xxswitch#exit ;返回命令
交換機VLAN設置:
switch#vlan database ;進入VLAN設置
switch(vlan)#vlan 2 ;建VLAN 2
switch(vlan)#no vlan 2 ;刪vlan 2
switch(config)#int f0/1 ;進入埠1
switch(config-if)#switchport access vlan 2 ;當前埠加入vlan 2
switch(config-if)#switchport mode trunk ;設置為干線
switch(config-if)#switchport trunk allowed vlan 1,2 ;設置允許的vlan
switch(config-if)#switchport trunk encap dot1q ;設置vlan 中繼
switch(config)#vtp domain ;設置發vtp域名
switch(config)#vtp password ;設置發vtp密碼
switch(config)#vtp mode server ;設置發vtp模式
switch(config)#vtp mode client ;設置發vtp模式
F. 思科交換機詳細配置方法和命令
思科交換機的基本配置命令學習
一、交換機口令設置:
switch>enable ;進入特權模式
switch#config terminal ;進入全局配置模式
switch(config)#hostname csico ;設置交換機的主機名
switch(config)#enable secret
csico1 ;設置特權加密口令
switch(config)#enable password csico8 ;設置特權非密口令
switch(config)#line console 0 ;進入控制台口
switch(config-line)#line vty 0 4
;進入虛擬終端
switch(config-line)#login ;虛擬終端允許登錄
switch(config-line)#password
csico6 ;設置虛擬終端登錄口令csico6
switch#exit ;返回命令
二、交換機顯示命令:
switch#write ;保存配置信息
switch#show vtp ;查看vtp配置信息
switch#show run ;查看當前配置信息
switch#show
vlan ;查看vlan配置信息
switch#show interface ;查看埠信息
switch#show int f0/0
;查看指定埠信息
switch#show int f0/0 status;查看指定埠狀態
switch#dir flash: ;查看快閃記憶體
Cisco路由器配置命令大全網路 2010-06-26 06:43:44 閱讀657 評論0 字型大小:大中小 訂閱 .
(1)模式轉換命令
用戶模式----特權模式,使用命令"enable"
特權模式----全局配置模式,使用命令"config
t"
全局配置模式----介面模式,使用命令"interface+介面類型+介面號"
全局配置模式----線控模式,使用命令"line+介面類型+介面號"
注:
用戶模式:查看初始化的信息.
特權模式:查看所有信息、調試、保存配置信息
全局模式:配置所有信息、針對整個路由器或交換機的所有介面
介面模式:針對某一個介面的配置
線控模式:對路由器進行控制的介面配置
(2)配置命令
show running config 顯示所有的配置
show
versin 顯示版本號和寄存器值
shut down 關閉介面
no shutdown 打開介面
ip add +ip地址
配置IP地址
secondary+IP地址 為介面配置第二個IP地址
show interface+介面類型+介面號 查看介面管理性
show controllers interface 查看介面是否有DCE電纜
show history 查看歷史記錄
show
terminal 查看終端記錄大小
hostname+主機名 配置路由器或交換機的標識
config memory
修改保存在NVRAM中的啟動配置
exec timeout 0 0 設置控制台會話超時為0
service password-encryptin
手工加密所有密碼
enable password +密碼 配置明文密碼
ena sec +密碼 配置密文密碼
line vty 0
4/15 進入telnet介面
password +密碼 配置telnet密碼
line aux 0 進入AUX介面
password
+密碼 配置密碼
line con 0 進入CON介面
password +密碼 配置密碼
bandwidth+數字 配置帶寬
no ip address 刪除已配置的IP地址
show startup config 查看NVRAM中的配置信息
run-config atartup config 保存信息到NVRAM
write 保存信息到NVRAM
erase
startup-config 清除NVRAM中的配置信息
show ip interface brief 查看介面的謫要信息
banner
motd # +信息 + # 配置路由器或交換機的描素信息
description+信息 配置介面聽描素信息
vlan database
進入VLAN資料庫模式
vlan +vlan號+ 名稱 創建VLAN
switchport access vlan +vlan號
為VLAN為配介面
interface vlan +vlan號 進入VLAN介面模式
ip add +ip地址 為VLAN配置管理IP地址
vtp+service/tracsparent/client 配置SW的VTP工作模式
vtp +domain+域名 配置SW的VTP域名
vtp +password +密碼 配置SW的密碼
switchport mode trunk 啟用中繼
no vlan +vlan號
刪除VLAN
show spamming-tree vlan +vlan號 查看VLA怕生成樹議
三. 路由器配置命令
ip
route+非直連網段+子網掩碼+下一跳地址 配置靜態/默認路由
show ip route 查看路由表
show protocols
顯示出所有的被動路由協議和介面上哪些協議被設置
show ip protocols 顯示了被配置在路由器上的路由選擇協議,同時給出了在路由選擇協議中使用
的定時器
等信息
router rip 激活RIP協議
network +直連網段 發布直連網段
interface lookback 0 激活邏輯介面
passive-interface +介面類型+介面號 配置介面為被動模式
debug ip +協議 動態查看路由更新信息
undebug all 關閉所有DEBUG信息
router eigrp +as號
激活EIGRP路由協議
network +網段+子網掩碼 發布直連網段
show ip eigrp neighbors 查看鄰居表
show ip eigrp topology 查看拓撲表
show ip eigrp traffic 查看發送包數量
router
ospf +process-ID 激活OSPF協議
network+直連網段+area+區域號 發布直連網段
show ip ospf
顯示OSPF的進程號和ROUTER-ID
encapsulation+封裝格式 更改封裝格式
no ip admain-lookup
關閉路由器的域名查找
ip routing 在三層交換機上啟用路由功能
show user 查看SW的在線用戶
clear line
+線路號 清除線路
四. 三層交換機配置命令
配置一組二層埠
configure terminal 進入配置狀態
nterface range {port-range} 進入組配置狀態
配置三層埠
configure terminal 進入配置狀態
interface {{fastethernet | gigabitethernet} interface-id} | {vlan vlan-id} |
{port-
channel port-channel-number} 進入埠配置狀態
no switchport
把物理埠變成三層口
ip address ip_address subnet_mask 配置IP地址和掩碼
no shutdown 激活埠
例:
Switch(config)# interface gigabitethernet0/2
Switch(config-if)#
no switchport
Switch(config-if)# ip address 192.20.135.21 255.255.255.0
Switch(config-if)# no shutdown
配置VLAN
configure terminal 進入配置狀態
vlan vlan-id 輸入一個VLAN號, 然後進入vlan配態,可以輸入一個新的VLAN號或舊的來進行修改
G. 求:思科3640交換機查看vlan命令和配置命令和配置乙太網介面命令.
1、查看vlan命令:
Switch#show vlan#查看vlan資料庫,vlan信息和所屬介面
2、配置VLAN命令(交換機配置VLAN,並給將埠加入到該VLAN為例):
cisco-sw1(config)#vlan 2
cisco-sw1(config-vlan)#name test
cisco-sw1(config-vlan)#exit
cisco-sw1(config)#interface fastEthernet 0/1
cisco-sw1(config-if)#switchport mode access
cisco-sw1(config-if)#switchport access vlan 2
(7)cisco交換機配置命令大全擴展閱讀:
思科交換機其他查看和配置命令:
1、Switch#show running-config#查看運行配置,可以通過回車鍵逐行顯示,也可通過空格鍵逐頁顯示
2、Switch#show version#查看設備軟體版本信息
3、Switch#show clock#查看系統時鍾也可用於查看log日誌後對應時鍾分析異常log的發起時間
4、Switch#show log#查看日誌,如介面異常關閉,鏈路的通斷,主備機切換
5、Switch#show interface#查看介面詳細狀態,如IP地址、MAC地址、帶寬負載及輸入輸出速率等
6、Switch#show interface description#快速查看介面連接狀態與描述
7、Switch#show interface status#快速查看介面狀態及所屬vlan及速率雙工
8、Switch#show cdp neighbor#查看CDP鄰居,CDP協議屬於思科私有協議,只能用於查看思科設備,可以查看設備的物理鏈路狀態和連接介面管理地址
9、Switch#show mac-addess-table [dynamic]#查看交換機的MAC地址,括弧裡面是可選項
H. Cisco交換機的常用命令有哪些
en 進入特權模式
conf 進入全局配置模式
in s0 進入 serial 0 埠配置
ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩碼,電信分配
enca hdlc/ppp 捆綁鏈路協議 hdlc 或者 ppp
ip unn e0
exit 回到全局配置模式
in e0 進入以太介面配置
ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx 添加ip 地址和掩碼,電信分配
exit 回到全局配置模式
ip route 0.0.0.0 0.0.0.0 s 0 添加路由表
ena password 口令
write
exit
以上根據中國電信 ddn 專線多數情況應用
普通用戶模式
enable 轉入特權用戶模式
exit 退出配置
help 系統幫助簡述
language 語言模式切換
ping 檢查網路主機連接及主機是否可達
show 顯示系統運行信息
telnet 遠程登錄功能
tracert 跟蹤到目的地經過了哪些路由器
#? 特權用戶模式
clear 清除各項統計信息
clock 管理系統時鍾
configure 進入全局配置模式
debug 開啟調試開關
disable 返回普通用戶模式
download 下載新版本軟體和配置文件
erase 擦除FLASH中的配置
exec-timeout 打開EXEC超時退出開關
exit 退出配置
first-config 設置或清除初次配置標志
help 系統幫助簡述
language 語言模式切換
monitor 打開用戶屏幕調試信息輸出開關
no 關閉調試開關
ping 檢查網路主機連接及主機是否可達
reboot 路由器重啟
setup 配置路由器參數
show 顯示系統運行信息
telnet 遠程登錄功能
tracert 跟蹤到目的地經過了哪些路由器
unmonitor 關閉用戶屏幕調試信息輸出開關
write 將當前配置參數保存至FLASH MEM中
全局配置模式
aaa-enable 使能配置AAA(認證,授權和計費)
access-list 配置標准訪問表
arp 設置靜態ARP人口
chat-script 生成一個用在modem上的執行腳本
custom-list 創建定製隊列列表
dialer-list 創建dialer-list
dram-wait 設置DRAM等待狀態
enable 修改ENABLE口令
exit 退出全局配置模式
firewall 配置防火牆狀態
flow-interval 設置流量控制時間間隔
frame-relay 幀中繼全局配置命令集
ftp-server FTP 伺服器
help 系統幫助命令簡述
host 添加主機名稱和其IP地址
hostname 修改主機名
ifquelen 更改介面隊列長度
interface 選擇配置介面
ip 全局IP配置命令子集
ipx 全局IPX配置命令子集
loghost 設置日誌主機IP地址
logic-channel 配置邏輯通道
login 啟動EXEC登錄驗證
modem-timeout 設置 modem 超時時間
multilink 配置multilink 用戶使用的介面
multilink-user 配置multilink 用戶使用的介面
natserver 設置FTP,TELNET,WWW服務的IP地址
no 關閉某些參數開關
priority-list 創建優先順序隊列列表
router 啟動路由處理
settr 設置時間范圍
snmp-server 修改SNMP參數
tcp 配置全局TCP參數
timerange 啟動或關閉時間區域
user 為PPP驗證向系統中加入用戶
vpdn 設置VPDN
vpdn-group 設置VPDN組
x25 X.25協議分組層
謝謝你給我的回答,做任何事情都要靠自己~!我會記住的~!希望我給你的答案能給你一點幫助~!·
I. cisco基本配置命令
Cisco 的交換機產品以「Catalyst 」為商標,包含1900 、2800 、2900 、3500 、4000 、5000 、5500 、6000 、8500 等十多個系列。
基本配置命令如下:
1、Switch>enable 進入特權模式
2、Switch #config terminal 進入全局配置模式
3、Switch(config)#hostname 設置交換機的主機名
4、Switch(config)#enable password 進入特權模式的密碼(明文形式保存)
5、Switch(config)#enablesecret 加密密碼(加密形式保存) (優先)
6、Switch(config)#ipdefault-gateway 配置交換機網關
7、Switch(config)#showmac-address-table 查看MAC地址
8、Switch(config)loggingsynchronous 阻止控制台信息覆蓋命令行上的輸入
9、Switch(config)no ipdomain-lookup 關閉DNS查找功能
10、Switch(config)exec-timeout 00 阻止會話退出
(9)cisco交換機配置命令大全擴展閱讀:
cisco常用配置命令:
一、使用Telnet遠程式管理
1、Switch(config)#line vty 0 4 進入虛擬終端
2、Switch (config-line)# password 設置登錄口令
3、Switch(config-line)# login 要求口令驗證
二、控制台口令
1、switch(config)#lineconsole 0 進入控制台口
2、switch(config-line)# password xx
3、switch(config-line)#設置登錄口令login 允許登錄
三、恢復出廠配置
Switch(config)#erasestartup-config
Switch(config)delete vlan.dat
J. CISCO交換機的查看配置命令是什麼
1、Router#show startup-config //查看啟動配置文件
啟動配置文件startup-config位於路由器的NVRAM中,可以長期保存。它在啟動路由器時裝入RAM,成為running-config。
2、Router#show version //查看路由器的版本信息
3、Router#show ip interface brief //查看路由器的介面狀態
(10)cisco交換機配置命令大全擴展閱讀:
工作在數據鏈路層。交換機擁有一條很高帶寬的背部匯流排和內部交換矩陣。交換機的所有的埠都掛接在這條背部匯流排上,控制電路收到數據包以後,處理埠會查找內存中的地址對照表以確定目的MAC(網卡的硬體地址)的NIC(網卡)掛接在哪個埠上。
通過內部交換矩陣迅速將數據包傳送到目的埠,目的MAC若不存在,廣播到所有的埠,接收埠回應後交換機會「學習」新的地址,並把它添加入內部MAC地址表中。使用交換機也可以把網路「分段」,通過對照MAC地址表,交換機只允許必要的網路流量通過交換機。
通過交換機的過濾和轉發,可以有效的減少沖突域,但它不能劃分網路層廣播,即廣播域。交換機在同一時刻可進行多個埠對之間的數據傳輸。每一埠都可視為獨立的網段,連接在其上的網路設備獨自享有全部的帶寬,無須同其他設備競爭使用。當節點A向節點D發送數據時,節點B可同時向節點C發送數據,而且這兩個傳輸都享有網路的全部帶寬,都有著自己的虛擬連接。
假使這里使用的是10Mbps的乙太網交換機,那麼該交換機這時的總流通量就等於2×10Mbps=20Mbps,而使用10Mbps的共享式HUB時,一個HUB的總流通量也不會超出10Mbps。
總之,交換機是一種基於MAC地址識別,能完成封裝轉發數據包功能的網路設備。交換機可以「學習」MAC地址,並把其存放在內部地址表中,通過在數據幀的始發者和目標接收者之間建立臨時的交換路徑,使數據幀直接由源地址到達目的地址。