欢迎来到天天文库
浏览记录
ID:43456275
大小:87.01 KB
页数:3页
时间:2019-10-02
《思科与华为命令区别》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库。
1、功能Cisco命令华为命令 进入全局模式#configureterminalsystem 显示当前配置showrunning-configdisplaycurrent-configuration 显示版本信息showversiondisplayversion 显示vlan信息showvlandisplayvlan 显示接口信息showinterface接口displayinterface接口 交换机路由器 命名hostname主机名sysname主机名
2、 修改特权密码enablepassword密码(明文)enablesecret密码(密文)superpassword密码 进入接口模式interface接口interface接口 进入vlan模式interfacevlanvlan号interfacevlanvlan号 给接口配IPipaddress<掩码>ipaddress<掩码> 配telnet密码linevty04password密码loginuser-interfacevty04authentication-modepasswo
3、rdsetauthentication-modepasswordsimple密码userprivilegelevel3 激活端口noshutdownundoshutdown 关闭端口shutdownshutdown 退出exitquit 创建VLANvlanvlan号vlanvlan号 VLAN中增加 端口porte0/1porte0/2toe0/4 当前端口加入 到VLANswitchportaccessvlanvlan号portaccessvlanvlan号
4、 设置端口工作 模式switchportmodetrunk
5、access
6、dynamicportlink-typetrunk
7、access
8、hybrid 设trunk允许的 VLANswitchporttrunkallowedvlanremove
9、addIDporttrunkpermitvlanID
10、All 指定镜像端口monitorsession1destinationint接口monitor-port接口 指定被镜像端 口monitorsession1sourceint接口both
11、portmirror接口 设置生成树启 动与否spanning-treevlanvlan号(默认开启)stpenable
12、disable(默认关闭) 端口的聚合interfacerangef0/1–4channel-group1modeonlink-aggregatione0/1toe0/4ingress
13、bothundolink-aggregatione0/1
14、all 设置主vlanisolate-user-vlanenable 设置主vlan包括 的子vlanisolate-use
15、r-vlansecondary 显示路由信息showiproutedisplayiproute 绑定HDLC协议默认就是link-protocolhdlc 设静态路由iproute网络号掩码下一跳IP/接口iproute-static网络号掩码下一跳IP/接口 启用RIP路由routerripripripworkripinputripoutput 配置路由器的 IDintloopback0ipaddIP地址掩码routeridA.B.C.D 启动OS
16、PF协议routerospf进程号ospfenable 配置OSPF区域net网络号反向掩码areaint接口ospfenablearea 标准ACL命令格 式access-list列表号permit
17、deny源IP反向掩码acl[match-orderconfig
18、auto]rule[normal
19、special]{permit
20、deny}[sourcesource-addrsource-wildcard
21、any] 扩展ACL配置acces
22、s-list列表号permit
23、deny协议源IP反向掩码目的IP反向掩码eq端口号acl[match-orderconfig
24、auto]rule{normal
25、special}{permit
26、deny}{tc
此文档下载收益归作者所有