资源预览内容
第1页 / 共26页
第2页 / 共26页
第3页 / 共26页
第4页 / 共26页
第5页 / 共26页
第6页 / 共26页
第7页 / 共26页
第8页 / 共26页
第9页 / 共26页
第10页 / 共26页
亲,该文档总共26页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
思科、华为、H3C常用命令对比大全思科、华为、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 重启 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-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 进入线路配置(用户接口)模式 start-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 interface 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/100/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 show 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 不支持 不支持 开启接口三层功能 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.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、并宣告网段 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-list 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 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 global 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
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号