![]() 問(wèn)題 - 許鈞.mp35:30 來(lái)自智能化弱電工程分享 那么就有小伙伴說(shuō)能不能出一篇集合華為、思科、華三交換機(jī)、路由器的命令代碼對(duì)比合集呢?這樣對(duì)照著學(xué)習(xí)更能加深記憶。這里小編就總結(jié)了一部分供大家學(xué)習(xí)。 ![]() 【常用命令對(duì)比】: 取消/關(guān)閉 當(dāng)前設(shè)置思科:no 華為:undo h3c:undo 查看、顯示思科:show 華為:display h3c:display 退回上級(jí)思科:exit 華為:quit h3c:quit 設(shè)置主機(jī)名思科:hostname 華為:sysname h3c:sysname 進(jìn)入全局模式思科:en, config terminal 華為:system-view h3c:system-view 刪除文件思科:delete 華為:delete h3c:delete 重啟思科:reload 華為:reboot h3c:reboot 保存當(dāng)前配置思科:write 華為:save h3c:save 創(chuàng)建用戶(hù)思科:username 華為:local-user h3c:local-user 禁止、關(guān)閉思科:shutdown 華為:shutdown h3c:shutdown 顯示當(dāng)前系統(tǒng)版本思科:show version 華為:display version h3c:display version 查看已保存過(guò)的配置思科:show startup-config 華為:display saved-configuration h3c:display saved-configuration 顯示當(dāng)前配置思科:show running-config 華為:display current-configuration h3c:display current-configuration 取消所有debug命令思科:no debug all 華為:ctrl+d h3c:華為:ctrl+d 刪除配置思科:erase startup-config 華為:reset saved-configuration h3c:reset saved-configuration 退到用戶(hù)視圖思科:end 華為:return h3c:return 下一步操作思科:exit 華為:logout h3c:logout 指定信息中心配置信息思科:logging 華為:info-center h3c:info-center 進(jìn)入線(xiàn)路配置(用戶(hù)接口)模式思科:line 華為:user-interface h3c:user-interface 啟動(dòng)配置思科:start-config 華為:saved-configuration h3c:saved-configuration 當(dāng)前配置思科:running-config 華為:current-configuration h3c:current-configuration host名字和ip地址對(duì)應(yīng)思科:host 華為:ip host h3c:ip host ![]() 【交換機(jī)部分對(duì)照表】: 配置明文密碼思科:enable password 華為:set authentication password simple h3c:set authentication password simple 進(jìn)入接口思科:interface type/number 華為:port type/number h3c:port type/number 進(jìn)入vlan配置vlan管理地址思科:interface vlan 1 華為:interface vlan 1 h3c:interface vlan 1 設(shè)置特權(quán)口令思科:enabl esecret 華為:super password h3c:super password 多個(gè)端口的組思科:interface rang 華為:interface ethID to ID h3c:interface ethID to ID定義 配置接口狀態(tài)思科:duplex (half|full|auto) 華為:duplex (half|full|auto) h3c:duplex (half|full|auto) 配置端口速率思科:speed (10/100/1000) 華為:speed (10/100/1000) h3c:speed (10/100/1000) 配置trunk思科:switchport mode trunk 華為:port link-type trunk h3c:port link-type trunk 添加、刪除vlan思科:vlan ID /no vlan ID 華為:vlan ID /no vlan ID h3c:vlan ID /no vlan ID 將端口接入vlan思科:switchport access vlan ID 華為:port vlan ID h3c:port vlan ID 查看接口思科:show interface 華為:display interface h3c:display interface 查看vlan思科:show vlan ID 華為:display vlan ID h3c:display vlan ID 封裝協(xié)議思科:encapsulation 華為:link-protocol h3c:link-protocol 鏈路聚合思科:channel-group 1 mode on 華為:port link-aggregation group 1 h3c:port link-aggregation group 1 開(kāi)啟三層交換的路由功能思科:ip routing 華為:默認(rèn)開(kāi)啟 h3c:默認(rèn)開(kāi)啟 開(kāi)啟接口三層功能思科:no switchport 華為:不支持 h3c:不支持 對(duì)跨以太網(wǎng)交換機(jī)的VLAN進(jìn)行動(dòng)態(tài)注冊(cè)和刪除思科:vtp domain 華為:GVRP h3c:GVRP stp配置根網(wǎng)橋思科:spanning-tree vlan ID root primary 華為:stp root primary h3c:stp root primary 配置網(wǎng)橋優(yōu)先級(jí)思科:spanning-tree vlan ID priority 華為: stp priority priorityNumber h3c:stp priority priorityNumber 查看STP配置思科:show spanning-tree 華為:display stp brief h3c:display stp brief ![]() 【路由器對(duì)照表】 配置默認(rèn)路由思科:ip route 0.0.0.0 0.0.0.0 華為:ip route-static 0.0.0.0 0.0.0.0 h3c:ip route-static 0.0.0.0 0.0.0.0 配置靜態(tài)路由思科:ip route 目標(biāo)網(wǎng)段+掩碼 下一跳 華為:ip route-static 目標(biāo)網(wǎng)段+掩碼 下一跳 h3c:ip route-static 目標(biāo)網(wǎng)段+掩碼 下一跳 查看路由表思科:show ip route 華為:display ip routing-table h3c:display ip routing-table 啟用rip、并宣告網(wǎng)段思科:router rip /network 網(wǎng)段 華為:rip /network 網(wǎng)段 h3c:rip /network 網(wǎng)段 啟用ospf思科:router ospf 華為:ospf enable h3c:ospf enable 配置OSPF區(qū)域思科:network ip 反碼 area <area-id> 華為:ospf enable area <area-id> h3c:ospf enable area <area-id> 配置RIP V2水平分割思科:no auto-summary 華為:rip split-horizon h3c:rip split-horizon 查看路由協(xié)議思科:show ip protocol 華為:display ip protocol h3c:display ip protocol 標(biāo)準(zhǔn)訪(fǎng)問(wèn)控制列表思科:access-list 1-99 permit/deny IP 華為:rule normal permit source IP h3c:rule normal permit source IP 擴(kuò)展訪(fǎng)問(wèn)控制列表思科:access-list 100-199 permit/deny protocol source IP+反碼 華為:rule {normal|special}{permit|deny}{tcp|udp}sour h3c:rule {normal|special}{permit|deny}{tcp|udp}sour 配置HSRP組思科:standby group-number ip virtual-ip 華為:vrrp vrid number virtual-ip h3c:vrrp vrid number virtual-ip 配置HSRP優(yōu)先級(jí)思科:standby group-number priority 華為:vrrp vrid number priority h3c:vrrp vrid number priority 配置HSRP占先權(quán)思科:standby group-number priority 華為:vrrp vrid number priority h3c:vrrp vrid number priority 配置端口跟蹤思科:standby group-number track 華為:無(wú) h3c:無(wú) 配置靜態(tài)地址轉(zhuǎn)換思科:ip nat inside source static 華為:nat server global <ip> [port] inside <ip> port [protocol] h3c:nat server global <ip> [port] inside <ip> port [protocol] 思科、華為、H3C命令對(duì)照表:![]() ![]() 交換機(jī)部分對(duì)照表:![]() ![]() 路由器對(duì)照表:![]() ![]() 【華為模擬器命令行常用命令匯總】: CTRL+Z //退到用戶(hù)視圖模式 current-configuration //當(dāng)前配置 display //查看 delete //刪除文件 display version //查看當(dāng)前系統(tǒng)版本信息 display saved-configuration //查看已保存過(guò)的配置 display current-configuration //查看當(dāng)前配置 display interface //查看接口信息 display vlan ID //查看VLAN duplex (half|full|auto) //配置接口的狀態(tài) ip host //HOST名字和IP地址對(duì)應(yīng) info-center //指定信息中心配置信息 interface vlan 100 //進(jìn)入VLAN并配置VLAN管理地址 interface ethID to ID //定義多個(gè)端口的組 logout //退出 local-user //創(chuàng)建用戶(hù) link-protocol //封裝協(xié)議 port link-type access //配置access端口模式 port link-aggregation group 1 //鏈路聚合 port vlan ID //將端口接入VLAN quit //退回上一級(jí)模式 reboot //重啟 return //退到用戶(hù)視圖模式 reset saved-configuration //刪除配置 system-view //進(jìn)入全局模式 sysname //設(shè)置主機(jī)名 shutdown //關(guān)閉接口 saved-configuration //啟動(dòng)配置 save //保存當(dāng)前配置 set authentication password simple//配置明文密碼 super password //設(shè)置特權(quán)口令 speed (10/100/1000) //配置端口速率 user-interface //進(jìn)入線(xiàn)路配置模式 undo //刪除命令 undo vlan ID //刪除VLAN vlan ID //添加VLAN vlan batch ID //批量添加VLAN 【思科模擬器常用命令行匯總】: channel-group 1 mode on //鏈路聚合 config terminal //進(jìn)入全局模式 delete //刪除配置文件 duplex (half|full|auto) //配置接口狀態(tài)信息 enable //由特權(quán)模式進(jìn)入用戶(hù)模式 erase startup-config //刪除配置 end //退到用戶(hù)視圖模式 exit //退出上一級(jí)模式 enabl esecret //設(shè)置特權(quán)口令 encapsulation //封裝協(xié)議 enable password //配置明文密碼 hostname //設(shè)置主機(jī)名 host //HOST名字和IP地址對(duì)應(yīng) interface type/number //進(jìn)入接口 interface vlan 1 //進(jìn)入vlan配置vlan管理地址 interface rang //定議多個(gè)端口的組 ip routing //開(kāi)啟三層交換的路由功能 logging //指定信息中心配置信息 line //進(jìn)入線(xiàn)路配置模式 no //取消、關(guān)閉當(dāng)前設(shè)置 no debug all //取消所有debug命令 no switchport //開(kāi)啟接口三層功能 reload //重啟 running-config //當(dāng)前配置 show //查看信息 spanning-tree vlan ID root primary//STP配置根網(wǎng)橋 spanning-tree vlan ID priority //配置網(wǎng)橋的優(yōu)先級(jí) show spanning-tree //查看STP配置信息 show interface //查看接口信息 show vlan ID //查看VLAN ID信息 shutdown //關(guān)閉接口 show version //查看當(dāng)前系統(tǒng)版本信息 show startup-config //查看已保存過(guò)的配置 show running-config //查看當(dāng)前配置 start-config //啟動(dòng)配置 speed (10/100/1000) //配置端口速率 switchport mode access //配置ACCESS端口模式 switchport access vlan ID //將端口接入VLAN ID username //創(chuàng)建用戶(hù) vlan ID //添加VLAN no vlan ID //刪除VLAN vtp domain //對(duì)跨以太網(wǎng)交換機(jī)的VLAN進(jìn)行動(dòng)態(tài)注冊(cè)和刪除 write //保存當(dāng)前配置命令 【華三模擬器常用命令行匯總】: CTRL+Z //退到用戶(hù)視圖模式 current-configuration //當(dāng)前配置 display //查看 delete //刪除文件 display version //查看當(dāng)前系統(tǒng)版本信息 display saved-configuration //查看已保存過(guò)的配置 display current-configuration //查看當(dāng)前配置 display interface //查看接口信息 display vlan ID //查看VLAN duplex (half|full|auto) //配置接口的狀態(tài) ip host //HOST名字和IP地址對(duì)應(yīng) info-center //指定信息中心配置信息 interface vlan 100 //進(jìn)入VLAN并配置VLAN管理地址 interface ethID to ID //定義多個(gè)端口的組 logout //退出 local-user //創(chuàng)建用戶(hù) link-protocol //封裝協(xié)議 port link-type access //配置ACCESS端口模式 port link-aggregation group 1 //鏈路聚合 port vlan ID //將端口接入VLAN quit //退回上一級(jí)模式 reboot //重啟 return //退到用戶(hù)視圖模式 reset saved-configuration //刪除配置 system-view //進(jìn)入全局模式 sysname //設(shè)置主機(jī)名 shutdown //關(guān)閉接口 saved-configuration //啟動(dòng)配置 save //保存當(dāng)前配置 set authentication password simple//配置明文密碼 super password //設(shè)置特權(quán)口令 speed (10/100/1000) //配置端口速率 user-interface //進(jìn)入線(xiàn)路配置模式 undo //刪除命令 undo vlan ID //刪除VLAN vlan ID //添加VLAN 碼字不易,記得多多支持,關(guān)注+收藏 ![]() |
|
來(lái)自: 啟云_9137 > 《計(jì)算機(jī)及軟件應(yīng)用》