Cisco和H3C命令对照(部分)

发布时间:2019-09-11 07:46:27编辑:auto阅读(1811)

    思科Cisco                                                       华为3COM                                               功能
    enable                                                            system-view                                            进入特权模式
    configure terminal                                             \                                                      进入配置状态
    show                                                              display                                                  显示
    show running-config                                        display current                                        显示当前的运行配置
    show version                                                   disp version                                           显示版本
    show start                                                     disp saved                                             显示已保存的配置
    show tech-support                                          disp base-information                             显示全面的信息
    no                                                                 undo                                                      取消(删除)
    hostname                                                      sysname                                                更改机器名
    \                                                                   lang chinese                                           进入中文状态
    user                                                              local-user                                               新建修改用户
    end                                                              return                                                     退回到系统视图
    exit                                                               quit                                                         返回上级视图
    exit                                                              logout                                                      telnet退出
    router rip                                                      rip                                                            rip动态路由
    router ospf                                                   ospf                                                          ospf路由
    router bgp                                                    bgp                                                         bgp路由
    write                                                            save                                                         保存配置
    erase                                                           delete                                                       删除配置
    0                                                                 simple                                                       明文
    7                                                                 cipher                                                        密文
    access-list                                                   acl                                                           控制访问列表
    host                                                           ip host                                                      host和ip名字对应
    logging                                                       info-center                                                日志信息
    encap                                                        link-protocol                                               封闭链路层协议
    no debug all                                                ctrl+d                                                        取消所有debug命令
            
    vlan database                                             vlan                                                          进入vlan的配置
    vtp trunk                                                   trunk                                                         设置成为骨干端口
    mode                                                          \                                                              模式
    trunk                                                          相同                                                         主干线
    switchport                                                  port                                                           接口控制
    access                                                       相同                                                         访问
    ip dhcp                                                      dhcp                                                         设置dhcp服务器功能

    例子:
    sysname Huawei-R2831       \\
    设置主机名
     
     
    interface Ethernet 0/0    进入接口模式
    description T0 Switch-A    \\
    接口描述
    ip address 192.168.10.222 255.255.255.0   \\
    配置接口IP地址
    undo shutdown \\
    启用接口
     
     
    local-user huawei   \\建立用户名huawei
    password simple huawei   \\
    设置密码为
    huawei
    service-type telnet \\
    服务类型为
    telnet
    user-interface vty 0 4 \\
    进入telnet通道,设置5个用户可以同时登陆

    authentication-mode scheme   \\
    设置telnet的模式为本地用户名与密码登陆
     
     
    user-interface console 0 设置console密码
    authentication-mode password
    密码认证
    set authentication password simple huawei
     
     
    super password simple huawei \\设置super密码,
     
     
    display version \\查看VRP软件版本
     
     
    display current-configuration \\查看当前运行的配置
     
     
    display saved-configuration \\查看已保存过的配置
     
     
    display interface Ethernet 0/0 \\查看接品参数
    display brief interface \\
    查看接口基本状态
     
     
    delete flash:/config.cfg \\删除用SAVE保存过的配置
     
     
    delete flash:/main.bin \\删除VRP的映像文件(谨慎操作)
     
     
    save   \\保存配置
     
     
    display ping 命令在任何视图下都可执行,不必切换到全局配置视图

关键字