IPv6 ISIS双栈示例

组网需求

  1. 某公司通过部署IS-IS实现IPv4网络的互联互通,同时部署IPv6网络进行业务测试,需要在IS-IS中使能IPv6功能
  2. 由于设备性能不同,通过修改开销值,实现IPv4和IIPv6业务优先不同的路径,且IPv6网络单独计算拓扑
  3. 所有路由器运行IS-IS协议,整个网络都处于区域49.0001中国,且路由器均为level-2路由器
  4. 配置完成后,每台路由器都应该学到AS内的所有网段的IPv4路由和IPv6路由

组网拓扑

IPv6-ISIS配置示例拓扑图

配置命令

  1. 配置路由器基本功能以及各个接口IPv4地址

    • R1配置

      1
      2
      3
      4
      5
      6
      sys
      sys R1
      int g0/0/0
      ip add 10.1.12.1 30
      int g0/0/1
      ip add 10.1.13.1 30
  • R2配置

    1
    2
    3
    4
    5
    6
    sys
    sys R2
    int g0/0/0
    ip add 10.1.12.2 30
    int g0/0/1
    ip add 10.1.24.2 30
  • R3配置

    1
    2
    3
    4
    5
    6
    sys
    sys R3
    int g0/0/1
    ip add 10.1.13.2 30
    int g0/0/2
    ip add 10.1.34.1 30
  • R4配置

    1
    2
    3
    4
    5
    6
    sys
    sys R4
    int g0/0/1
    ip add 10.1.24.1 30
    int g0/0/2
    ip add 10.1.34.2 30
  1. 配置IS-IS(IPv4)路由协议以及接口使能IS-IS路由协议

    • R1配置

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      12
      sys
      isis 1
      is-level level-2
      network-entity 49.0001.0000.0001.00
      quit
      int g0/0/0
      isis enable 1
      isis small-hello
      int g0/0/1
      isis enable 1
      isis small-hello
      isis cost 40 level-2
  • R2配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    sys
    isis 1
    is-level level-2
    network-entity 49.0001.0000.0002.00
    quit
    int g0/0/0
    isis enable 1
    isis small-hello
    int g0/0/1
    isis enable 1
    isis small-hello
  • R3配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    sys
    isis 1
    is-level level-2
    network-entity 49.0001.0000.0003.00
    quit
    int g0/0/1
    isis enable 1
    isis small-hello
    int g0/0/2
    isis enable 1
    isis small-hello
  • R4配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    sys
    isis 1
    is-level level-2
    network-entity 49.0001.0000.0004.00
    quit
    int g0/0/1
    isis enable 1
    isis small-hello
    int g0/0/2
    isis enable 1
    isis small-hello
  1. 配置使能IPv6以及配置IPv6接口地址

    • R1配置

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      11
      sys
      ipv6

      int g0/0/0
      ipv6 enable
      ipv6 address auto link-local
      ipv6 address 2001:db8:2345:12::1/64
      int g0/0/1
      ipv6 enable
      ipv6 address auto link-local
      ipv6 address 2001:db8:2345:13::1/64
  • R2配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    sys
    ipv6

    int g0/0/0
    ipv6 enable
    ipv6 address auto link-local
    ipv6 address 2001:db8:2345:12::2/64
    int g0/0/1
    ipv6 enable
    ipv6 address auto link-local
    ipv6 address 2001:db8:2345:24::2/64
  • R3配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    sys
    ipv6

    int g0/0/1
    ipv6 enable
    ipv6 address auto link-local
    ipv6 address 2001:db8:2345:13::2/64
    int g0/0/2
    ipv6 enbale
    ipv6 address auto link-local
    ipv6 address 2001:db8:2345:34::1/64
  • R4配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    sys
    ipv6

    int g0/0/1
    ipv6 enbale
    ipv6 address auto link-local
    ipv6 address 2001:db8:2345:24::1/64
    int g0/0/2
    ipv6 enable
    ipv6 address auto link-local
    ipv6 address 2001:db8:2345:34::2/64
  1. 配置IS-IS(IPv6)路由协议以及接口使能ISIS(IPv6)

    • R1配置

      1
      2
      3
      4
      5
      6
      7
      8
      9
      10
      sys
      isis 1
      ipv6 enbale topology ipv6
      quit

      int g0/0/0
      isis ipv6 enable 1
      isis ipv6 cost 40 level-2
      int g0/0/1
      isis ipv6 enable 1
  • R2配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    sys
    isis 1
    ipv6 enable topology ipv6
    quit

    int g0/0/0
    isis ipv6 enbale 1
    int g0/0/1
    isis ipv6 enbale 1
  • R3配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    sys
    isis 1
    ipv6 enable topology ipv6
    quit

    int g0/0/0
    isis ipv6 enbale 1
    int g0/0/1
    isis ipv6 enbale 1
  • R4配置

    1
    2
    3
    4
    5
    6
    7
    8
    9
    sys
    isis 1
    ipv6 enable topology ipv6
    quit

    int g0/0/0
    isis ipv6 enbale 1
    int g0/0/1
    isis ipv6 enbale 1

