




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、三層交換機(jī)配置命令以及中文解釋基本配置S enable進(jìn)入特權(quán)模式S# configure terminal進(jìn)入全局配置模式S(config)# hostname name 改變交換機(jī)名稱S(config)# enable password level level_# password 設(shè)置用戶口令(level_#=1)或特權(quán)口令(level_#=15)S(config)# line console 0 進(jìn)入控制臺(tái)接口S(config-line)# password console_password 接上一條命令,設(shè)置控制臺(tái)口令S(config)# line vty 0 15 進(jìn)入虛擬終端S(
2、config-line)# password telnet_password 接上一條命令,設(shè)置 Telnet 口令S(config-line)# login 允許 Telnet 登錄S(config)# enable password|secret privilege_password 配置特權(quán)口令(加密或不加密)S(config)# interface ethernet|fastethernet|gigabitethernet slot_#/port_# 進(jìn)入接口子配置模式S(config-if)# no shutdown關(guān)閉或啟用該接口(默認(rèn)啟用)S(config)# ip addres
3、s IP_address sunbet_mask 指定 IP 地址S(config)# ip default-gateway routers_IP_address 指定哪臺(tái)路由器地址為默認(rèn)網(wǎng)關(guān)S# show running-config查看當(dāng)前的配置S# copy running-config startup-config 將 RAM 中的當(dāng)前配置保存到 NVRAM 中S show interface type slot_#/port_#查看所有或指定接口的信息S show ip顯示交換機(jī)的IP配置(只在1900系列上可用)S show version查看設(shè)備信息S# show ip inte
4、rface brief 驗(yàn)證 IP 配置S(config-if)# speed 10|100|auto 設(shè)置接口速率S(config-if)# duplex auto|full|half 設(shè)置接口雙工模式S show mac-address-table 查看 CAM 表S# clear mac-address-table清除CAM表中的動(dòng)態(tài)條目1900(config)# mac-address-table permanent MAC_address type slot_#/port_# 在 CAM 表 中創(chuàng)建靜態(tài)條目2950(config)# mac-address-table static
5、MAC_address vlan VLAN_# interface type slot_#/ port_#在CAM表中創(chuàng)建靜態(tài)條目1900(config)# mac-address-table restricted static MAC_address source_portlist_of_allowed_interface設(shè)置靜態(tài)端口安全措施1900(config-if)# port secure 啟用粘性學(xué)習(xí)1900(config-if)# port secure max-mac-count value設(shè)置粘性學(xué)習(xí)特性能夠?qū)W到的地址數(shù)量(默 認(rèn)132,取值范圍是1-132)1900(con
6、fig)# address-violation suspend|ignore|disable 改變安全選項(xiàng)1900 show mac-address-table security 驗(yàn)證端口安全措施2950(config)# switchport mode access定義接口為主機(jī)端口而不是中繼端口2950(config)# switchport port-security 啟用端口安全措施2950(config)# switchport port-security maximum value 指定可與此接口相關(guān)的設(shè)備的最大數(shù) 量2950(config)# switchport port-se
7、curity violation protect|restrict|shutdown 指定出現(xiàn)安全違規(guī)時(shí)應(yīng)該發(fā)生的事2950(config)# switchport port-security mac-address MAC_address 指定允許與此接口相關(guān)的確 切的MAC地址2950(config)# switchport port-security mac-address sticky 啟用粘性學(xué)習(xí)特性2950(config)# show port interface type slot_#/ port_# 驗(yàn)證接口配置2950(config-if) description name
8、設(shè)置接口描述信息2950# show buffers查看系統(tǒng)緩存的大小1900# copy nvram tftp:/ IP_address_of_TFTP_server/ file_name 將配置文件備份到 TFTP 服務(wù) 器上1900# copy tftp:/ IP_address_of_TFTP_server/ file_name nvram 從 TFTP 服務(wù)器上恢復(fù)配置到 NVRAM1900# delete nvram 刪除配置文件2950# erase startup-config 刪除配置文件3550# show tcam qos TCAM_ID statistics 查看 TC
9、AM 剩余容量4000 enable進(jìn)入特權(quán)模式4000(enable) set enablepass 設(shè)置授權(quán)密碼4000(enable) set interface sc0 IP_address mask 配置 IP 地址4000(enable) set port enable|disable slot_#/port_# 啟用/禁用接口4000(enable) show port slot_#/port_#顯示接口信息4000(enable) set port name slot_#/port_# name 設(shè)置交換機(jī)接口描述信息4000(enable) set port speed sl
10、ot_#/port_# 4|10|16|100|auto 設(shè)置交換機(jī)接口速率4000(enable) set port duplex slot_#/port_# full|half 設(shè)置交換機(jī)接口雙工模式4000(enable) clear config all 刪除 NVRAM 中的配置信息4000(enable) erase all 刪除 FLASH 中的內(nèi)容4000(enable) show flash 顯示 FLASH 中的內(nèi)容4000(enable) show cam count dynamic|static|permanent|system vlan_# 顯示 CAM 表VLAN
11、1900(config)# vtp domain VTP_domain_name 定義交換機(jī)域名1900(config)# vtp server|client|transparent 定義交換機(jī) VTP 模式(默認(rèn)服務(wù)器)1900(config)# vtp password VTP_password 配置 VTP 口令1900(config)# vtp pruning enable|disable 啟用/禁用修剪(默認(rèn)啟用)1900(config)# vtp trap enable 啟用 SNMP 陷阱(默認(rèn)啟用)1900# show vtp 驗(yàn)證 VTP 配置2950# vtp databa
12、se訪問VLAN和VTP配置(以下均是在IOS12.1前用,12.1后全是在全局 配置模式下)2950(vlan)# vtp domain VTP_domain_name 定義交換機(jī)域名2950(vlan)# vtp server|client|transparent 定義交換機(jī) VTP 模式(默認(rèn)服務(wù)器)2950(vlan)# vtp password VTP_password 配置 VTP 口令2950(vlan)# vtp pruning啟用/禁用修剪(默認(rèn)啟用)2950(config)# snmp-server enable traps vtp 啟用 SNMP 陷阱(默認(rèn)啟用)2950
13、# show vtp status 檢查 VTP 配置2950# show vtp counters顯示與VTP消息發(fā)送與接收相關(guān)的VTP統(tǒng)計(jì)信息1900(config-if)# trunk on|off|desirable|auto 指定中繼類型1900# show trunk A|B 驗(yàn)證接口中繼(A 是 fa0/26,B 是 fa0/27)2950(config-if)# switchport mode trunk|dynamic desirable|dynamic auto|nonegotiate 指定中繼類 型(默認(rèn)自動(dòng)協(xié)商)2950(config-if)# switchport t
14、runk nativelallowedlpruning vlan VLAN_# 配置中繼2950(config-if)# switchport trunk pruning vlan remove VLAN_# 清除不希望消減的 VLAN2950# show interfaces type 0/port_# switchport|trunk 驗(yàn)證接口中繼1900(config)# vlan VLAN_# name VLAN_name創(chuàng)建 VLAN1900(config-if)# vlan-membership static VLAN_# 將該接 口靜態(tài)地分配給一個(gè) VLAN1900# show
15、vlan 驗(yàn)證 VLAN1900# show vlan-membership 查看 VLAN 成員關(guān)系1900# show spantree VLAN_#查看 VLAN 的 STP 信息2950# vlan database 進(jìn)入 VLAN 數(shù)據(jù)庫(kù)(ISO12.1 前用)2950(vlan)# vlan VLAN_# name VLAN_name創(chuàng)建 VLAN2950(config)# vlan VLAN_# 進(jìn)入 VLAN數(shù)據(jù)庫(kù)(ISO12.1 后用)2950(config-vlan)# name VLAN_name 創(chuàng)建 VLAN2950(config-if)# switchport mo
16、de access 指定連接是接入鏈路連接2950(config-if)# switchport access vlan VLAN_# 指定 VLAN 是接入鏈路連接4000(enable) set vlan VLAN_# name VLAN_name 配置 VLAN4000(enable) set vlan VLAN_# slot_#/port_#-port_# 為 VLAN 分配端口4000(enable) set trunk slot_#/port_# on|off|desirable|auto|nonegotiate VLAN_#isl|dot1q|dot10|lane|negotia
17、te配置中繼4000(enable) clear trunk slot_#/port_# VLAN_# 刪除 VLAN4000(enable) show trunk slot_#/port_# 驗(yàn)證中繼端口4000(enable) set vtp v2 enable 配置 VTPv24000(enable) set vtp domain name mode client|server|transparent passwd password pruningenable|disable v2 enable|disable設(shè)置 VTP4000(enable) show vtp domain 驗(yàn)證 V
18、TP 域的信息4000(enable) show vtp statistics顯示發(fā)出或收到的VTP通告信息的摘要內(nèi)容4000(enable) set vtp pruneeligible VLAN_# 設(shè)置 VTP 消減4000(enable) clear vtp pruneeligible VLAN_# 清除不希望消減的 VLANSTP 4000(enable) set spantree enableldisable VLAN_# 啟用/禁用 STP (默認(rèn)啟用)2950(config)# no spanning-tree vlan VLAN_# 啟用/禁用 STP (默認(rèn)啟用)4000(e
19、nable) show spantree VLAN_#驗(yàn)證 STP 狀態(tài)2950# show spanning-tree 驗(yàn)證 STP 狀態(tài)4000(enable) set spantree root secondary VLAN_# dia network_diameter hello hello_time設(shè)置主根節(jié)點(diǎn)橋、備份節(jié)點(diǎn)橋、最大橋數(shù)量(2-7)、持續(xù)時(shí)間(1-10,默認(rèn)2)4000(enable) set spantree portcost slot_#/port_# cost_# 設(shè)置端口開銷2950(config-if)# spanning-tree cost cost_# 設(shè)
20、置端口開銷4000(enable) set spantree portpri slot_#/port_# priority_# 設(shè)置端口優(yōu)先級(jí)4000(enable) set spantree portvlanpri slot_#/port_# priority_# VLAN_#改變 VLAN 的優(yōu)先級(jí) 設(shè)置2950(config-if)# spanning-tree vlan VLAN_# port-priority priority_# 設(shè)置端口優(yōu)先級(jí)4000(enable) set spantree fwddelay delay_# VLAN_#設(shè)置從偵聽狀態(tài)到學(xué)習(xí)狀態(tài)再到轉(zhuǎn)發(fā)狀態(tài)的時(shí)間
21、間隔(默認(rèn)15秒,取值范圍是4-30秒)4000(enable) set spantree hello interval_time VLAN_#設(shè)置根節(jié)點(diǎn)交換機(jī)發(fā)送 BPDU 的時(shí)間間隔(默認(rèn)2秒,取值范圍是1-10秒)4000(enable) set spantree maxage agingtime VLAN_#設(shè)置交換機(jī)持有 BPDU的時(shí)間(默認(rèn)20秒,取值范圍是6-40秒)2950(config)# spanning-tree vlan VLAN_# forward-time forward_time 設(shè)置從偵聽狀態(tài)到學(xué)習(xí)狀態(tài)再到轉(zhuǎn)發(fā)狀態(tài)的時(shí)間間隔(默認(rèn)15秒,取值范圍是4-30秒)2
22、950(config)# spanning-tree vlan VLAN_# hello-time hello_time 設(shè)置根節(jié)點(diǎn)交換機(jī)發(fā)送BPDU的時(shí)間間隔(默認(rèn)2秒,取值范圍是1-10秒)2950(config)# spanning-tree vlan VLAN_# max-age maxage 設(shè)置交換機(jī)持有 BPDU 的時(shí)間(默認(rèn)20秒,取值范圍是6-40秒)4000(enable) set port channel slot_#/port_# on 建立以太通道集合4000(enable) show port capabilities slot_#/port_# 查看端口 的配置4
23、000(enable) show port channel驗(yàn)證以太通道集合的配置2950(config-if)# channel-group group_number mode auto|desirable|on 建立以太通道集合2950# show etherchannel group_number|brief|detail|load-balance|port|port-channel|summary 驗(yàn) 證以太通道集合的配置4000(enable) set spantree portfast slot_#/port_# enable 酉己置 PortFast2950(config-if)#
24、 spanning-tree portfast 酉己置 PortFast4000(enable) set spantree uplinkfast enable|disable rate station_update_rate all-protocolsoff|on啟用/禁用 UplinkFast4000(enable) show spantree uplinkfast 驗(yàn)證 UplinkFast 配置2950(config)# spanning-tree uplinkfast max_update_rate 啟用/禁用 UplinkFast2950# show spanning-tree up
25、linkfast 驗(yàn)證 UplinkFast 配己置4000(enable) set spantree backbonefast enable|disable 啟用/禁用 BackboneFast4000(enable) show spantree backbonefast 驗(yàn)證 BackboneFast 配置2950(config)# spanning-tree backbonefast 啟用 BackboneFast虛擬網(wǎng)間路由2600(config)# interface type slot_#/port_#.subint_number 配置子接口2600(config-subif)#
26、encapsulation dot1q|isl|sde|tr-isl VLAN_# 配置封裝類型4000(enable) show module查看交換機(jī)的硬件配置4000(enable) session module_# 訪問 L3SML3SM(config-if)# mac-address mac_address 分配 MAC 地址MLS 2600(config)# mls rp ip 啟動(dòng) MLS2600(config-if)# mls rp vtp-domain domain_name 分配路由器接口到 VTP 域中2600(config-if)# mls rp vlan-id VLA
27、N_# 向接 口分配 VLAN2600(config-if)# mls rp management-interface 指定該接口為管理接口2600# show mls rp提供全局MLS信息2600# show mls rp interface type slot_#/port_# 提供指定接口的 MLS 信息2600# show mls rp vtp-domain domain_name 提供 VTP 域的 MLS 信息6500(enable) set mls enable 在 MLS-SE 上啟動(dòng) MLS6500(enable) set mls include rp_ip_address
28、 告訴交換機(jī)哪一個(gè) IP 地址是正確的6500(enable) show mls include顯示外部路由處理器的IP地址列表6500(enable) set mls flow destination|destination-source|full告訴 MLS 交換機(jī)要緩存候選數(shù)據(jù)包的哪些信息6500(enable) set mls agingtime aging_time改變緩存的衰老時(shí)間(默認(rèn)256秒,取值范圍是 8-2032秒中的8的倍數(shù)值)6500(enable) set mls agingtime fast fast_aging_time pkt_threshold 改變快速衰老周
29、期和數(shù)據(jù)包門限值6500(enable) show mls ip 驗(yàn)證 MLS-SE 的配置6500(enable) clear mls entry destination IP_address source IP_address flow protocolsource_port destination_port all刪除所有或指定 MLS 緩存記錄3550(config)# ip routing 啟動(dòng) IP 路由3550(config)# ip cef 啟動(dòng) CEF3550(config-if)# no switchport將第二層接口轉(zhuǎn)換為第三層接口3550(config-if)# ip
30、 route-cache cef 在接口上啟動(dòng) CEF3550# show ip cef 驗(yàn)證 CEF組播3640(config)# ip multicast-routing啟動(dòng)路由器上的組播服務(wù)3640(config-if)# ip pim dense-mode 將接口 設(shè)置為 PIM 密集模式3640(config-if)# ip pim sparse-mode 將接口 設(shè)置為 PIM 稀疏模式3640(config-if)# ip pim sparsed-dense-mode 將接口 設(shè)置為 PIM 稀疏-密集模式3640(config)# ip pim rp-address IP_ad
31、dress group_ACL_# override手工配置 RP3640(config)# ip pim send-rp-announce type slot_#/port_# scope ttl_value group-list ACL_# 通 告RP組的分配3640(config)# ip pim send-rp-discovery scope ttl_value 配置 RP 映射代理3640(config-if)# ip multicast ttl-threshold ttl_value 設(shè)置 TTL 門限值3640(config-if)# ip igmp join-group gro
32、up_address 加入組播組3640# show ip mroute查看組播信息3640# ping驗(yàn)證RP之間或其他組播路由器之間的連接3640# mtrace source_IP_address destination_IP_address group 組播 traceroute3640(config-if)# ip cgmp 配置 CGMP 路由器4000(enable) set cgmp enable 啟動(dòng) CGMP4000(enable) show cgmp statistics 查看 CGMP 統(tǒng)計(jì)信息4000(enable) set cgmp leave enable檢查由客
33、戶端產(chǎn)生的IGMPv2的離開信息4000(enable) set igmp enable 啟動(dòng) IGMP4000(enable) ip igmp snooping 啟動(dòng) IGMP 探聽4000(enable) set igmp fastleave enable 啟動(dòng)快速離開過程4000(enable) show igmp statistics顯示交換機(jī)上IGMP探聽的狀態(tài)信息QoS 2950(config)# wrr-queue cos-map queue_ID cos_value 建立隊(duì)列2950(config)# wrr-queue bandwidth bandwidth_value 設(shè)置隊(duì)列門限2950(config)# class-maps name定義對(duì)信息傳輸分類時(shí)的匹配標(biāo)準(zhǔn)2950(
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 肥料預(yù)定合同范本
- 戶口遷出合同范本
- 幼兒園小班友誼教育方案計(jì)劃
- 舞蹈教務(wù)合同范本
- 離職員工反饋收集與改進(jìn)措施計(jì)劃
- 知識(shí)產(chǎn)全管理與企業(yè)品牌形象塑造
- 咨詢欠款合同范本
- 2025年幼兒園大班教案新思維:一寸蟲數(shù)學(xué)教學(xué)實(shí)踐
- 2025年幼兒園過馬路安全標(biāo)準(zhǔn)教案8篇
- 科技教室的創(chuàng)意布置方案分享
- 環(huán)境巖土工程學(xué)課件-東南大學(xué)-潘華良境巖土工程學(xué)概論-9大環(huán)境巖土工程問題
- 《紅樓夢(mèng)》中寶黛之間的愛情與悲劇分析
- 養(yǎng)老產(chǎn)業(yè)并購(gòu)重組
- 2024年1月浙江高考英語聽力考試試題真題完整版答案詳解+MP3文本
- 《SolidWorks建模實(shí)例教程》第5章 裝配建模及實(shí)例
- 口腔科護(hù)理教學(xué)查房
- 《趙匡胤:北宋的開國(guó)皇帝》
- 二年級(jí) 書法 開學(xué)第一課課
- 精神科病人跌倒的預(yù)防與處理
- 蒸壓加氣混凝土砌塊干燥收縮檢測(cè)記錄11969-2020
- 2023-2024學(xué)年第二學(xué)期人教版英語五年級(jí)教學(xué)計(jì)劃(含進(jìn)度表)
評(píng)論
0/150
提交評(píng)論