點擊藍字微信
![](http://static.javashuo.com/static/loading.gif)
2020網絡
關注咱們運維
【乾貨】華爲/思科命令對照表ide
華爲現在在許多中國人心中有着極高的地位,它的通訊業務早就擴張到了全球許多個國家與地區,強如美國都爲高速崛起的華爲感到懼怕,但其實華爲在發展的過程當中也不是順風順水,畢竟在國際上仍是有許多強大的競爭對手,好比今天咱們要講的思科,它的市值曾經排名全球第一,超過微軟與蘋果,甚至能夠說,沒有曾經思科就沒有今天的互聯網。svg
那咱們今天着重介紹一下,兩大網絡廠商路由交換設備基礎配置命令對比:學習
思科 | 華爲/H3C | 描述 |
no | undo | 取消、關閉、刪除 配置 |
no debug all | Ctrl + O(鍵盤按鍵) | 取消全部debug進程 |
exit | quit | 從當前視圖退回到較低級別視圖,若是是用戶視圖,則退出系統 |
end | return | 從除用戶視圖外的其它視圖退回到用戶視圖 |
delete | delete | 從用戶視圖刪除指定文件 |
reload | reboot | 經過命令遠程從新啓動設備 |
write | save | 保存當前配置信息到系統默認的存儲路徑中 |
hostname | sysneme | 設置設備的主機名 |
enable,configure terminal | system-view | 從用戶視圖進入系統視圖 |
username | local-user | 建立本地用戶,並配置本地用戶的各項參數 |
shutdown | shutdown | 禁止、關閉 |
show | display | 查看、顯示 配置 |
show logging | display logbuffer | 查看日誌 |
startup-config | saved-configuration | 系統啓動的配置 |
running-config | current-configuration | 系統當前運行的配置 |
show startup-config | display saved-configuration | 查看當前保存的配置 |
show running-config | display current-configuration | 查看當前配置 |
show peocesses | display cpu-usage | 查看CPU的狀態信息 |
erase startup-config | reset saved-configuration | 刪除系統啓動配置 |
logging | info-center | 設置信息中心配置信息 |
line | user-interface | 進入線路配置 |
host | ip host | host名字和ip地址對應 |
enable password | set authentication password simple | 配置明問密碼 |
interface vlan 1 | interface vlan 1 | 進入vlan 1接口配置 |
interface range gigabitEthernet 0/1 - 4 | interface gigabitEthernet 0/1 to gigabitEthernet 0/4 | 進入多個連續接口 |
enable secret | super password | 設置特權口令 |
duplex(half | full | auto) | duplex(half | full | auto) | 配置接口狀態 |
speed(10/100/1000) | speed(10/100/1000) | 配置端口速率 |
switchport mode access | port link-type access | 配置接口模式爲ACCESS |
switchport access vlan ID | port default vlan ID/port access vlan ID | 配置接口爲VLAN ID |
valn ID /no vlan ID | vlan ID /undo vlan ID | 添加/刪除vlan ID |
encapsulation | link-protocol | 封裝協議 |
channel-group 1 mode on | port link-aggregation group 1 | 鏈路聚合 |
ip routing | 默認開啓 | 開啓三層交換機的路由功能 |
no switchport | 不支持 | 開啓接口三層功能 |
vtp | GVRP | 對跨以太網交換機的VLAN進行動態註冊和刪除 |
ip route 0.0.0.0 0.0.0.0 202.202.202.202 | ip route-static 0.0.0.0 0.0.0.0 202.202.202.202 | 默認路由 |
show ip route | display ip routing-table | 查看路由表 |
router rip | rip | 啓用RIP協議 |
no auto-summary | rip split-horizon | 取消自動彙總/配置水平分割 |
router ospf | ospf enable | 啓用ospf協議 |
show ip route ospf | display ospf routing | 查看OSPF學習到的路由表 |
show ip neighbor | display ospf peer | 查看OSPF各區域的鄰居信息 |
show ip bgp summary | display bgp peer | 查看BGP鄰居關係 |
show ip bgp all | display bgp routing-table | 查看BGP路由表 |
access-list 1-99 permit /deny IP | acl 1-99 /rule permit/deny source IP | 配置標準訪問控制列表 |
display nat inbound | 查看NAT入方向動態地址轉換信息 | |
show ip nat translations | display nat all | 查看全部nat配置信息 |
ip nat inside source static | nat server global <ip>[port] inside <ip>port [protocol] | 配置靜態地址轉換 |
以上,即是咱們經常使用命令的對比了,其實,不管是思科仍是華爲,或者是H3C,對於咱們技術人員來講,掌握技術是硬道理,走遍天下都不怕!!!flex
![](http://static.javashuo.com/static/loading.gif)
2020ui
![](http://static.javashuo.com/static/loading.gif)
掃二維碼|關注咱們url
微信號|Networking_MGspa
關注公衆號
加入「網絡工程師」交流羣
更多內容
1 |
割接、運維你真的有經驗嗎?一問便知 |
2 |
誰把無線路由器當Hub亂接啦? |
3 |
線上故障排查全套路,拿走不謝! |
4 |
割接!寫腳本的重要性 |
5 |
網絡常見的 9 大命令,很是實用! |
我知道你在看喲
![](http://static.javashuo.com/static/loading.gif)
本文分享自微信公衆號 - 網絡工程師筆記(zhishishentou)。
若有侵權,請聯繫 support@oschina.cn 刪除。
本文參與「OSC源創計劃」,歡迎正在閱讀的你也加入,一塊兒分享。