H3C与CISCO交换机命令.docx

上传人:b****2 文档编号:12889303 上传时间:2023-04-22 格式:DOCX 页数:15 大小:21.10KB
下载 相关 举报
H3C与CISCO交换机命令.docx_第1页
第1页 / 共15页
H3C与CISCO交换机命令.docx_第2页
第2页 / 共15页
H3C与CISCO交换机命令.docx_第3页
第3页 / 共15页
H3C与CISCO交换机命令.docx_第4页
第4页 / 共15页
H3C与CISCO交换机命令.docx_第5页
第5页 / 共15页
点击查看更多>>
下载资源
资源描述

H3C与CISCO交换机命令.docx

《H3C与CISCO交换机命令.docx》由会员分享,可在线阅读,更多相关《H3C与CISCO交换机命令.docx(15页珍藏版)》请在冰豆网上搜索。

H3C与CISCO交换机命令.docx

H3C与CISCO交换机命令

h3c交换机命令和cisco命令

思科Cisco                                 华为3COM                            功能   

enable                                        system-view                            进入特权模式   

configure  terminal                     \                                              进入配置状态   

show                                          display                                     显示   

showrunning-config              displaycurrent                   显示目前的运行配置   

showversion                           dispversion                             显示版本   

showstart                               dispsaved                          显示已保存的配置   

showtech-support                 dispbase-information          显示全面的信息   

no                                              undo                                     取消(删除)   

hostname                                 sysname                                更改机器名   

\                                                   langchinese                        进入中文状态   

user                                              local-user                            新建修改用户   

end                                              return                                 退回到系统视图   

exit                                              quit                                   返回上级视图   

exit                                               logout telnet                                   退出   

router rip                                    rip rip                                          动态路由   

routerospf                                 spf                                         ospf     路由 

routerbgp                                 bgp                                                                        bgp路由   

write                                             save                                         保存配置   

erase                                            delete                                      删除配置   

0                                                   simple                                      明文   

7                                                    cipher                                   密文 

access-list                                acl                                       控制访问列表   

host ip                                      host                                         host和ip名字对应   

logging                                 info-center                              日志信息   

encap                                    link-protocol                          封闭链路层协议   

nodebugall                           ctrl+d 取消所有                    debug命令       

vlandatabase                          vlan                                    进入vlan的配置   

vtptrunk                                trunk                                     设置成为骨干端口   

mode                                       \                                              模式   

trunk                                       相同                                       主干线

switchport                                  port                                    接口控制   

access                                       相同                                    访问   

ipdhcp                                       dhcp 设置dhcp服务器功能 

 

H3C路由器交换机配置命令详解

交换机命令[Quidway]superpassword;修改特权用户密码[Quidway]sysname;交换机命名[Quidway]interfaceethernet0/1;进入接口视图[Quidway]interfacevlanx;进入接口视图[Quidway-Vlan-interfacex]ipaddress10.65.1.1255.255.0.0;配置V

 

交换机命令

[Quidway]superpassword                                  ;修改特权用户密码

[Quidway]sysname                                  ;交换机命名

[Quidway]interfaceethernet0/1                          ;进入接口视图

[Quidway]interfacevlanx                          ;进入接口视图

[Quidway-Vlan-interfacex]ipaddress10.65.1.1255.255.0.0    ;配置VLAN的IP地址

[Quidway]iproute-static0.0.0.00.0.0.010.65.1.2          ;静态路由=网关

[Quidway]user-interfacevty04                          ;进入虚拟终端

[S3026-ui-vty0-4]authentication-modepassword              ;设置口令模式

[S3026-ui-vty0-4]setauthentication-modepasswordsimple222  ;设置口令

[S3026-ui-vty0-4]userprivilegelevel3                    ;用户级别

[Quidway-Ethernet0/1]duplex{half|full|auto}                ;配置端口工作状态

[Quidway-Ethernet0/1]speed{10|100|auto}                ;配置端口工作速率

[Quidway-Ethernet0/1]flow-control                    ;配置端口流控

[Quidway-Ethernet0/1]mdi{across|auto|normal}              ;配置端口平接扭接

[Quidway-Ethernet0/1]portlink-type{trunk|access|hybrid}    ;设置端口工作模式

[Quidway-Ethernet0/1]undoshutdown                    ;激活端口

[Quidway-Ethernet0/2]quit                          ;退出系统视图

[Quidway]vlan3                                    ;创建VLAN

[Quidway-vlan3]portethernet0/1toethernet0/4       ;在VLAN中增加端口

[Quidway-Ethernet0/2]portaccessvlan3               ;当前端口加入到VLAN

[Quidway-Ethernet0/2]porttrunkpermitvlan{ID|All}      ;设trunk允许的VLAN

[Quidway-Ethernet0/2]porttrunkpvidvlan3         ;设置trunk端口的PVID

