• 搜索
  • 侧边栏壁纸
    博主头像
    慕怀夕 博主等级

    行动起来,活在当下

    • 累计撰写 13 篇文章
    • 累计创建 9 个标签
    • 累计收到 0 条评论

    目 录CONTENT

    文章目录

    操作篇

    小Han同学
    2025-03-16 / 0 评论 / 0 点赞 / 72 阅读 / 0 字
    温馨提示:
    本文最后更新于136天前,若内容或图片失效,请留言反馈。 部分素材来自网络,若不小心影响到您的利益,请联系我们删除。

    设备启动后

    1. 加电自检:启动BootRom,加载主板驱动程序

    2. 读取系统:将Flash里面的VRP系统读取到RAM内存中

    3. 加载配置:运行配置文件,启动配置,设备正常运行

    网络设备连接调试的方式:

    • Console口连接调试[初始化调试,老设备]

    • 远程登录调试:Telnet[不安全]/SSH[加密]

      常用连接工具:SecureCRT、XShell、Putty、Mobaxterm(考场使用)

      工作时常备两款以上连接工具

    • SDN纳管连接调试[未来]

    去客户现场需要携带的工具:Console线*2、网线、笔记本、螺丝刀、网线钳、水晶头、跳线、寻线仪、打光笔

    初始化调试

    输入一个不完整的命令并按键盘上的Tab键,就可以补全该命令

    进入系统视图
    sys #[TAB]
    system-view
    修改主机名
    #[进入系统视图]system-view
    sysn #[TAB]
    sysname HKY#[主机名]
    进入接口视图配置接口IP
    #[进入系统视图]:system-view
    ##[进入接口视图]:interface GigabitEthernet0/0/0
    inter #[TAB]
    interface g0/0/0 
    #[配置接口参数]:ip address [接口IP] [子网掩码]
    ip add #[TAB]
    ip address 192.168.1.1 255.255.255.0

    配置完ping一下

    ##[进入系统视图]:system-view
    #[进入Console接口视图]user-interface console 0
    user-in #[TAB]
    user-interface con #[TAB]
    user-interface console 0
    #[设置该Console口密码]:set authentication password cipher [密码]
    set au #[TAB]
    set authentication pas #[TAB]
    set authentication password c #[TAB]
    set authentication password cipher Huawei@123

    测试Console口配置是否生效?

    多次按q回车退出,再次登录时需要输入Console口密码。(输入的密码不会显示,输入完直接回车即可)

    配置远程登录
    ##[进入系统视图]:system-view
    #[进入远程登录视图]:user-interface vty [用户数]
    user-in #[TAB]
    user-interface vty 0 4 
    #[设置Telnet登录]:set authentication password cipher [密码]
    set au #[TAB]
    set authentication pas #[TAB]
    set authentication password c #[TAB]
    set authentication password cipher Huawei@123
    ---
    #[设置SSH登录]
    ##system-view [进入系统视图]
    ##user-interface vty 0 4 [进入远程登录视图]
    ###[认证模式改为AAA模式]
    au #[TAB]
    authentication-mode aaa 
    ###[只允许SSH协议入站登录]
    protocol in  #[TAB]
    protocol inbound ssh 
    ###[进入AAA视图]
    aaa 
    ###[创建用户和密码]:local-user [用户名] password cipher [密码] 
    loc  #[TAB]
    local-user hcie pas  #[TAB]
    local-user hcie password c #[TAB]
    local-user hcie password cipher Huawei@123 
    ###[将该用户用于SSH登录]:local-user [用户名] service-type ssh 
    loc  #[TAB]
    local-user hcie ser #[TAB]
    local-user hcie service-type ssh 
    ###[退到系统视图]
    q 
    ###[开启SSH登录服务]
    stelnet ser #[TAB]
    stelnet server enable 
    ​
    设置时间及NTP服务
    #[调整时区]clock timezone [时区] add [区时]
    clock timezone ZN add 8
    #[调整时间]clock datetime [时间] [日期]
    clock datetime 15:00:00 2025-01-02
    #[设置NTP服务]ntp-server unicast-server [NTP服务地址]
    sys
    ntp-ser #[TAB]
    ntp-server unicast-server 52.231.114.183
    设置设备的监控

    SNMP协议实现监控

    #[进入系统视图]:system-view
    sn #[TAB]
    snmp-agent #[TAB]
    snmp-agant ta #[TAB]
    ##[打开监控功能]
    snmp-agant tarp enable 
    ##[设置监控版本]
    snmp-agent sys-info version 
    ##[设置监控权限和密钥]:snmp-agent community [权限] [密钥]
    snmp-agent com  
    snmp-agent community read HCIE@123

    snmp-agent sys-info version ?

    all Enable the device to support SNMPv1, SNMPv2c and SNMPv3 v1 Enable the device to support SNMPv1 [安全性不够,已淘汰] v2c Enable the device to support SNMPv2c [现在主用监控版本] v3 Enable the device to support SNMPv3 [针对大型网络架构,支持分组监控]

    snmp-agent community ?

    read Read-only access for this community in the view write Read-write access for this community in the view

    设置默认路由
    #[进入系统视图]:system-view
    ip route- #[TAB]
    ip route-static 0.0.0.0 0.0.0.0 192.168.1.1
    查看类命令
    display version #[查看系统版本]
    display current-configuration #[查看当前配置信息]
    display interface brief #[查看接口列表]
    display ip interface brief #[查看能配IP地址的接口列表]
    display license #[查看设备激活情况]
    display esn #[查看设备序列号]
    display ip routing-table #[查看路由表]
    display arp #[查看ARP表]
    display clock #[查看时间]

    0
    1. 支付宝打赏

      qrcode alipay
    2. 微信打赏

      qrcode weixin

    评论区