查看命令

  1. 查看IS-IS(IPv6)接口信息

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    display isis interface g0/0/0 verbose

    <R1>display isis interface g0/0/0 verbose

    Interface information for ISIS(1)
    ---------------------------------
    Interface Id IPV4.State IPV6.State MTU Type DIS
    GE0/0/0 001 Up Up 1497 L1/L2 No/No
    Circuit MT State : Standard IPV6
    Circuit Parameters : small-hello
    Description : HUAWEI, AR Series, GigabitEthernet0/0/0 Interfac
    e
    SNPA Address : 00e0-fc2f-2b3e
    IP Address : 10.1.12.1
    IPV6 Link Local Address : FE80::2E0:FCFF:FE2F:2B3E
    IPV6 Global Address(es) : 2001:DB8:2345:12::1/64
    Csnp Timer Value : L1 10 L2 10
    Hello Timer Value : L1 10 L2 10
    DIS Hello Timer Value : L1 3 L2 3
    Hello Multiplier Value : L1 3 L2 3
    LSP-Throttle Timer : L12 50
    Cost : L1 10 L2 10
    Ipv6 Cost : L1 10 L2 40
    Priority : L1 64 L2 64
    Retransmit Timer Value : L12 5
    Bandwidth-Value : Low 1000000000 High 0
    Static Bfd : NO
    Dynamic Bfd : NO
    Fast-Sense Rpr : NO
  1. 查看IS-IS(IPv6)邻居信息

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    display isis 1 peer verbose

    <R1>dis isis 1 peer verbose

    Peer information for ISIS(1)

    System Id Interface Circuit Id State HoldTime Type PRI
    -------------------------------------------------------------------------------
    0001.0000.0002* GE0/0/0 0001.0000.0002.01 Up 9s L2 64

    MT IDs supported : 0(UP) 2(UP)
    Local MT IDs : 0 2
    Area Address(es) : 49
    Peer IP Address(es) : 10.1.12.2
    Peer IPv6 Address(es): FE80::2E0:FCFF:FE40:4681
    Uptime : 06:59:14
    Adj Protocol : IPV4 IPV6
    Restart Capable : YES
    Suppressed Adj : NO
    Peer System Id : 0001.0000.0002

    0001.0000.0003* GE0/0/1 0001.0000.0003.01 Up 9s L2 64

    MT IDs supported : 0(UP) 2(UP)
    Local MT IDs : 0 2
    Area Address(es) : 49
    Peer IP Address(es) : 10.1.13.2
    Peer IPv6 Address(es): FE80::2E0:FCFF:FEF5:7FD6
    Uptime : 06:57:15
    Adj Protocol : IPV4 IPV6
    Restart Capable : YES
    Suppressed Adj : NO
    Peer System Id : 0001.0000.0003


    Total Peer(s): 2
  1. 查看IS-IS(IPv6)路由信息

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    display isis route [process-id | vpn-instance vpn-instance name ] ipv6 [verbose | [level-1 | level-2]| ipv6-address[prefix-length]]

    display isis route ipv6

    <R1>display isis route ipv6

    Route information for ISIS(1)
    -----------------------------

    ISIS(1) Level-2 Forwarding Table
    --------------------------------

    IPV6 Dest. ExitInterface NextHop Cost Flags
    -------------------------------------------------------------------------------
    2001:DB8:2345:34::/64
    GE0/0/1 FE80::2E0:FCFF:FEF5:7FD6 20 A/-/-
    2001:DB8:2345:24::/64
    GE0/0/1 FE80::2E0:FCFF:FEF5:7FD6 30 A/-/-
    2001:DB8:2345:12::/64
    GE0/0/0 Direct 40 D/L/-
    2001:DB8:2345:13::/64
    GE0/0/1 Direct 10 D/L/-

    Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut,
    U-Up/Down Bit Set
吴超 wechat
subscribe to my blog by scanning my public wechat account