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

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

提示

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

升级

S1720, S2700, S5700, S6720 V200R010C00 配置指南-IP单播路由

本文档介绍了设备支持的IP单播路由相关配置。主要内容包括IP路由概述,静态路由、RIP、RIPng、OSPF、OSPFv3、IS-IS(IPv4)、IS-IS(IPv6)、BGP、路由策略以及策略路由的基本原理和配置过程,并提供相关的配置案例。
评分并提供意见反馈 :
华为采用机器翻译与人工审校相结合的方式将此文档翻译成不同语言,希望能帮助您更容易理解此文档的内容。 请注意:即使是最好的机器翻译,其准确度也不及专业翻译人员的水平。 华为对于翻译的准确性不承担任何责任,并建议您参考英文文档(已提供链接)。
配置IS-IS IPv6的基本功能示例

配置IS-IS IPv6的基本功能示例

组网需求

图1所示,在IPv6拓扑网络中有4台交换机,现要求在这4台交换机上实现网络互联,并且因为SwitchA和SwitchB性能相对较低,所以还要使这两台交换机处理相对较少的数据信息。

图9-1  配置IS-IS的IPv6特性基本功能组网图

配置思路

采用如下的思路配置IS-IS IPv6的基本功能:

  1. 在各交换机的接口上配置IPv6地址,实现网络可达。

  2. 在各交换机上配置IS-IS for IPv6基本功能,实现网络互联。其中,将SwitchA、SwitchB设为Level-1设备,从而使得这两台交换机可以维护相对少量的数据信息。

