华为路由命令大全

上传人:汽*** 文档编号:483401068 上传时间:2022-10-08 格式:DOC 页数:3 大小:23.50KB
返回 下载 相关 举报
华为路由命令大全_第1页
第1页 / 共3页
华为路由命令大全_第2页
第2页 / 共3页
华为路由命令大全_第3页
第3页 / 共3页
亲,该文档总共3页,全部预览完了,如果喜欢就下载吧!
资源描述

《华为路由命令大全》由会员分享,可在线阅读,更多相关《华为路由命令大全(3页珍藏版)》请在金锄头文库上搜索。

1、文档供参考,可复制、编制,期待您的好评与关注! 华为路由常用命令大全 display ip statisticsdisp process cpu 查看CPU使用频率dis ip routing-table (dis ip rou)dis cur display current-configuration ;显示当前配置display interfaces ;显示接口display vlan all ;显示路由信息display version ;显示版本信息super password ;修改特权用户密码sysname ;交换机命名interface ethernet 0/1 ;进入接口视图i

2、nterface vlan x ;进入接口视图ip address 10.65.1.1 255.255.0.0 ;配置VLAN的IP地址route-static 0.0.0.0 0.0.0.0 10.65.1.2 ;静态路由网关rip ;三层交换支持local-user ftpuser-interface vty 0 4 ;进入虚拟终端authentication-mode password ;设置口令模式set authentication-mode password simple 222 ;设置口令(simple简单的)ser privilege level 3 ;用户级别(当用户远程登陆

3、时,其默认级别为1,不能作任何设置,3为最高级别,可以作修改)interface ethernet 0/1 ;进入端口模式int e0/1 ;进入端口模式duplex half|full|auto ;配置端口工作状态(端口聚合时是全双工,而CISCO的为半双工)speed 10|100|auto ;配置端口工作速率flow-control ;配置端口流控mdi across|auto|normal ;配置端口平接扭接port link-type trunk|access|hybrid ;设置端口工作模式port access vlan 3 ;当前端口加入到VLANport trunk perm

4、it vlan ID|All ;设trunk允许的VLANport trunk pvid vlan 3 ;设置trunk端口的PVIDundo shutdown ;激活端口shutdown ;关闭端口quit ;返回vlan 3 ;创建VLANport ethernet 0/1 ;在VLAN中增加端口port e0/1 ;简写方式port ethernet 0/1 to ethernet 0/4 ;在VLAN中增加端口port e0/1 to e0/4 ;简写方式description string ;指定VLAN描述字符description ;删除VLAN描述字符display vlan

5、vlan_id ;查看VLAN设置stp enable|disable ;设置生成树,默认关闭(思科是打开的)stp priority 4096 ;设置交换机的优先级stp root primary|secondary ;设置为根或根的备份stp cost 200 ;设置交换机端口的花费link-aggregation e0/1 to e0/4 ingress|both ;端口的聚合undo link-aggregation e0/1|all ; 始端口为通道号SwitchA-vlanxisolate-user-vlan enable ;设置主vlanSwitchAisolate-user-v

6、lan secondary ;设置主vlan包括的子vlan 作用为隔离主子VLAN间的主机访问,在同一网段下,主子VLAN可以访问,但是子VLAN间是不能访问的,这是华为的一个突色switchaport-iaolate enable 这是隔离同一VLAN下的主机相互访问, isolate(隔离)port hybrid pvid vlan ;设置vlan的pvidport hybrid pvid ;删除vlan的pvidport hybrid vlan vlan_id_list untagged ;设置无标识的vlan如果包的vlan id与PVId一致,则去掉vlan信息. 默认PVID=1

7、。所以设置PVID为所属vlan id, 设置可以互通的vlan为untadisplay version ;显示版本信息display current-configuration ;显示当前配置display interfaces ;显示接口信息display ip route ;显示路由信息sysname ;更改主机名super passwrod ;设置口令interface serial0 ;进入接口ip address ;配置端口IP地址undo shutdown ;激活端口link-protocol hdlc ;绑定hdlc协议user-interface vty 0 4authent

8、ication-mode passwordset authentication-mode password simple 222user privilege level 3quit hdlc all serial0 ;显示所有信息debugging hdlc event serial0 ;调试事件信息debugging hdlc packet serial0 ;显示包的信息静态路由:ip route-static interface number|nexthopvaluereject|blackhole动态路由:rip ;设置动态路由rip work ;设置工作允许rip input ;设置入

9、口允许rip output ;设置出口允许network 1.0.0.0 ;设置交换路由网络network all ;设置与所有网络交换peer ip-address ;rip version 1 ;设置工作在版本1rip version 2 multicast ;设版本2,多播方式rip split-horizon ;水平分隔router id ;配置路由器的IDospf enable ;启动OSPF协议import-route direct ;引入直联路由Quidway-Serial0ospf enable area ;配置OSPF区域标准访问列表命令格式如下:acl match-order config|auto ;默认前者顺序匹配。rule normal|specialpermit|deny source source-addr

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 行业资料 > 国内外标准规范

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