S9300, S9300X V200R019C10 配置指南-IP单播路由

本文档介绍了IP单播路由的配置,具体包括IP路由概述、静态路由配置、RIP配置、RIPng配置、OSPF配置、OSPFv3配置、IS-IS(IPv4)配置、IS-IS(IPv6)配置、BGP配置、路由策略配置、IP路由表管理、策略路由配置和路由监控组配置。

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

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

组网需求

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

图8-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类似。

    <Quidway> system-view
    [Quidway] sysname SwitchA
    [SwitchA] vlan batch 10
    [SwitchA] interface gigabitethernet 1/0/0
    [SwitchA-GigabitEthernet1/0/0] port link-type trunk
    [SwitchA-GigabitEthernet1/0/0] port trunk allow-pass vlan 10
    [SwitchA-GigabitEthernet1/0/0] 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 GigabitEthernet1/0/0
     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 GigabitEthernet1/0/0
     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 GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 10
    #
    interface GigabitEthernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 20
    #
    interface GigabitEthernet3/0/0
     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 GigabitEthernet1/0/0
     port link-type trunk
     port trunk allow-pass vlan 30 
    #
    interface GigabitEthernet2/0/0
     port link-type trunk
     port trunk allow-pass vlan 40
    #
    return
翻译
收藏
下载文档
更新时间:2022-05-24
文档编号:EDOC1100127069
浏览量:113609
下载量:160
平均得分:0.0