[Quidway]monitor-port       ;指定镜像端口

[Quidway]portmirror        ;指定被镜像端口

[Quidway]portmirrorint_listobserving-portint_typeint_num;指定镜像和被镜像

[Quidway]descriptionstring                           ;指定VLAN描述字符

[Quidway]description                              

 ;删除VLAN描述字符

[Quidway]displayvlan[vlan_id]                          ;查看VLAN设置

[Quidway]stp{enable|disable}                            ;设置生成树,默认关闭

[Quidway]stppriority4096                           ;设置交换机的优先级

[Quidway]stproot{primary|secondary}                 ;设置为根或根的备份

[Quidway-Ethernet0/1]stpcost200                     ;设置交换机端口的花费

[SwitchA-vlanx]isolate-user-vlanenable               ;设置主vlan

[SwitchA]Isolate-user-vlansecondary         ;设置主vlan包括的子vlan

[Quidway-Ethernet0/2]porthybridpvidvlan         ;设置vlan的pvid

[Quidway-Ethernet0/2]porthybridpvid                 ;删除vlan的pvid

[Quidway-Ethernet0/2]porthybridvlanvlan_id_listuntagged ;设置无标识的vlan

如果包的vlanid与PVId一致,则去掉vlan信息.默认PVID=1。

所以设置PVID为所属vlanid,设置可以互通的vlan为untagged.

----------------------------------------

路由器命令

[Quidway]displayversion                            ;显示版本信息

[Quidway]displaycurrent-configuration                ;显示当前配置

[Quidway]displayinterfaces                          ;显示接口信息

[Quidway]displayiproute                            ;显示路由信息

[Quidway]sysnameaabbcc                              ;更改主机名

[Quidway]superpasswrod123456                        ;设置口令

[Quidway]interfaceserial0                          ;进入接口

[Quidway-serial0]ipaddress        ;配置端口IP地址

[Quidway-serial0]undoshutdown                        ;激活端口

[Quidway]link-protocolhdlc                          ;绑定hdlc协议

[Quidway]user-interfacevty04

[Quidway-ui-vty0-4]authentication-modepassword

[Quidway-ui-vty0-4]setauthentication-modepasswordsimple222

[Quidway-ui-vty0-4]userprivilegelevel3

[Quidway-ui-vty0-4]quit

[Quidway]debugginghdlcallserial0                  ;显示所有信息

[Quidway]debugginghdlceventserial0                ;调试事件信息

[Quidway]debugginghdlcpacketserial0                ;显示包的信息

静态路由:

[Quidway]iproute-static{interfacenumber|nexthop}[value][reject|blackhole]

例如:

[Quidway]iproute-static129.1.0.01610.0.0.2

[Quidway]iproute-static129.1.0.0255.255.0.010.0.0.2

[Quidway]iproute-static129.1.0.016Serial2

[Quidway]iproute-static0.0.0.00.0.0.0  10.0.0.2

动态路由:

[Quidway]rip                                            ;设置动态路由

[Quidway]ripwork                                        ;设置工作允许

[Quidway]ripinput                                      ;设置入口允许

[Quidway]ripoutput                                      ;设置出口允许

[Quidway-rip]network1.0.0.0                         ;设置交换路由网络

[Quidway-rip]networkall                                  ;设置与所有网络交换

[Quidway-rip]peerip-address                              ;

[Quidway-rip]summary                                    ;路由聚合

[Quidway]ripversion1                                  ;设置工作在版本1

[Quidway]ripversion2multicast                          ;设置工作在版本2,多播方式

[Quidway-Ethernet0]ripsplit-horizon                      ;水平分隔

[Quidway]routeridA.B.C.D                                ;配置路由器的ID

[Quidway]ospfenable                                    ;启动OSPF协议

[Quidway-ospf]import-routedirect                          ;引入直联路由

[Quidway-Serial0]ospfenablearea                ;配置OSPF区域

标准访问列表命令格式如下:

acl[match-orderconfig|auto]                  ;默认前者顺序匹配。

rule[normal|special]{permit|deny}[sourcesource-addrsource-wildcard|any]

例:

[Quidway]acl10

[Quidway-acl-10]rulenormalpermitsource10.0.0.00.0.0.255

[Quidway-acl-10]rulenormaldenysourceany

扩展访问控制列表配置命令

配置TCP/UDP协议的扩展访问列表:

rule{normal|special}{permit|deny}{tcp|udp}source{|any}destination|any}

[operate]

配置ICMP协议的扩展访问列表:

rule{normal|special}{permit|deny}icmpsource{|any]destination{|any]

[icmp-code][logging]

扩展访问控制列表操作符的含义

equalportnumber                                  ;等于

greater-thanportnumber                                  ;大于

less-thanportnumber   

展开阅读全文
相关资源
猜你喜欢
相关搜索

当前位置:首页 > 工程科技 > 兵器核科学

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1