华为与思科命令区别

上传人:第*** 文档编号:34590002 上传时间:2018-02-26 格式:DOCX 页数:16 大小:272.82KB
返回 下载 相关 举报
华为与思科命令区别_第1页
第1页 / 共16页
华为与思科命令区别_第2页
第2页 / 共16页
华为与思科命令区别_第3页
第3页 / 共16页
华为与思科命令区别_第4页
第4页 / 共16页
华为与思科命令区别_第5页
第5页 / 共16页
点击查看更多>>
资源描述

《华为与思科命令区别》由会员分享,可在线阅读,更多相关《华为与思科命令区别(16页珍藏版)》请在金锄头文库上搜索。

1、2010 思科路由协议挑战 100 问第二期红盟过客类型:网络认证大小:1.2M 语言:中文 评分:8.0标签:立即下载思科、华为、H3C 这些网络设备的命令还是挺多的,不过我们一般用的路由交换机设备都是最简单的了,先学基本命令,再学其他功能命令。路由命令是最基本的命令了。 思科、华为、H3C 常用命令对比大全CISCO H3C HUAWEI 描述no undo undo取消、关闭当前设置show display display 显示查看exit quit quit 退回上级hostname sysname sysname设置主机名en, config terminal system-view

2、 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-configdisplay saved-configuration display saved-configuration查看已保存过的配置show disp

3、lay current-configuration display current-configuration 显示running-config当前配置no debug all ctrl+d ctrl+d取消所有debug 命令erase startup-configreset saved-configuration reset saved-configuration 删除配置end return return退到用户视图exit logout logout 登出logging info-center info-center指定信息中心配置信息line user-interface user-

4、interface进入线路配置(用户接口)模式start-config saved-configuration saved-configuration 启动配置running-config current-configuration current-configuration当前配置host ip host ip hosthost名字和 ip地址对应交换部分enable password set authentication password simple set authentication password simple配置明文密码interface type/numberinterfac

5、e 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)配置接口状态spe

6、ed (10/100/1000)speed (10/100/1000) speed (10/100/1000)配置端口速率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将端口接入vlansh

7、ow interface display interface display interface查看接口show vlan IDdisplay vlan ID display vlan ID 查看vlanencapsulation link-protocol link-protocol封装协议channel-group 1 mode onport link-aggregation group 1 port link-aggregation group 1 链路聚合ip routing 默认开启 默认开启开启三层交换的路由功能no switchport 不支持 不支持开启接口三层功能vtp do

8、main GVRP GVRP对跨以太网交换机的VLAN 进行动态注册和删除spanning-tree vlan ID root primarystp instance id root primary stp instance id root primarystp配置根网桥spanning-tree vlan ID prioritystp primary vlaue stp primary vlaue配置网桥优先级show spanning-treedis stp brief dis stp brief查看STP配置路由部分ip route 0.0.0.0 0.0.0.0ip route-sta

9、tic 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

10、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 IPrule id permit source IP rule id permit source IP标准访问控制列表access-list 100-199 permit/deny protocol source IP

11、+反码 destination IP+反码 operator operanrule normal|specialpermit|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-nu

12、mber priorityvrrp vrid number priority vrrp vrid number priority配置HSRP 优先级standby group-number preemptvrrp 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 insi

13、de port protocol配置静态地址转换cisco 常用命令解释视图模式介绍:普通视图 router特权视图 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

14、)#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(config-line)#logging synchronous /日志同步rou

15、ter(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)#interfa

16、ce 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/FR/X25 就是看到接口下的 enca ppp 或者 enca frrouter(config)#int loopback /建立环回口 (逻辑接口)模拟不同的本机网段router(config-if)#ip add xxx.xxx.xxx.xxx xxx.xxx.xxx.xxx /添加 ip 地址和掩码给

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

最新文档


当前位置:首页 > 办公文档 > 解决方案

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