思科、华为、H3c常用命令对比

上传人:豆浆 文档编号:11384963 上传时间:2017-10-13 格式:DOCX 页数:15 大小:58.78KB
返回 下载 相关 举报
思科、华为、H3c常用命令对比_第1页
第1页 / 共15页
思科、华为、H3c常用命令对比_第2页
第2页 / 共15页
思科、华为、H3c常用命令对比_第3页
第3页 / 共15页
思科、华为、H3c常用命令对比_第4页
第4页 / 共15页
思科、华为、H3c常用命令对比_第5页
第5页 / 共15页
点击查看更多>>
资源描述

《思科、华为、H3c常用命令对比》由会员分享,可在线阅读,更多相关《思科、华为、H3c常用命令对比(15页珍藏版)》请在金锄头文库上搜索。

1、思科、华为、H3C 这些网络设备的命令还是挺多的,不过我们一般用的路由交换机设备都是最简单的了,先学基本命令,再学其他功能命令。路由命令是最基本的命令了。 思科、华为、H3C 常用命令对比大全CISCO H3C HUAWEI 描述no undo undo取消、关闭当前设置show display display显示查看exit quit quit退回上级hostname sysname sysname设置主机名en, config terminal system-view system-view进入全局模式delete delete delete删除文件reload reboot reboot

2、 重启write save save保存当前配置username local-user local-user创建用户shutdown shutdown shutdown禁止、关闭 端口show version display version display version显示当前系统版本show startup-config display saved-configuration display saved-configuration查看已保存过的配置show running-config display current-configuration display current-config

3、uration显示当前配置no debug all ctrl+d ctrl+d取消所有debug 命令erase startup-config reset saved-configuration reset saved-configuration删除配置end return return退到用户视图exit logout logout 登出logging info-center info-center指定信息中心配置信息line user-interface user-interface进入线路配置(用户接口)模式start-config saved-configuration saved-c

4、onfiguration启动配置running-config current-configuration current-configuration 当前配置host ip host ip hosthost名字和 ip地址对应交换部分enable password set authentication password simple set authentication password simple配置明文密码interface type/number interface type/number interface type/number进入接口interface vlan 1 interf

5、ace vlan 1 interface vlan 1进入vlan配置vlan管理地址interface rang interface ethID to ID interface ethID to ID定议多个端口的组enabl esecret super password super password设置特权口令duplex (half|full|auto) duplex (half|full|auto) duplex (half|full|auto)配置接口状态speed (10/100/1000) speed (10/100/1000) speed (10/100/1000)配置端口速率

6、switchport mode trunk port link-type trunk port link-type trunk配置trunkvlan ID /no vlan ID vlan batch ID /undo vlan batch ID vlan batch ID /undo vlan batch ID添加、删除vlanswitchport access vlan port default vlan ID port acces vlan ID将端口接入vlanshow interface display interface display interface查看接口show vlan

7、 ID display vlan ID display vlan ID查看vlanencapsulation link-protocol link-protocol封装协议channel-group 1 mode on port link-aggregation group 1 port link-aggregation group 1链路聚合ip routing 默认开启 默认开启开启三层交换的路由功能no switchport 不支持 不支持开启接口三层功能vtp domain GVRP GVRP对跨以太网交换机的VLAN 进行动态注册和删除spanning-tree vlan ID ro

8、ot primarystp instance id root primary stp instance id root primarystp配置根网桥 spanning-tree vlan ID priority stp primary vlaue stp primary vlaue配置网桥优先级show spanning-tree dis stp brief dis stp brief查看STP配置路由部分ip route 0.0.0.0 0.0.0.0 ip route-static 0.0.0.0 0.0.0.0 ip route-static 0.0.0.0 0.0.0.0配置默认路由

9、ip route 目标网段+掩码 下一跳 ip route-static 目标网段+ 掩码 下一跳 ip route-static 目标网段+ 掩码 下一跳配置静态路由show ip route display ip routing-table display ip routing-table查看路由表router rip /network 网段 rip /network 网段 rip /network 网段启用rip、并宣告网段router ospf ospf ospf启用ospfnetwork ip 反码 area area area 配置OSPF 区域no auto-summary ri

10、p split-horizon rip split-horizon配置RIP V2水平分割show ip protocol display ip protocol display ip protocol查看路由协议 access-list 1-99 permit/deny IP rule id permit source IP rule id permit source IP标准访问控制列表access-list 100-199 permit/deny protocol source IP+反码 destination IP+反码 operator operanrule normal|spec

11、ialpermit|denytcp|udpsource |anydestination |anyoperaterule normal|specialpermit|denytcp|udpsource |anydestination |anyoperate扩展访问控制列表standby group-number ip virtual-ipvrrp vrid number virtual-ip vrrp vrid number virtual-ip配置HSRP 组standby group-number priority vrrp vrid number priority vrrp vrid num

12、ber priority配置HSRP 优先级standby group-number preempt vrrp vrid number preempt-mode vrrp vrid number preempt-mode配置HSRP 占先权standby group-number track 配置端口跟踪ip nat inside source staticnat server global port inside port protocolnat server global port inside port protocol配置静态地址转换cisco 常用命令解释视图模式介绍:普通视图 ro

13、uter特权视图 router# /在普通模式下输入 enable全局视图 router(config)# /在特权模式下输入 config t接口视图 router(config-if)# /在全局模式下输入 int 接口名称 例如 int s0 或 int e0路由协议视图 router(config-route)# / 在全局模式下输入 router 动态路由协议名称1、基本配置:routerenable /进入特权模式router#conf t /进入全局配置模式router(config)#hostname xxx /设置设备名称就好像给我们的计算机起个名字router(config

14、)#enable password /设置特权口令router(config)#no ip domain-lookup /不允许路由器缺省使用 DNS 解析命令router(config)#line console 0 /进入控制口的服务模式router(config-line)#password xxx /要设置 console 的密码router(config-line)#login /使能可以登陆router(config-line)#logging synchronous /日志同步router(config-line)#exec-timeout 0 0 /设置时间溢出为 0router(config-line)#line vty 0 4 /进入设置 telnet 服务模式router(config-line)#password xxx /设置 telnet 的密码router(config-line)#login /使能可以登陆router(config-line)#exit /保存退出到特权模式router(config)# Service password-encrypt /对所有在路由器上输入的口令进行暗文加密2、接口配置: router(config)#interface serial0 /进入接口配置模式 serial 0 端口配置(如果

展开阅读全文
相关资源
正为您匹配相似的精品文档
相关搜索

最新文档


当前位置:首页 > 行业资料 > 其它行业文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号