




已閱讀5頁,還剩6頁未讀, 繼續(xù)免費(fèi)閱讀
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
華為交換機(jī)6系列的配置手冊1. 交換機(jī)支持的命令: 交換機(jī)基本狀態(tài): switch: ;ROM狀態(tài), 路由器是rommon hostname ;用戶模式 hostname# ;特權(quán)模式 hostname(config)# ;全局配置模式 hostname(config-if)# ;接口狀態(tài) 交換機(jī)口令設(shè)置: switchenable ;進(jìn)入特權(quán)模式 switch#config terminal ;進(jìn)入全局配置模式 switch(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名 switch(config)#enable secret xxx ;設(shè)置特權(quán)加密口令 switch(config)#enable password xxa ;設(shè)置特權(quán)非密口令 switch(config)#line console 0 ;進(jìn)入控制臺口 switch(config-line)#line vty 0 4 ;進(jìn)入虛擬終端 switch(config-line)#login ;允許登錄 switch(config-line)#password xx ;設(shè)置登錄口令xx switch#exit ;返回命令 交換機(jī)VLAN設(shè)置: switch#vlan database ;進(jìn)入VLAN設(shè)置 switch(vlan)#vlan 2 ;建VLAN 2 switch(vlan)#no vlan 2 ;刪vlan 2 switch(config)#int f0/1 ;進(jìn)入端口1 switch(config-if)#switchport access vlan 2 ;當(dāng)前端口加入vlan 2 switch(config-if)#switchport mode trunk ;設(shè)置為干線 switch(config-if)#switchport trunk allowed vlan 1,2 ;設(shè)置允許的vlan switch(config-if)#switchport trunk encap dot1q ;設(shè)置vlan 中繼 switch(config)#vtp domain ;設(shè)置發(fā)vtp域名 switch(config)#vtp password ;設(shè)置發(fā)vtp密碼 switch(config)#vtp mode server ;設(shè)置發(fā)vtp模式 switch(config)#vtp mode client ;設(shè)置發(fā)vtp模式 交換機(jī)設(shè)置IP地址: switch(config)#interface vlan 1 ;進(jìn)入vlan 1 switch(config-if)#ip address ;設(shè)置IP地址 switch(config)#ip default-gateway ;設(shè)置默認(rèn)網(wǎng)關(guān) switch#dir flash: ;查看閃存 交換機(jī)顯示命令: switch#write ;保存配置信息 switch#show vtp ;查看vtp配置信息 switch#show run ;查看當(dāng)前配置信息 switch#show vlan ;查看vlan配置信息 switch#show interface ;查看端口信息 switch#show int f0/0 ;查看指定端口信息 2. 路由器支持的命令: 路由器顯示命令: router#show run ;顯示配置信息 router#show interface ;顯示接口信息 router#show ip route ;顯示路由信息 router#show cdp nei ;顯示鄰居信息 router#reload ;重新起動 路由器口令設(shè)置: routerenable ;進(jìn)入特權(quán)模式 router#config terminal ;進(jìn)入全局配置模式 router(config)#hostname ;設(shè)置交換機(jī)的主機(jī)名 router(config)#enable secret xxx ;設(shè)置特權(quán)加密口令 router(config)#enable password xxb ;設(shè)置特權(quán)非密口令 router(config)#line console 0 ;進(jìn)入控制臺口 router(config-line)#line vty 0 4 ;進(jìn)入虛擬終端 router(config-line)#login ;要求口令驗證 router(config-line)#password xx ;設(shè)置登錄口令xx router(config)#(Ctrl+z) ; 返回特權(quán)模式 router#exit ;返回命令 路由器配置: router(config)#int s0/0 ;進(jìn)入Serail接口 router(config-if)#no shutdown ;激活當(dāng)前接口 router(config-if)#clock rate 64000 ;設(shè)置同步時鐘 router(config-if)#ip address ;設(shè)置IP地址 router(config-if)#ip address second ;設(shè)置第二個IP router(config-if)#int f0/0.1 ;進(jìn)入子接口 router(config-subif.1)#ip address ;設(shè)置子接口IP router(config-subif.1)#encapsulation dot1q ;綁定vlan中繼協(xié)議 router(config)#config-register 0x2142 ;跳過配置文件 router(config)#config-register 0x2102 ;正常使用配置文件 router#reload ;重新引導(dǎo) 路由器文件操作: router#copy running-config startup-config ;保存配置 router#copy running-config tftp ;保存配置到tftp router#copy startup-config tftp ;開機(jī)配置存到tftp router#copy tftp flash: ;下傳文件到flash router#copy tftp startup-config;下載配置文件 ROM狀態(tài): Ctrl+Break ;進(jìn)入ROM監(jiān)控狀態(tài) rommonconfreg 0x2142 ;跳過配置文件 rommonconfreg 0x2102 ;恢復(fù)配置文件 rommonreset ;重新引導(dǎo) rommoncopy xmodem: flash: ;從console傳輸文件 rommonIP_ADDRESS= ;設(shè)置路由器IP rommonIP_SUBNET_MASK= ;設(shè)置路由器掩碼 rommonTFTP_SERVER= ;指定TFTP服務(wù)器IP rommonTFTP_FILE=c2600.bin ;指定下載的文件 rommontftpdnld ;從tftp下載 rommondir flash: ;查看閃存內(nèi)容 rommonboot ;引導(dǎo)IOS 靜態(tài)路由: ip route ;命令格式 router(config)#ip route ;靜態(tài)路由舉例 router(config)#ip route ;默認(rèn)路由舉例 動態(tài)路由: router(config)#ip routing ;啟動路由轉(zhuǎn)發(fā) router(config)#router rip ;啟動RIP路由協(xié)議。 router(config-router)#network ;設(shè)置發(fā)布路由 router(config-router)#negihbor ;點對點幀中繼用。 幀中繼命令: router(config)#frame-relay switching ;使能幀中繼交換 router(config-s0)#encapsulation frame-relay ;使能幀中繼 router(config-s0)#fram-relay lmi-type cisco ;設(shè)置管理類型 router(config-s0)#frame-relay intf-type DCE ;設(shè)置為DCE router(config-s0)#frame-relay dlci 16 ; router(config-s0)#frame-relay local-dlci 20 ;設(shè)置虛電路號 router(config-s0)#frame-relay interface-dlci 16 ; router(config)#log-adjacency-changes ;記錄鄰接變化 router(config)#int s0/0.1 point-to-point ;設(shè)置子接口點對點 router#show frame pvc ;顯示永久虛電路 router#show frame map ;顯示映射 基本訪問控制列表: router(config)#access-list permit|deny router(config)#interface ;default:deny any router(config-if)#ip access-group in|out ;default:ut 例1: router(config)#access-list 4 permit router(config)#access-list 4 deny 55 router(config)#access-list 4 permit 55 router(config)#access-list 4 deny 55 router(config)#access-list 4 permit any router(config)#int f0/0 router(config-if)#ip access-group 4 in 擴(kuò)展訪問控制列表: access-list permit|deny icmp wildtype access-list permit|deny tcp wildport 例3: router(config)#access-list 101 deny icmp any echo router(config)#access-list 101 permit ip any anyrouter(config)#int s0/0 router(config-if)#ip access-group 101 in 例3: router(config)#access-list 102 deny tcp any eq 80 router(config)#access-list 102 permit ip any any router(config)#interface s0/1 router(config-if)#ip access-group 102 out 協(xié)議 路由協(xié)議 路由器配置 交換機(jī)配置 加密 上一頁 1 2 QQ 推出Windows2003教程 win2003安裝介紹 win2003網(wǎng)絡(luò)優(yōu)化 win2003使用技巧 win2003系統(tǒng)故障 服務(wù)器配置 專家答疑 幀中繼命令: router(config)#frame-relay switching ;使能幀中繼交換router(config-s0)#encapsulation frame-relay ;使能幀中繼router(config-s0)#fram-relay lmi-type cisco ;設(shè)置管理類型router(config-s0)#frame-relay intf-type DCE ;設(shè)置為DCErouter(config-s0)#frame-relay dlci 16 ;router(config-s0)#frame-relay local-dlci 20 ;設(shè)置虛電路號router(config-s0)#frame-relay interface-dlci 16 ;router(config)#log-adjacency-changes ;記錄鄰接變化router(config)#int s0/0.1 point-to-point ;設(shè)置子接口點對點router#show frame pvc ;顯示永久虛電路router#show frame map ;顯示映射 基本訪問控制列表: router(config)#access-list permit|deny router(config)#interface ;default:deny anyrouter(config-if)#ip access-group in|out ;default:ut 例1: router(config)#access-list 4 permit router(config)#access-list 4 deny 55 router(config)#access-list 4 permit 55 router(config)#access-list 4 deny 55 router(config)#access-list 4 permit any router(config)#int f0/0 router(config-if)#ip access-group 4 in 擴(kuò)展訪問控制列表: access-list permit|deny icmp wildtypeaccess-list permit|deny tcp wildport例3:router(config)#access-list 101 deny icmp any echorouter(config)#access-list 101 permit ip any anyrouter(config)#int s0/0router(config-if)#ip access-group 101 in例3:router(config)#access-list 102 deny tcp any eq 80router(config)#access-list 102 permit ip any anyrouter(config)#interface s0/1router(config-if)#ip access-group 102 out 刪除訪問控制例表: router(config)#no access-list 102 router(config-if)#no ip access-group 101 in 路由器的nat配置 Router(config-if)#ip nat inside ;當(dāng)前接口指定為內(nèi)部接口 Router(config-if)#ip nat outside ;當(dāng)前接口指定為外部接口 Router(config)#ip nat inside source static p port Router(config)#ip nat inside source static Router(config)#ip nat inside source static tcp 80 80 Router(config)#ip nat pool p1 0 Router(config)#ip nat inside source list 1 pool p1 Router(config)#ip nat inside destination list 2 pool p2 Router(config)#ip nat inside source list 2 interface s0/0 overload Router(config)#ip nat pool p2 type rotary Router#show ip nat translationrotary 參數(shù)是輪流的意思,地址池中的IP輪流與NAT分配的地址匹配。overload參數(shù)用于PAT 將內(nèi)部IP映射到一個公網(wǎng)IP不同的端口上。 外部網(wǎng)關(guān)協(xié)議配置: routerA(config)#router bgp 100 routerA(config-router)#network routerA(config-router)#neighbor remote-as 200 配置PPP驗證: RouterA(config)#username password RouterA(config)#int s0 RouterA(config-if)#ppp authentication chap|pap 3PIX防火墻命令 Pix525(config)#nameif ethernet0 outside security0 ;命名接口和級別 Pix525(config)#interface ethernet0 auto ;設(shè)置接口方式 Pix525(config)#interface ethernet1 100full ;設(shè)置接口方式 Pix525(config)#interface ethernet1 100full shutdown Pix525(config)#ip address inside Pix525(config)#ip address outside 52 Pix525(config)#global (if_name) natid ip-ip ;定義公網(wǎng)IP區(qū)間 Pix525(config)#global (outside) 1 -5 ;例句 Pix525(config)#global (outside) 1 ;例句 Pix525(config)#no global (outside) 1 ;去掉設(shè)置 Pix525(config)#nat (if_name) nat_id local_ip netmark Pix525(config)#nat (inside) 1 0 0內(nèi)網(wǎng)所有主機(jī)(0代表)可以訪問global 1指定的外網(wǎng)。 Pix525(config)#nat (inside) 1 內(nèi)網(wǎng)/16網(wǎng)段的主機(jī)可以訪問global 1指定的外網(wǎng)。 Pix525(config)#route if_name 0 0 gateway_ip metric ;命令格式 Pix525(config)#route outside 0 0 1 ;例句 Pix525(config)#route inside 1 ;例句 Pix525(config)#static (inside, outside) 表示內(nèi)部ip地址,訪問外部時被翻譯成全局地址。 Pix525(config)#static (dmz, outside) 中間區(qū)域ip地址,訪問外部時被翻譯成全局地址。配置交換機(jī)VLAN的語法(1)激活vlan路由Switch1#config tSwitch1(config)#ip routing (2)創(chuàng)建三個VLANSwitch1#Switch1#vlan databaseSwitch1(vlan)#vlan 2Switch1(vlan)#vlan 3Switch1(vlan)#vlan 10Switch1(vlan)#exit (3)給VLAN分配IPSwitch1#config tSwitch1(config)#config vlan2Switch1(config-if)#ip address Switch1(config-if)#no shutdownSwitch1#config tSwitch1(config)#config vlan3Switch1(config-if)#ip address Switch1(config-if)#no shutdownSwitch1#config tSwitch1(config)#config vlan10Switch1(config-if)#ip address Switch1(config-if)#no shutdown(4)配VTPSwitch1#Switch1#config tSwitch1(config)#vtp domain china_mobileSwitch1(config)#vtp mode serverSwitch1(config)#end (5)配TrunkSwitch1#Switch1#config tSwitch1(config)#interface gigabitethernet0/1Switch1(config-if)#switchport trunk encapsulation islSwitch1(config-if)#switchport mode trunkSwitch1(config-if)#end(6)給中心交換機(jī)通往路由器的接口配IPSwitch1#Switch1#config tSwitch1(config)#interface fastethernet0/1Switch1(config-if)#no switchportSwitch1(config-if)#ip address Switch1(config-if)#no shutdown(7)給中心交換機(jī)配置缺省路由Switch1#Switch1#config tSwitch(config)#ip route (8)把VLAN號分配給IP接口Switch1#Switch1#config tSwitch1(config)#interface fastethernet0/2Switch1(config-if)#switchport mode accessSwitch1(config-if)#switchport access vlan2Switch1(config-if)#spanning-tree portfast Switch1#Switch1#config tSwitch1(config)#interface fastethernet0/13Switch1(config-if)#switchport mode accessSwitch1(config-if)#switchport access vlan3Switch1(config-if)#spanning-tree portfast(其它同)(9)配訪問控制列表ACL禁VLAN3子網(wǎng)的客戶機(jī)訪問服務(wù)器Switch1#Switch1#config tSwitch1(config)#access-list 1 deny 55Switch1(config)#access-list 1 permit anySwitch1(config)#interface fastethernet0/13 (此接口接服務(wù)器)Switch1(config-if)#ip access-group 1 out(10)檢查上述配置Switch1#show vlanSwitch1#show ip routeSwitch1#show interface gigabitethernet0/1 switchportSwitch1#show run Switch1#show vtp status(11)存配置Switch1#copy running-config startup-config二在接入層交換機(jī)Swith2上VLAN的配置(1)配TRUNKSwitch2#Swtich2#config tSwitch2(config)#interface gigabitethernet0/1Switch2(config-if)#switchport trunk encapsulation islSwitch2(config-if)#switchport mode trunkSw
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 工程經(jīng)濟(jì)重要知識梳理試題及答案
- 工程項目中合同管理的關(guān)注點試題及答案
- 工程經(jīng)濟(jì)市場分析方法試題及答案
- 食品加工工藝與安全衛(wèi)生管理練習(xí)題集合
- 匯聚市政工程考試資料的試題及答案
- 物流運(yùn)輸車隊協(xié)議
- 生物醫(yī)學(xué)影像診斷技術(shù)題庫
- 工程經(jīng)濟(jì)企業(yè)財務(wù)預(yù)測試題及答案
- 經(jīng)濟(jì)法核心知識試題及答案
- 經(jīng)濟(jì)法的學(xué)術(shù)研究與試題及答案
- 2025年大數(shù)據(jù)分析師職業(yè)技能測試卷:數(shù)據(jù)采集與處理流程試題解析
- 2025年計算機(jī)科學(xué)與技術(shù)專業(yè)考試題及答案
- 脊髓損傷病人的護(hù)理查房
- 2025年全國特種設(shè)備安全管理人員A證考試練習(xí)題庫(300題)含答案
- 浙江省9 1高中聯(lián)盟2024-2025學(xué)年高一下學(xué)期4月期中英語試卷(含解析含聽力原文無音頻)
- 人工智能在航空服務(wù)中的應(yīng)用-全面剖析
- 腦區(qū)網(wǎng)絡(luò)在記憶形成中的作用機(jī)制研究-全面剖析
- 2025-2030中國藥食同源行業(yè)市場運(yùn)行分析及市場前景預(yù)測研究報告
- 小飯桌轉(zhuǎn)讓合同協(xié)議
- 2025-2030全球及中國戊二醛行業(yè)市場現(xiàn)狀供需分析及市場深度研究發(fā)展前景及規(guī)劃可行性分析研究報告
- 財務(wù)指標(biāo)分析試題及答案
評論
0/150
提交評論