所选语种没有对应资源,请选择:

本站点使用Cookies,继续浏览表示您同意我们使用Cookies。Cookies和隐私政策>

提示

尊敬的用户,您的IE浏览器版本过低,为获取更好的浏览体验,请升级您的IE浏览器。

升级

S9300, S9300E, S9300X V200R010C00 配置指南-网络管理与监控

本文档介绍了设备支持的网络管理与监控相关配置。主要内容包括:SNMP配置、RMON和RMON2配置、LLDP配置、性能管理、iPCA配置、NQA配置、业务诊断配置、镜像配置、报文捕获配置、分流配置、NetStream配置、sFlow配置、TWAMP Light配置。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置普通隧道LSP Ping测试示例

配置普通隧道LSP Ping测试示例

组网需求

图6-42所示。

  • SwitchA、SwitchB、SwitchC都运行OSPF协议,并学习到彼此Loopback接口的32位主机路由。

  • SwitchA、SwitchB、SwitchC上都启用MPLS和MPLS LDP。

  • SwitchA、SwitchB、SwitchC之间的VLANIF接口都启用MPLS和MPLS LDP,正确触发LDP LSP的建立。

使用NQA LSP Ping功能测试SwitchA与SwitchC之间的LSP连通性状态。

图6-42  LSP Ping测试组网图

配置思路

采用如下思路进行LSP Ping测试的配置:

  1. SwitchA作为NQA客户端。

  2. SwitchC作为NQA服务器端。

  3. SwitchA上建立LSP Ping测试用例。