操作步骤

  1. 配置各接口所属VLAN

    # 配置SwitchA。SwitchB、SwitchC和SwitchD的配置与SwitchA类似。

    <HUAWEI> system-view
    [HUAWEI] sysname SwitchA
    [SwitchA] vlan batch 10
    [SwitchA] interface gigabitethernet 0/0/1
    [SwitchA-GigabitEthernet0/0/1] port link-type trunk
    [SwitchA-GigabitEthernet0/0/1] port trunk allow-pass vlan 10
    [SwitchA-GigabitEthernet0/0/1] quit

  2. 使能IPv6转发能力,配置各接口的IPv6地址

    # 配置SwitchA。SwitchB、SwitchC和SwitchD的配置与SwitchA类似。

    [SwitchA] ipv6
    [SwitchA] interface vlanif 10
    [SwitchA-Vlanif10] ipv6 enable
    [SwitchA-Vlanif10] ipv6 address fc00:0:0:10::2/64
    [SwitchA-Vlanif10] quit

  3. 配置IS-IS

    # 配置SwitchA。

    [SwitchA] isis 1
    [SwitchA-isis-1] is-level level-1
    [SwitchA-isis-1] network-entity 10.0000.0000.0001.00
    [SwitchA-isis-1] ipv6 enable
    [SwitchA-isis-1] quit
    [SwitchA] interface vlanif 10
    [SwitchA-Vlanif10] isis ipv6 enable 1
    [SwitchA-Vlanif10] quit

    # 配置SwitchB。

    [SwitchB] isis 1 
    [SwitchB-isis-1] is-level level-1
    [SwitchB-isis-1] network-entity 10.0000.0000.0002.00
    [SwitchB-isis-1] ipv6 enable
    [SwitchB-isis-1] quit
    [SwitchB] interface vlanif 20
    [SwitchB-Vlanif20] isis ipv6 enable 1
    [SwitchB-Vlanif20] quit

    # 配置SwitchC。

    [SwitchC] isis 1
    [SwitchC-isis-1] network-entity 10.0000.0000.0003.00
    [SwitchC-isis-1] ipv6 enable
    [SwitchC-isis-1] quit
    [SwitchC] interface vlanif 10
    [SwitchC-Vlanif10] isis ipv6 enable 1
    [SwitchC-Vlanif10] quit
    [SwitchC] interface vlanif 20
    [SwitchC-Vlanif20] isis ipv6 enable 1
    [SwitchC-Vlanif20] quit
    [SwitchC] interface vlanif 30
    [SwitchC-Vlanif30] isis ipv6 enable 1
    [SwitchC-Vlanif30] isis circuit-level level-2
    [SwitchC-Vlanif30] quit

    # 配置SwitchD。

    [SwitchD] isis 1 
    [SwitchD-isis-1] is-level level-2
    [SwitchD-isis-1] network-entity 20.0000.0000.0004.00
    [SwitchD-isis-1] ipv6 enable
    [SwitchD-isis-1] quit
    [SwitchD] interface vlanif 30
    [SwitchD-Vlanif30] isis ipv6 enable 1
    [SwitchD-Vlanif30] quit
    [SwitchD] interface vlanif40
    [SwitchD-Vlanif40] isis ipv6 enable 1
    [SwitchD-Vlanif40] quit

  4. 验证配置结果

    # 显示SwitchA的IS-IS路由表。

    [SwitchA] display isis route
    
                             Route information for ISIS(1)
                             -----------------------------
    
                            ISIS(1) Level-1 Forwarding Table
                            --------------------------------
    
    IPV4 Destination     IntCost    ExtCost ExitInterface   NextHop         Flags
    -------------------------------------------------------------------------------
    0.0.0.0/0            10         NULL   
    
     IPV6 Dest.      ExitInterface   NextHop                       Cost       Flags
    -------------------------------------------------------------------------------
     ::/0            Vlanif10        FE80::244:1FF:FE41:5411       10         A/-/-
     FC00:0:0:10::/64                            
                     Vlanif10        Direct                        10         D/L/-
     FC00:0:0:20::/64                            
                     Vlanif10        FE80::244:1FF:FE41:5411       20         A/-/-
    
         Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
                                   U-Up/Down Bit Set

    # 显示SwitchC的IS-IS邻居的详细信息。

    [SwitchC] display isis peer verbose
    
                              Peer information for ISIS(1)
    
      System Id     Interface          Circuit Id       State HoldTime Type     PRI
    -------------------------------------------------------------------------------
    0000.0000.0001  Vlanif10           0000.0000.0001.01 Up   8s       L1       64 
    
      MT IDs supported     : 0(UP) 
      Local MT IDs         : 0 
      Area Address(es)     : 10 
      Peer IPv6 Address(es): FE80::1234:FCFF:FEFC:199
      Uptime               : 00:02:08
      Adj Protocol         : IPV6 
      Restart Capable      : YES
      Suppressed Adj       : NO
      Peer System Id       : 0000.0000.0001  
    
    0000.0000.0002  Vlanif20           0000.0000.0003.02 Up   24s      L1       64 
    
      MT IDs supported     : 0(UP) 
      Local MT IDs         : 0 
      Area Address(es)     : 10 
      Peer IPv6 Address(es): FE80::225:9EFF:FEFB:494A
      Uptime               : 00:02:09
      Adj Protocol         : IPV6 
      Restart Capable      : YES
      Suppressed Adj       : NO
      Peer System Id       : 0000.0000.0002  
    
    0000.0000.0004  Vlanif30           0000.0000.0003.03 Up   27s      L2       64 
    
      MT IDs supported     : 0(UP) 
      Local MT IDs         : 0 
      Area Address(es)     : 20 
      Peer IPv6 Address(es): FE80::244:1FF:FE41:5410
      Uptime               : 00:02:16
      Adj Protocol         : IPV6 
      Restart Capable      : YES
      Suppressed Adj       : NO
      Peer System Id       : 0000.0000.0004  
    
    
    Total Peer(s): 3

    # 显示SwitchC的IS-IS LSDB的详细信息。

    [SwitchC] display isis lsdb verbose
    
                            Database information for ISIS(1)
                            --------------------------------
    
                              Level-1 Link State Database
    
    LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL
    -------------------------------------------------------------------------------
    0000.0000.0001.00-00  0x00000005   0x3cb9        1009          86      0/0/0   
     SOURCE       0000.0000.0001.00
     NLPID        IPV6
     AREA ADDR    10 
     INTF ADDR V6 FC00:0:0:10::2                 
     Topology     Standard
     NBR  ID      0000.0000.0001.01  COST: 10        
     IPV6         FC00:0:0:10::/64                 COST: 10        
    
    0000.0000.0001.01-00  0x00000001   0xd8f1        1009          55      0/0/0   
     SOURCE       0000.0000.0001.01
     NLPID        IPV6
     NBR  ID      0000.0000.0001.00  COST: 0         
     NBR  ID      0000.0000.0003.00  COST: 0         
    
    0000.0000.0002.00-00  0x00000005   0x864b        1007          86      0/0/0   
     SOURCE       0000.0000.0002.00
     NLPID        IPV6
     AREA ADDR    10 
     INTF ADDR V6 FC00:0:0:20::2                 
     Topology     Standard
     NBR  ID      0000.0000.0003.02  COST: 10        
     IPV6         FC00:0:0:20::/64                 COST: 10        
    
    0000.0000.0003.00-00* 0x00000007   0xcf9b        1012          143     1/0/0   
     SOURCE       0000.0000.0003.00
     NLPID        IPV6
     AREA ADDR    10 
     INTF ADDR V6 FC00:0:0:10::1                 
     INTF ADDR V6 FC00:0:0:20::1                 
     INTF ADDR V6 FC00:0:0:30::1                 
     Topology     Standard
     NBR  ID      0000.0000.0001.01  COST: 10        
     NBR  ID      0000.0000.0003.02  COST: 10        
     IPV6         FC00:0:0:10::/64                 COST: 10        
     IPV6         FC00:0:0:20::/64                 COST: 10        
    
    0000.0000.0003.02-00* 0x00000001   0xc9fa        1009          55      0/0/0   
     SOURCE       0000.0000.0003.02
     NLPID        IPV6
     NBR  ID      0000.0000.0003.00  COST: 0         
     NBR  ID      0000.0000.0002.00  COST: 0         
    
    Total LSP(s): 5
        *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended), 
               ATT-Attached, P-Partition, OL-Overload
    
    
                              Level-2 Link State Database
    
    LSPID                 Seq Num      Checksum      Holdtime      Length  ATT/P/OL
    -------------------------------------------------------------------------------
    0000.0000.0003.00-00* 0x00000006   0x8ff6        1014          146     0/0/0   
     SOURCE       0000.0000.0003.00
     NLPID        IPV6
     AREA ADDR    10 
     INTF ADDR V6 FC00:0:0:10::1                 
     INTF ADDR V6 FC00:0:0:20::1                 
     INTF ADDR V6 FC00:0:0:30::1                 
     Topology     Standard
     NBR  ID      0000.0000.0003.03  COST: 10        
     IPV6         FC00:0:0:10::/64                 COST: 10        
     IPV6         FC00:0:0:20::/64                 COST: 10        
     IPV6         FC00:0:0:30::/64                 COST: 10        
    
    0000.0000.0003.03-00* 0x00000001   0xfac6        1012          55      0/0/0   
     SOURCE       0000.0000.0003.03
     NLPID        IPV6
     NBR  ID      0000.0000.0003.00  COST: 0         
     NBR  ID      0000.0000.0004.00  COST: 0         
    
    0000.0000.0004.00-00  0x00000005   0x5943        1009          86      0/0/0   
     SOURCE       0000.0000.0004.00
     NLPID        IPV6
     AREA ADDR    20 
     INTF ADDR V6 FC00:0:0:30::2                 
     Topology     Standard
     NBR  ID      0000.0000.0003.03  COST: 10        
     IPV6         FC00:0:0:30::/64                 COST: 10        
    
    Total LSP(s): 3
        *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended), 
               ATT-Attached, P-Partition, OL-Overload

