思科华为H3C通用命令对比全套汇编.doc
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_1.gif)
![资源得分’ title=](/images/score_05.gif)
《思科华为H3C通用命令对比全套汇编.doc》由会员分享,可在线阅读,更多相关《思科华为H3C通用命令对比全套汇编.doc(23页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
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
2、reboot reboot 重启 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-configuratio
3、n display current-configuration 显示当前配置 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 进入线路配置(用户接口)模式 star
4、t-config saved-configuration saved-configuration 启动配置 running-config current-configuration current-configuration 当前配置 host ip host ip host host名字和ip地址对应 交换部分 enable password set authentication password simple set authentication password simple 配置明文密码 interface type/number interface type/number inter
5、face type/number 进入接口 interface vlan 1 interface 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/10
6、0/1000) speed (10/100/1000) speed (10/100/1000) 配置端口速率 switchport mode trunk port link-type trunk port link-type trunk 配置trunk vlan ID /no vlan ID vlan batch ID /undo vlan batch ID vlan batch ID /undo vlan batch ID 添加、删除vlan switchport access vlan port default vlan ID port acces vlan ID 将端口接入vlan sh
7、ow interface display interface display interface 查看接口 show vlan ID display vlan ID display vlan ID 查看vlan encapsulation link-protocol link-protocol 封装协议 channel-group 1 mode on port link-aggregation group 1 port link-aggregation group 1 链路聚合 ip routing 默认开启 默认开启 开启三层交换的路由功能 no switchport 不支持 不支持 开启接
8、口三层功能 vtp domain GVRP GVRP 对跨以太网交换机的VLAN进行动态注册和删除 spanning-tree vlan ID root primary stp instance id root primary stp instance id root primary stp配置根网桥 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.
9、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 配置默认路由 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、并宣
10、告网段 router ospf ospf ospf 启用ospf network ip 反码 area area area 配置OSPF区域 no auto-summary rip 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-li
11、st 100-199 permit/deny protocol source IP+反码 destination IP+反码 operator operan rule normal|specialpermit|denytcp|udpsource |anydestination |anyoperate rule normal|specialpermit|denytcp|udpsource |anydestination |anyoperate 扩展访问控制列表 standby group-number ip virtual-ip vrrp vrid number virtual-ip vrrp
12、vrid number virtual-ip 配置HSRP组 standby group-number priority vrrp vrid number priority vrrp vrid number 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 static nat server globa
13、l port inside port protocol nat server global port inside port protocol 配置静态地址转换 cisco常用命令解释视图模式介绍:普通视图 router特权视图 router#/在普通模式下输入enable全局视图 router(config)#/在特权模式下输入config t接口视图 router(config-if)# /在全局模式下输入int 接口名称 例如int s0或int e0路由协议视图 router(config-route)# /在全局模式下输入router 动态路由协议名称1、基本配置:routerena
14、ble /进入特权模式router#conf t /进入全局配置模式router(config)#hostname xxx /设置设备名称就好像给我们的计算机起个名字router(config)#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(
15、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/对所有在路由器上输入的口令进行暗文加
16、密2、接口配置:router(config)#interface serial0/进入接口配置模式 serial 0 端口配置(如果是模块化的路由器前面加上槽位编号,例如serial0/0 代表这个路由器的0槽位上的第一个接口)router(config-if)#ip address xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码router(config-if)#enca hdl/ppp 捆绑链路协议 hdlc 或者 ppp 思科缺省串口封装的链路层协议是HDLC所以在show run配置的时候接口上的配置没有,如果要封装为别的链路层协议例如PPP/F
17、R/X25就是看到接口下的enca ppp或者enca frrouter(config)#int loopback /建立环回口(逻辑接口)模拟不同的本机网段router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加ip 地址和掩码给环回口router(config-if)#no shutdown /在物理接口上配置了ip地址后用no shut启用这个物理接口反之可以用shutdown管理性的关闭接口3、路由配置:(1)静态路由router(config)#ip route xxx.xxx.xxx.xxx xxx.xxx.xxx.x
18、xx 下一条或自己的接口router(config)#ip route 0.0.0.0 0.0.0.0 s 0 添加缺省路由(2)动态路由rip协议router(config)#router rip/启动rip协议router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段router(config-router)#version 2 转换为rip 2版本router(config-router)#no auto-summary /关闭自动汇总功能,rip V2才有作用router(config-router)# passive-int接口名 /
19、启动本路由器的那个接口为被动接口router(config-router)# nei xxx.xxx.xxx.xxx/广播转单播报文,指定邻居的接ipigrp协议router(config)#router igrp xxx /启动igrp协议router(config-router)#network xxx.xxx.xxx.xxx /宣告自己的网段router(config-router)#variance xxx/调整倍数因子,使用不等价的负载均衡eigrp协议router(config)router eigrp xxx /启动协议router(config-router)#network
20、xxx.xxx.xxx.xxx /宣告自己的网段router(config-router)#variance xxx/调整倍数因子,使用不等价的负载均衡router(config-router)#no auto-summary /关闭自动汇总功能ospf协议router(config)router ospf xxx /启动协议启动一个OSPF协议进程router(config-router)network xxx.xxx.xxx.xxx area xxx /宣告自己的接口或网段在ospf的区域中可以把不同接口宣告在不同区域中router(config-router)router-id xxx.
21、xxx.xxx.xxx /配置路由的idrouter(config-router)aera xxx stub /配置xxx区域为末梢区域 加入这个区域的路由器全部要配置这个条命令router(config-router)aera xxx stub no-summary /配置xxx区域为完全末梢区域 只在ABR上配置router(config-router)aera xxx nssa /配置xxx区域为非纯末梢区域加入这个区域的路由器全部要配置这个条命令router(config-router)aera xxx nssa no-summary /配置xxx区域为完全非纯末梢区域 只在ABR上配
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 思科 华为 h3c 通用 命令 对比 对照 比较 全套 汇编
![提示](https://www.taowenge.com/images/bang_tan.gif)
限制150内