zoukankan      html  css  js  c++  java
  • debug调试

    交换机debug信息开关

    1         功能需求及组网说明

    交换机debug信息开关

    『配置环境参数』

    1.      PC连接在SwitchA的端口E0/1,IP地址192.168.0.2/24

    2.      SwitchA管理vlan10,IP地址192.168.0.1/24

    『组网需求』

    1.      在超级终端上可以打出debug信息

    2.      在远程telnet终端上可以看到debug信息

    2         数据配置步骤
    『debug信息使用流程』

    在实际使用中,debug信息主要用来进行数据调测或者故障定位。如果交换机在运行中并且有很重要的业务,请慎重使用这些命令,因为这些命令一旦开启将会占用很多系统资源,在调测完毕一定要关闭debug信息,恢复其它参数到初始状态,以便于其他人员后期维护。

    【vlan相关配置】

    1.      创建(进入)vlan10

    [SwitchA]vlan 10

    2.      将E0/1加入到vlan10

    [SwitchA-vlan10]port Ethernet 0/1

    3.      创建(进入)vlan10的虚接口

    [SwitchA]interface Vlan-interface 10

    4.      给vlan10的虚接口配置IP地址

    [SwitchA-Vlan-interface10]ip address 192.168.0.1 255.255.255.0

    【TELNET密码验证配置】

    1.      进入用户界面视图

    [SwitchA]user-interface vty 0 4

    2.      设置认证方式为密码验证方式

    [SwitchA-ui-vty0-4]authentication-mode password

    3.      设置明文密码

    [SwitchA-ui-vty0-4]set authentication password simple Huawei

    4.      缺省情况下,从VTY用户界面登录后可以访问的命令级别为0级。需要将用户的权限设置为3,这用户可以进入系统视图进行操作,否则只有0级用户的权限

    [SwitchA-ui-vty0-4]user  privilege level 3

    【交换机所能够查看到的debug信息】

    为方便我们日常维护和故障定位,交换机提供了丰富而详细的调试信息功能。在用户视图下面打开调试开关,选择所需要进行调试的模块参数。

    <SwitchA>debugging  ?

      all           All debugging functions

      arp           ARP module

      bgp           BGP module

      cluster       Cluster module

      device        Device manage

      dhcp-relay    DHCP relay module

      dot1x         Specify 802.1x configuration information

      ethernet      Ethernet module

      fib           FIB module

      ftp-server    FTP server information

      garp          GARP module

      gmrp          GMRP module

      gvrp          GVRP module

      habp          HABP module

      hgmpserver    HGMP server module

      igmp          IGMP module

      ip            IP module

      local-server    Local authentication server information

      mac-address    MAC address table information

      modem        Modem module

      multicast       Multicast module

      ndp           NDP module

      ni            NI module: NI Debuging information

      ntdp          NTDP module

      ntp-service     NTP module

      ospf          OSPF module

      pim           PIM module

      radius        Radius module

      rip           RIP module

      rmon          RMON debugging switch

      snmp-agent    SNMP module

      stp           STP infomation

      tcp           TCP module

      telnet         TELNET module

      udp           UDP module

      vfs           Filesystem module

      vrrp          VRRP module

      vtp           VTP module

      vty           VTY module

    【向本地超级终端输出debug信息】

    1.      例如打开ip报文的调试开关

    <SwitchA>debugging ip packet

    2.      在用户视图模式下打开屏幕输出开关。

    <SwitchA>terminal monitor

    % Current terminal monitor is on

    3.      在用户视图模式下打开调试输出开关。

    <SwitchA>terminal debugging

    % Current terminal debugging is on

    【向远程telnet终端输出debug信息】

    1.      例如打开IP报文的调试开关,需要注意的是终端telnet交换机使用的也是IP报文,所以这部分信息也会打到telnet终端上

    <SwitchA>debugging ip packet

    2.      在用户视图模式下打开屏幕输出开关。

    <SwitchA>terminal monitor

    % Current terminal monitor is on

    3.      在用户视图模式下打开调试输出开关。

    <SwitchA>terminal debugging

    % Current terminal debugging is on

    4.      缺省情况下debug信息只向console口终端输成信息,允许信息向telnet终端输出

    [SwitchA]info-center monitor channel 0

    【如何关闭debug信息】

    1.      关闭相应报文或者全部debug信息

    <SwitchA>undo debugging ip packet

    <SwitchA>undo debugging all

    Debugging for all modules has been switched off

    2.      关闭调试输出开关

    <SwitchA>undo terminal debugging

    % Current terminal debugging is off

    3.      关闭屏幕输出开关

    <SwitchA>undo terminal monitor

    % Current terminal monitor is off

    4.      如果是关闭telnet终端输出信息,还要恢复原来设置

    [SwitchA]undo info-center monitor channel

    3         测试验证
    1.      可以在PC的超级终端或者telnet终端上看到debug信息

    2.      能够正确关闭debug信息
    ————————————————
    原文链接:https://blog.csdn.net/zushao0124/article/details/498265

    谢谢你的喜欢!
  • 相关阅读:
    1、Java语言概述与开发环境——Java程序运行机制
    1、Java语言概述与开发环境——JDK的安装与环境变量的配置
    针孔成像模型
    anconda下安装opencv
    用Navicat Prenium12连接Oracle数据库(oracle11g版本)时报错ORA-28547:connection to server failed,probable Oracle Net admin error.解决办法
    JQueryEsayUI的datagrid分页
    java中String和int的互相转化
    js页面刷新
    oracle的正则表达式
    EL表达式中,param和requestScope的区别
  • 原文地址:https://www.cnblogs.com/linwenye/p/12591804.html
Copyright © 2011-2022 走看看