配置文件

  • SwitchA的配置文件

    #
    sysname SwitchA
    #
    ipv6
    #
    vlan batch 10
    #
    isis 1
     is-level level-1
     network-entity 10.0000.0000.0001.00
     #
     ipv6 enable topology standard
     #
    #
    interface Vlanif10
     ipv6 enable
     ipv6 address FC00:0:0:10::2/64
     isis ipv6 enable 1
    #
    interface GigabitEthernet0/0/1
     port link-type trunk
     port trunk allow-pass vlan 10 
    #
    return
  • SwitchB的配置文件

    #
    sysname SwitchB
    #
    ipv6
    #
    vlan batch 20
    #
    isis 1
     is-level level-1
     network-entity 10.0000.0000.0002.00
     #
     ipv6 enable topology standard
     #
    #
    interface Vlanif20
     ipv6 enable
     ipv6 address FC00:0:0:20::2/64
     isis ipv6 enable 1
    #
    interface GigabitEthernet0/0/1
     port link-type trunk
     port trunk allow-pass vlan 20 
    #
    return
  • SwitchC的配置文件

    #
    sysname SwitchC
    #
    ipv6
    #
    vlan batch 10 20 30
    #
    isis 1
     network-entity 10.0000.0000.0003.00
     #
     ipv6 enable topology standard
     #
    #
    interface Vlanif10
     ipv6 enable
     ipv6 address FC00:0:0:10::1/64
     isis ipv6 enable 1
    #
    interface Vlanif20
     ipv6 enable
     ipv6 address FC00:0:0:20::1/64
     isis ipv6 enable 1
    #
    interface Vlanif30
     ipv6 enable
     ipv6 address FC00:0:0:30::1/64
     isis ipv6 enable 1
     isis circuit-level level-2
    #
    interface GigabitEthernet0/0/1
     port link-type trunk
     port trunk allow-pass vlan 10
    #
    interface GigabitEthernet0/0/2
     port link-type trunk
     port trunk allow-pass vlan 20
    #
    interface GigabitEthernet0/0/3
     port link-type trunk
     port trunk allow-pass vlan 30 
    #
    return
  • SwitchD的配置文件

    #
    sysname SwitchD
    #
    ipv6
    #
    vlan batch 30 40
    #
    isis 1
     is-level level-2
     network-entity 20.0000.0000.0004.00
     #
     ipv6 enable topology standard
     #
    #
    interface Vlanif30
     ipv6 enable
     ipv6 address FC00:0:0:30::2/64
     isis ipv6 enable 1
    #
    interface Vlanif40
     ipv6 enable
     ipv6 address FC00:0:0:25::1/64
     isis ipv6 enable 1
    #
    interface GigabitEthernet0/0/1
     port link-type trunk
     port trunk allow-pass vlan 30 
    #
    interface GigabitEthernet0/0/2
     port link-type trunk
     port trunk allow-pass vlan 40
    #
    return
翻译
下载文档
更新时间:2019-04-17

文档编号:EDOC1000141402

浏览量:21956

下载量:1340

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