版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、交換機(jī)和路由器基本配置命令在基于IOS的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名:switch(config)# hostname hostname在基于CLI的交換機(jī)上設(shè)置主機(jī)名/系統(tǒng)名:switch(enable) set system name name -string在基于IOS的交換機(jī)上設(shè)置登錄口令:switch(config)# enable password level 1 password在基于CLI的交換機(jī)上設(shè)置登錄口令:switch(enable) set passwordswitch(enable) set enalbepass在基于IOS的交換機(jī)上設(shè)置遠(yuǎn)程訪問(wèn):switch(conf
2、ig)# interface vlan 1switch(config-if)# ip address ip-address netmaskswitch(config-if)# ip default-gateway ip-address在基于CLI的交換機(jī)上設(shè)置遠(yuǎn)程訪問(wèn):switch(enable) set interface sc0 ip -address netmask broadcast-addressswitch(enable) set interface sc0 vlanswitch(enable) set ip route default gateway在基于IOS的交換機(jī)上啟用和瀏
3、覽CDP信息:switch(config-if)# cdp enableswitch(config-if)# no cdp enable為了查看Cisco鄰接設(shè)備的CDP通告信息:switch# show cdp interface type modle/portswitch# show cdp neighbors type module/port detail在基于CLI的交換機(jī)上啟用和瀏覽CDP信息:switch(enable) set cdp enable|disable module/port為了查看Cisco鄰接設(shè)備的CDP通告信息:switch(enable) show cdp n
4、eighborsmodule/port vlan|duplex|capabilities|detail基于IOS的交換機(jī)的端口描述:switch(config-if)# description description-string基于CLI的交換機(jī)的端口描述:switch(enable)set port name module/number description-string在基于IOS的交換機(jī)上設(shè)置端口速度:switch(config-if)# speed10|100|auto在基于CLI的交換機(jī)上設(shè)置端口速度:switch(enable) set port speed moudle/nu
5、mber 10|100|autoswitch(enable) set port speed moudle/number 4|16|auto在基于IOS的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式:switch(config-if)# duplex auto|full|half在基于CLI的交換機(jī)上設(shè)置以太網(wǎng)的鏈路模式:switch(enable) set port duplex module/number full|half在基于IOS的交換機(jī)上配置靜態(tài)VLAN:switch# vlan databaseswitch(vlan)# vlan vlan-num name vlaswitch(vlan)# ex
6、itswitch# configure teriminalswitch(config)# interface interface module/numberswitch(config-if)# switchport mode accessswitch(config-if)# switchport access vlan vlan-numswitch(config-if)# end在基于CLI的交換機(jī)上配置靜態(tài)VLAN:switch(enable) set vlan vlan-num name nameswitch(enable) set vlan vlan-num mod -num/port-
7、list在基于IOS的交換機(jī)上配置VLAN中繼線:switch(config)# interface interface mod/portswitch(config-if)# switchport mode trunkswitch(config-if)# switchport trunk encapsulation isl|dotlqswitch(config-if)# switchport trunk allowed vlan remove vlan-listswitch(config-if)# switchport trunk allowed vlan add vlan-list在基于CL
8、I的交換機(jī)上配置VLAN中繼線:switch(enable) set trunk module/port on|off|desirable|auto|nonegotiateVlan-range isl|dotlq|dotl0|lane|negotiate在基于IOS的交換機(jī)上配置VTP管理域:switch# vlan databaseswitch(vlan)# vtp domain domain -name在基于CLI的交換機(jī)上配置VTP管理域:switch(enable) set vtp domain domain-name在基于IOS的交換機(jī)上配置VTP模式:switch# vlan da
9、tabaseswitch(vlan)# vtp domain domain -nameswitch(vlan)# vtp sever|cilent|transparentswitch(vlan)# vtp password password在基于CLI的交換機(jī)上配置VTP模式:switch(enable) set vtp domain domain-name mode sever|cilent|transparent password password在基于IOS的交換機(jī)上配置VTP版本:switch# vlan databaseswitch(vlan)# vtp v2-mode在基于CLI的
10、交換機(jī)上配置VTP版本:switch(enable) set vtp v2 enable在基于IOS的交換機(jī)上啟動(dòng)VTP剪裁:switch# vlan databaseswitch(vlan)# vtp pruning在基于CL I的交換機(jī)上啟動(dòng)VTP剪裁:switch(enable) set vtp pruning enable在基于IOS的交換機(jī)上配置以太信道:switch(config-if)# port group group-number distribution source|destination在基于CLI的交換機(jī)上配置以太信道:switch(enable) set port
11、channel moudle/port-range modeonloffldesirablelauto在基于IOS的交換機(jī)上調(diào)整根路徑成本:switch(config-if)# spanning-tree vlan vlan-list cost cost在基于CLI的交換機(jī)上調(diào)整根路徑成本:switch(enable) set spantree portcost moudle/port costswitch(enable) set spantree portvlancost moudle/port cost costvlan-list在基于IOS的交換機(jī)上調(diào)整端口 ID:switch(conf
12、ig-if)# spanning-treevlan vlan-listport-priority port-priority在基于CLI的交換機(jī)上調(diào)整端口 ID:switch(enable) set spantree portpri mldule/portpriorityswitch(enable) set spantree portvlanpri module/portpriority vlans在基于IOS的交換機(jī)上修改STP時(shí)鐘:switch(config)# spanning-tree vlan vlan-list hello-time secondsswitch(config)# s
13、panning-tree vlan vlan-list forward-time seconds switch(config)# spanning-tree vlan vlan-list max-age seconds在基于CLI的交換機(jī)上修改STP時(shí)鐘:switch(enable) set spantree hello intervalvlanswitch(enable) set spantree fwddelay delay vlanswitch(enable) set spantree maxage agingtiamevlan在基于IOS的交換機(jī)端口上啟用或禁用Port Fast特征:
14、switch(config-if)#spanning-tree portfast在基于CLI的交換機(jī)端口上啟用或禁用Port Fast特征:switch(enable) set spantree portfast module/portenableldisable在基于IOS的交換機(jī)端口上啟用或禁用UplinkFast特征:switch(config)# spanning-tree uplinkfast max-update-rate pkts-per-second在基于CLI的交換機(jī)端口上啟用或禁用UplinkFast特征:switch(enable) set spantree uplink
15、fast enableldisablerate update-rate all-protocols offlon為了將交換機(jī)配置成一個(gè)集群的命令交換機(jī),首先要給管理接口分配一個(gè)IP地址,然后使用下列命令:switch(config)# cluster enable cluster-name為了從一條中繼鏈路上刪除VLAN,可使用下列命令:switch(enable) clear trunk module/port vlan-range用show vtp domain顯示管理域的VTP參數(shù).用show vtp statistics顯示管理域的VTP參數(shù).在Catalyst交換機(jī)上定義TrBRF的
16、命令如下:switch(enable) set vlan vlan-name name name type trbrf bridge bridge-numstp ieeelibm在Catalyst交換機(jī)上定義TrCRF的命令如下:switch (enable) set vlan vlan-num name name type trcrfring hex-ring-numldecring decimal-ring-num parent vlan-num在創(chuàng)建好TrBRF VLAN之后,就可以給它分配交換機(jī)端口 ,對(duì)于以太網(wǎng)交換,可以采用如下命 令給VLAN分配端口 :switch(enable)
17、 set vlan vlan-num mod -num/port-num命令show spantree顯示一個(gè)交換機(jī)端口的STP狀態(tài).配置一個(gè)ELAN的LES和BUS,可以使用下列命令:ATM (config)# interface atm number.subint mu ltiointATM(config-subif)# lane serber-bus ethernet elan-name配置 LECS:ATM(config)# lane database database-nameATM(lane-config-databade)# name elan1-name server-atm-
18、address les1-nsap-address ATM(lane-config-databade)# name elan2-name server-atm-address les2-nsap-address ATM(lane-config-databade)# name .創(chuàng)建完數(shù)據(jù)庫(kù)后,必須在主接口上啟動(dòng)LECS.命令如下: ATM(config)# interface atm numberATM(config-if)# lane config database database-name ATM(config-if)# lane config auto-config-atm-addre
19、ss將每個(gè)LEC配置到一個(gè)不同的ATM子接口上.命令如下:ATM(config)# interface atm number.subint multipoint ATM(config)# lane client ethernet vlan-num elan-num用 show lane server 顯示 LES 的狀態(tài).用show lane bus顯示bus的狀態(tài).用show lane database顯示LECS數(shù)據(jù)庫(kù)可內(nèi)容.用 show lane client 顯示 LEC 的狀態(tài).用show module顯示已安裝的模塊列表.用物理接口建立與VLAN的連接: router# confi
20、gure terminal router(config)# interface media module/port router(config-if)# description description-string router(config-if)# ip address ip-addr subnet-mask router(config-if)# no shutdown用中繼鏈路來(lái)建立與VLAN的連接: router(config)# interface module/port.subinterface router(config-ig)# encapsulationisl|dotlq v
21、lan-number router(config-if)# ip address ip-address subnet-mask用LANE來(lái)建立與 VLAN的連接: router(config)# interface atm module/port router(config-if)# no ip address router(config-if)# atm pvc 1 0 5 qsaal router(config-if)# atm pvc 2 0 16 ilnirouter(config-if)# interface atm module/port.subinterface multipoi
22、nt router(config-if)# ip address ip-address subnet-mask router(config-if)# lane client ethernet elan-num router(config-if)# interface atm module/port.subinterface multipoint router(config-if)# ip address ip-address subnet-name router(config-if)# lane client ethernet elan-name router(config-if)# .為了在
23、路由處理器上進(jìn)行動(dòng)態(tài)路由配置,可以用下列IOS命令來(lái)進(jìn)行: router(config)# ip routingrouter(config)# router ip-routing-protocol router(config-router)# network ip-network-numberrouter(config-router)# network ip-network-number配置默認(rèn)路由:switch(enable) set ip route default gateway為一個(gè)路由處理器分配VLANID,可在接口模式下使用下列命令:router(config)# interfac
24、e interface numberrouter(config-if)# mls rp vlan-id vlan-id-num在路由處理器啟用MLSP:router(config)# mls rp ip為了把一個(gè)外置的路由處理器接口和交換機(jī)安置在同一個(gè) VTP域中:router(config)# interface interface numberrouter(config-if)# mls rp vtp-domain domain-name查看指定的VTP域的信息:router# show mls rp vtp-domain vtp domain name要確定RSM或路由器上的管理接口,可
25、以在接口模式下輸入下列命令:router(config-if)#mls rp management-interface要檢驗(yàn)MLS-RP的配置情況:router# show mls rp檢驗(yàn)特定接口上的MLS配置:router# show mls rp interface interface number為了在MLS-SE上設(shè)置流掩碼而又不想在任一個(gè)路由處理器接口上設(shè)置訪問(wèn)列表:set mls flow destinationldestination-sourcelfull為使MLS和輸入訪問(wèn)列表可以兼容,可以在全局模式下使用下列命令:router(config)# mls rp ip inp
26、ut-acl當(dāng)某個(gè)交換機(jī)的第3層交換失效時(shí),可在交換機(jī)的特權(quán)模式下輸入下列命令:switch(enable) set mls enable若想改變老化時(shí)間的值,可在特權(quán)模式下輸入以下命令:switch(enable) set mls agingtime agingtime設(shè)置快速老化:switch(enable) set mls agingtime fast fastagingtime pkt_threshold確定那些MLS-RP和MLS-SE參與了 MLS,可先顯示交換機(jī)引用列表中的內(nèi)容再確定:switch(enable) show mls include顯示MLS高速緩存記錄:switc
27、h(enable) show mls entry用命令show in arp顯示ARP高速緩存區(qū)的內(nèi)容。要把路由器配置為HSRP備份組的成員,可以在接口配置模式下使用下面的命令:router(config-if)# standby group-number ip ip-address為了使一個(gè)路由器重新恢復(fù)轉(zhuǎn)發(fā)路由器的角色,在接口配置模式下:router(config-if)# standy group-number preempt訪問(wèn)時(shí)間和保持時(shí)間參數(shù)是可配置的:router(config-if)# standy group-number timers hellotime holdtime配
28、置HSRP跟蹤:router(config-if)# standy group-number track type-number interface-priority要顯示HSRP路由器的狀態(tài):router# show standby type-number group brief用命令show ip igmp確定當(dāng)選的查詢(xún)器。啟動(dòng)IP組播路由選擇:router(config)# ip muticast-routing啟動(dòng)接口上的PIM:dalllasr1(config-if)# ip pim dense-mode|sparse-mode|sparse-dense-mode啟動(dòng)稀疏-稠密模式下
29、的PIM:router# ip multicast-routingrouter# interface type numberrouter# ip pim sparse-dense-mode核實(shí)PIM的配置:dallasr1# show ip pim interfacetype number count顯示PIM鄰居:dallasr1# show ip neighbor type number為了配置RP的地址,命令如下:dallasr1# ip pim rp-address ip-address group-access-list-numberoverride選擇一個(gè)默認(rèn)的RP:dallasr
30、1# ip pim rp-address通告RP和它所服務(wù)的組范圍:dallasr1# ip pim send-rp-announce type number scope ttl group-list access-list-number為管理范圍組通告RP的地址:dallasr1# ip pim send-rp-announce ethernet0 scope 16 group-list1dallasr1# access-list 1 permit 2 55設(shè)定一個(gè)RP映像代理:dallasr1# ip pim send-rp-discovery scope ttl核實(shí)組到RP的映像:dal
31、lasr1# show ip pim rp mappingdallasr1# show ip pim rp group-name|group-address mapping在路由器接口上用命令 ip multicast ttl-threshold ttl-value 設(shè)定 TTL 閥值:dallasr1(config-if)# ip multicast ttl-threshold ttl-value用 show ip pim neighbor 顯示 PIM 鄰居表。顯示組播通信路由表中的各條記錄:dallasr1show ip mroute group-name|group-addresssc
32、ouresummarycountactive kbps要記錄一個(gè)路由器接受和發(fā)送的全部IP組播包:dallasr1 #debug ip mpacket detail access-listgroup要在CISCO路由器上配置CGMP:dallasr1(config-if)# ip cgmp配置一個(gè)組播路由器,使之加入某一個(gè)特定的組播組:dallasr1(config-if)# ip igmp join-group group-address關(guān)閉 CGMP:dallasr1(config-if)# no ip cgmp啟動(dòng)交換機(jī)上的CGMP:dallasr1(enable) set cgmp e
33、nable核實(shí)Catalyst交換機(jī)上CGMP的配置情況:catalystla1(enable) show configset prompt catalystla1set interface sc0 set cgmp enableCGMP離開(kāi)的設(shè)置:Dallas_SW(enable) set cgmp leave在Cisco設(shè)備上修改控制端口密碼:R1(config)# line console 0R1(config-line)# loginR1(config-line)# password LisbonR1(config)# enable password LilbaoR1(config)#
34、 login localR1(config)# username student password cisco在Cisco設(shè)備上設(shè)置控制臺(tái)及vty端口的會(huì)話超時(shí):R1(config)# line console 0R1(config-line)# exec-timeout 5 10R1(config)# line vty 0 4R1(config-line)# exec-timeout 5 2在Cisco設(shè)備上設(shè)定特權(quán)級(jí):R1(config)# privilege configure level 3 usernameR1(config)# privilege configure level 3
35、 copy run startR1(config)# privilege configure level 3 pingR1(config)# privilege configure level 3 show runR1(config)# enable secret level 3 cisco使用命令privilege可定義在該特權(quán)級(jí)下使用的命令:router(config)# privilege mode level level command設(shè)定用戶(hù)特權(quán)級(jí):router(config)# enable secret level 3 dallasrouter(config)# enable s
36、ecret san-franrouter(config)# username student password cisco標(biāo)志設(shè)置與顯示:R1(config)# banner motd unauthorized access will be prosecuted!設(shè)置vty訪問(wèn):R1(config)# access-list 1 permit R1(config)# line vty 0 4R1(config)# access-class 1 in配置HTTP訪問(wèn):Router3(config)# access-list 1 permit Router3(config)# ip http se
37、verRouter3(config)# ip http access-class 1Router3(config)# ip http authentication localRouter3(config)# username student password cisco要啟用HTTP訪問(wèn),請(qǐng)鍵入以下命令:switch(config)# ip http sever在基于set命令的交換機(jī)上用setCL1啟動(dòng)和核實(shí)端口安全:switch(enable) set port security mod_num/port_numenable mac addressswitch(enable) show port mod_num/port_num在基于CiscoIOS命令的交換機(jī)上啟動(dòng)和核實(shí)端口安全:switch(config-if)# por
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 乙方監(jiān)理合同范例
- 個(gè)人自主賣(mài)房合同范例
- 北京教育培訓(xùn)合同范例
- 二建培訓(xùn)合同范例
- 醫(yī)院工傷服務(wù)合同范例
- 辦公出租花卉合同范本
- fob國(guó)貿(mào)合同范本
- 公司廣告招牌合同范本
- 兩個(gè)單位內(nèi)部經(jīng)營(yíng)合同范本
- 借款引流服務(wù)合同范本
- 浙江省杭州市2024年中考語(yǔ)文試卷(含答案)
- 世說(shuō)新語(yǔ)原文及翻譯-副本
- 電力通信光纜檢修標(biāo)準(zhǔn)化作業(yè)指導(dǎo)書(shū)
- 安全隱患舉報(bào)獎(jiǎng)勵(lì)制度
- 工貿(mào)行業(yè)企業(yè)安全生產(chǎn)標(biāo)準(zhǔn)化建設(shè)實(shí)施指南
- T-CACM 1560.6-2023 中醫(yī)養(yǎng)生保健服務(wù)(非醫(yī)療)技術(shù)操作規(guī)范穴位貼敷
- 2024年全國(guó)統(tǒng)一考試高考新課標(biāo)Ⅱ卷數(shù)學(xué)試題(真題+答案)
- 人教版小學(xué)數(shù)學(xué)一年級(jí)下冊(cè)第1-4單元教材分析
- JTS-215-2018碼頭結(jié)構(gòu)施工規(guī)范
- 2024年長(zhǎng)沙衛(wèi)生職業(yè)學(xué)院?jiǎn)握新殬I(yè)適應(yīng)性測(cè)試題庫(kù)含答案
- 2024山西省文化旅游投資控股集團(tuán)有限公司招聘筆試參考題庫(kù)附帶答案詳解
評(píng)論
0/150
提交評(píng)論