操作步骤

  1. 配置SwitchA、SwitchB和SwitchC,通过OSPF实现间路由可达。

    # 配置SwitchA。

    <Quidway> system-view
    [Quidway] sysname SwitchA
    [SwitchA] interface loopback 1
    [SwitchA-LoopBack1] ip address 10.4.4.9 32
    [SwitchA-LoopBack1] quit
    [SwitchA] vlan 100
    [SwitchA-vlan100] quit
    [SwitchA] interface gigabitethernet 1/0/0
    [SwitchA-GigabitEthernet1/0/0] port link-type trunk
    [SwitchA-GigabitEthernet1/0/0] port trunk allow-pass vlan 100
    [SwitchA-GigabitEthernet1/0/0] quit
    [SwitchA] interface vlanif 100
    [SwitchA-Vlanif100] ip address 10.1.1.1 24
    [SwitchA-Vlanif100] quit
    [SwitchA] ospf 1
    [SwitchA-ospf-1] area 0
    [SwitchA-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
    [SwitchA-ospf-1-area-0.0.0.0] network 10.4.4.9 0.0.0.0
    [SwitchA-ospf-1-area-0.0.0.0] quit
    [SwitchA-ospf-1] quit

    # 配置SwitchB。

    <Quidway> system-view
    [Quidway] sysname SwitchB
    [SwitchB] interface loopback 1
    [SwitchB-LoopBack1] ip address 10.2.2.9 32
    [SwitchB-LoopBack1] quit
    [SwitchB] vlan 100
    [SwitchB-vlan100] quit
    [SwitchB] interface gigabitethernet 1/0/0
    [SwitchB-GigabitEthernet1/0/0] port link-type trunk
    [SwitchB-GigabitEthernet1/0/0] port trunk allow-pass vlan 100
    [SwitchB-GigabitEthernet1/0/0] quit
    [SwitchB] interface vlanif 100
    [SwitchB-Vlanif100] ip address 10.1.1.2 24
    [SwitchB-Vlanif100] quit
    [SwitchB] vlan 110
    [SwitchB-vlan110] quit
    [SwitchB] interface gigabitethernet 2/0/0
    [SwitchB-GigabitEthernet2/0/0] port link-type trunk
    [SwitchB-GigabitEthernet2/0/0] port trunk allow-pass vlan 110
    [SwitchB-GigabitEthernet2/0/0] quit
    [SwitchB] interface vlanif 110
    [SwitchB-Vlanif110] ip address 10.2.1.1 24
    [SwitchB-Vlanif110] quit
    [SwitchB] ospf 1
    [SwitchB-ospf-1] area 0
    [SwitchB-ospf-1-area-0.0.0.0] network 10.1.1.0 0.0.0.255
    [SwitchB-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
    [SwitchB-ospf-1-area-0.0.0.0] network 10.2.2.9 0.0.0.0
    [SwitchB-ospf-1-area-0.0.0.0] quit
    [SwitchB-ospf-1] quit

    # 配置SwitchC。

    <Quidway> system-view
    [Quidway] sysname SwitchC
    [SwitchC] interface loopback 1
    [SwitchC-LoopBack1] ip address 10.3.3.9 32
    [SwitchC-LoopBack1] quit
    [SwitchC] vlan 110
    [SwitchC-vlan110] quit
    [SwitchC] interface gigabitethernet 1/0/0
    [SwitchC-GigabitEthernet1/0/0] port link-type trunk
    [SwitchC-GigabitEthernet1/0/0] port trunk allow-pass vlan 110
    [SwitchC-GigabitEthernet1/0/0] quit
    [SwitchC] interface vlanif 110
    [SwitchC-Vlanif110] ip address 10.2.1.2 24
    [SwitchC-Vlanif110] quit
    [SwitchC] ospf 1
    [SwitchC-ospf-1] area 0
    [SwitchC-ospf-1-area-0.0.0.0] network 10.2.1.0 0.0.0.255
    [SwitchC-ospf-1-area-0.0.0.0] network 10.3.3.9 0.0.0.0
    [SwitchC-ospf-1-area-0.0.0.0] quit
    [SwitchC-ospf-1] quit

  2. 配置SwitchA、SwitchB和SwitchC的MPLS LDP。

    # 配置SwitchA。

    [SwitchA] mpls lsr-id 10.4.4.9
    [SwitchA] mpls
    [SwitchA-mpls] quit
    [SwitchA] mpls ldp
    [SwitchA-mpls-ldp] quit
    [SwitchA] interface vlanif 100
    [SwitchA-Vlanif100] mpls
    [SwitchA-Vlanif100] mpls ldp
    [SwitchA-Vlanif100] quit
    

    # 配置SwitchB。

    [SwitchB] mpls lsr-id 10.2.2.9
    [SwitchB] mpls
    [SwitchB-mpls] quit
    [SwitchB] mpls ldp
    [SwitchB-mpls-ldp] quit
    [SwitchB] interface vlanif 100
    [SwitchB-Vlanif100] mpls
    [SwitchB-Vlanif100] mpls ldp
    [SwitchB-Vlanif100] quit
    [SwitchB] interface vlanif 110
    [SwitchB-Vlanif110] mpls
    [SwitchB-Vlanif110] mpls ldp
    [SwitchB-Vlanif110] quit
    

    # 配置SwitchC。

    [SwitchC] mpls lsr-id 10.3.3.9
    [SwitchC] mpls
    [SwitchC-mpls] quit
    [SwitchC] mpls ldp
    [SwitchC-mpls-ldp] quit
    [SwitchC] interface vlanif 110
    [SwitchC-Vlanif110] mpls
    [SwitchC-Vlanif110] mpls ldp
    [SwitchC-Vlanif110] quit
    

  3. 查看LDP对等体间的会话信息,了解LDP会话的建立情况。

    # 当Status为Operational时表示LDP会话建立成功,以SwitchA为例。

    [SwitchA] display mpls ldp session
     
     LDP Session(s) in Public Network   
     Codes: LAM(Label Advertisement Mode), SsnAge Unit(DDDD:HH:MM)    
     A '*' before a session means the session is being deleted.   
     ------------------------------------------------------------------------------  
     PeerID             Status      LAM  SsnRole  SsnAge      KASent/Rcv    
     ------------------------------------------------------------------------------ 
     10.2.2.9:0         Operational DU   Active   0000:00:03  15/15             
     ------------------------------------------------------------------------------
     TOTAL: 1 session(s) Found.    
    

  4. 配置SwitchA

    # 使能NQA客户端,配置普通隧道的LSP Ping测试例。

    [SwitchA] nqa test-instance admin lspping
    [SwitchA-nqa-admin-lspping] test-type lspping
    [SwitchA-nqa-admin-lspping] lsp-type ipv4
    [SwitchA-nqa-admin-lspping] destination-address ipv4 10.3.3.9 lsp-masklen 32

  5. 启动测试操作

    [SwitchA-nqa-admin-lspping] start now

  6. 验证测试结果

    [SwitchA-nqa-admin-lspping] display nqa results test-instance admin lspping
    
     NQA entry(admin, lspping) :testflag is inactive ,testtype is  lspping
      1 . Test 1 result   The test is finished
       Send operation times: 3              Receive response times: 3               
       Completion:success                   RTD OverThresholds number: 0            
       Attempts number:1                    Drop operation number:0                 
       Disconnect operation number:0        Operation timeout number:0              
       System busy operation number:0       Connection fail number:0                
       Operation sequence errors number:0   RTT Status errors number:0              
       Destination ip address:10.3.3.9                                               
       Min/Max/Average Completion Time: 3/9/7                                       
       Sum/Square-Sum  Completion Time: 21/171                                      
       Last Good Probe Time: 2012-11-16 21:52:57.3                                  
       Lost packet ratio: 0 %    

配置文件

  • SwitchA的配置文件

    #
    sysname SwitchA
    #
    vlan batch 100
    #
    mpls lsr-id 10.4.4.9
    mpls
    #
    mpls ldp
    #
    interface Vlanif100
     ip address 10.1.1.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 100
    #
    interface LoopBack1
     ip address 10.4.4.9 255.255.255.255
    #
    ospf 1
     area 0.0.0.0
      network 10.1.1.0 0.0.0.255
      network 10.4.4.9 0.0.0.0
    #
    nqa test-instance admin lspping
     test-type lspping
     destination-address ipv4 10.3.3.9 lsp-masklen 32
    #
    return
  • SwitchB的配置文件

    #
    sysname SwitchB
    # 
    vlan batch 100 110
    #
    mpls lsr-id 10.2.2.9
    mpls
    #
    mpls ldp
    #
    interface Vlanif100
     ip address 10.1.1.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface Vlanif110
     ip address 10.2.1.1 255.255.255.0
     mpls
     mpls ldp
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 100
    #
    interface GigabitEthernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 110
    #
    interface LoopBack1
     ip address 10.2.2.9 255.255.255.255
    #
    ospf 1
     area 0.0.0.0
      network 10.1.1.0 0.0.0.255
      network 10.2.1.0 0.0.0.255
      network 10.2.2.9 0.0.0.0
    #
    return
  • SwitchC的配置文件

    #
    sysname SwitchC
    #
    vlan batch 110
    #
    mpls lsr-id 10.3.3.9
    mpls
    #
    mpls ldp
    #
    interface Vlanif110
     ip address 10.2.1.2 255.255.255.0
     mpls
     mpls ldp
    #
    interface GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 110
    #
    interface LoopBack1
     ip address 10.3.3.9 255.255.255.255
    #
    ospf 1
     area 0.0.0.0
      network 10.2.1.0 0.0.0.255
      network 10.3.3.9 0.0.0.0
    #
    return
翻译
下载文档
更新时间:2019-08-21

文档编号:EDOC1000141529

浏览量:19936

下载量:402

平均得分:
本文档适用于这些产品
相关文档
相关版本
Share
上一页 下一页