玩转华为ENSP模拟器系列 | 配置IS-IS基本功能示例

素材来源:华为路由器配置指南

一边学习一边整理试验笔记,并与大家分享,侵权即删,谢谢支持!

附上汇总贴:玩转华为ENSP模拟器系列 | 合集_COCOgsta的博客-CSDN博客_ensp实验大全


目标

介绍IS-IS基本功能的配置过程,包括在各设备上指定网络实体名、配置level级别和使能IS-IS。

组网需求

DeviceA、DeviceB、DeviceC和DeviceD之间通过IS-IS协议实现IP网络互连。

DeviceA、DeviceB和DeviceC属于区域10,DeviceD属于区域20。

DeviceA和DeviceB是Level-1设备,DeviceC是Level-1-2设备,DeviceD是Level-2设备。

玩转华为ENSP模拟器系列 | 配置IS-IS基本功能示例_第1张图片

配置思路

  • 在各路由器上使能IS-IS,配置level级别,指定网络实体。
  • 配置DeviceA和DeviceC以指定的方式和密码验证Hello报文。
  • 查看各路由器的IS-IS数据库信息及路由表信息。

操作步骤

  1. 配置各接口的IP地址(略)
  2. 配置IS-IS基本功能

配置DeviceA

DeviceA:
isis 1
 is-level level-1
 network-entity 10.0000.0000.0001.00
interface Ethernet1/0/0
 isis enable 1

配置DeviceB

DeviceB:
isis 1
 is-level level-1
 network-entity 10.0000.0000.0002.00
interface Ethernet1/0/0
 isis enable 1

配置DeviceC

DeviceC:
isis 1
 network-entity 10.0000.0000.0003.00
interface Ethernet1/0/0
 isis enable 1  
interface Ethernet1/0/1
 isis enable 1
interface Ethernet1/0/2
 isis enable 1

配置DeviceD

DeviceD:
isis 1
 is-level level-2
 network-entity 20.0000.0000.0004.00
interface Ethernet1/0/0
 isis enable 1
interface Ethernet1/0/1
 isis enable 1
  1. 配置DeviceA和DeviceC验证Hello报文的认证模式和密码。

配置DeviceA

DeviceA:
interface Ethernet1/0/0
 isis authentication-mode md5 cipher %^%#uA%$)Z%t&4"I^%IG\OqNt4A()_z=_BY4=qDg#+_O%^%#

配置DeviceC

DeviceC:
interface Ethernet1/0/0
 isis authentication-mode md5 cipher %^%#ucy<7uqB$ZhkRq73gALA,m)p~7QPU8/VJaVBPu#A%^%#
  1. 验证配置结果

显示各路由器的IS-IS LSDB信息。

[~DeviceA]display isis lsdb
                        Database information for ISIS(1)
                        -----------------------------------
                          Level-1 Link State Database
LSPID                 Seq Num      Checksum      HoldTime      Length  ATT/P/OL
-------------------------------------------------------------------------------
0000.0000.0001.00-00* 0x00000007   0x64d6        1097          68      0/0/0   
0000.0000.0002.00-00  0x00000005   0x8baf        412           68      0/0/0   
0000.0000.0002.01-00  0x00000005   0xd2b3        412           55      0/0/0   
0000.0000.0003.00-00  0x0000000a   0x2647        460           111     1/0/0   
0000.0000.0003.01-00  0x00000004   0xa7dd        460           55      0/0/0   
Total LSP(s): 5
    *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
           ATT-Attached, P-Partition, OL-Overload
[~DeviceA] 
[~DeviceB]display isis lsdb
                        Database information for ISIS(1)
                        -----------------------------------
                          Level-1 Link State Database
LSPID                 Seq Num      Checksum      HoldTime      Length  ATT/P/OL
-------------------------------------------------------------------------------
0000.0000.0001.00-00  0x00000007   0x64d6        1021          68      0/0/0   
0000.0000.0002.00-00* 0x00000005   0x8baf        336           68      0/0/0   
0000.0000.0002.01-00* 0x00000005   0xd2b3        336           55      0/0/0   
0000.0000.0003.00-00  0x0000000a   0x2647        384           111     1/0/0   
0000.0000.0003.01-00  0x00000004   0xa7dd        384           55      0/0/0   
Total LSP(s): 5
    *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
           ATT-Attached, P-Partition, OL-Overload
[~DeviceB]
[~DeviceC]display isis lsdb
                        Database information for ISIS(1)
                        -----------------------------------
                          Level-1 Link State Database
LSPID                 Seq Num      Checksum      HoldTime      Length  ATT/P/OL
-------------------------------------------------------------------------------
0000.0000.0001.00-00  0x00000007   0x64d6        981           68      0/0/0   
0000.0000.0002.00-00  0x00000006   0x89b0        1196          68      0/0/0   
0000.0000.0002.01-00  0x00000006   0xd0b4        1196          55      0/0/0   
0000.0000.0003.00-00* 0x0000000a   0x2647        344           111     1/0/0   
0000.0000.0003.01-00* 0x00000004   0xa7dd        344           55      0/0/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* 0x00000008   0x3cd3        344           100     0/0/0   
0000.0000.0004.00-00  0x0000000a   0x0749        1021          84      0/0/0   
0000.0000.0004.01-00  0x00000004   0xe898        566           55      0/0/0   
Total LSP(s): 3
    *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
           ATT-Attached, P-Partition, OL-Overload
[~DeviceC] 
[~DeviceD]display isis lsdb
                        Database information for ISIS(1)
                        -----------------------------------
                          Level-2 Link State Database
LSPID                 Seq Num      Checksum      HoldTime      Length  ATT/P/OL
-------------------------------------------------------------------------------
0000.0000.0003.00-00  0x00000009   0x3ad4        1189          100     0/0/0   
0000.0000.0004.00-00* 0x0000000a   0x0749        966           84      0/0/0   
0000.0000.0004.01-00* 0x00000004   0xe898        510           55      0/0/0   
Total LSP(s): 3
    *(In TLV)-Leaking Route, *(By LSPID)-Self LSP, +-Self LSP(Extended),
           ATT-Attached, P-Partition, OL-Overload
[~DeviceD]

显示各路由器的IS-IS路由信息。Level-1设备的路由表中应该有一条缺省路由,且下一跳为Level-1-2设备,Level-2设备应该有所有Level-1和Level-2的路由。

[~DeviceA]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    Eth1/0/0          10.1.1.1        A/-/-/-
10.1.1.0/24        10         NULL    Eth1/0/0          Direct          D/-/L/-
10.1.2.0/24        20         NULL    Eth1/0/0          10.1.1.1        A/-/-/-
192.168.0.0/24     20         NULL    Eth1/0/0          10.1.1.1        A/-/-/-
     Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, 
            U-Up/Down Bit Set, LP-Local Prefix-Sid
[~DeviceA]
[~DeviceC] display isis route
                         Route information for ISIS(1)
                         -----------------------------
                        ISIS(1) Level-1 Forwarding Table
                        --------------------------------
IPV4 Destination   IntCost    ExtCost ExitInterface     NextHop         Flags
-------------------------------------------------------------------------------
10.1.1.0/24        10         NULL    Eth1/0/0          Direct          D/-/L/-
10.1.2.0/24        10         NULL    Eth1/0/2          Direct          D/-/L/-
192.168.0.0/24     10         NULL    Eth1/0/1          Direct          D/-/L/-
     Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, 
            U-Up/Down Bit Set, LP-Local Prefix-Sid
                        ISIS(1) Level-2 Forwarding Table
                        --------------------------------
IPV4 Destination   IntCost    ExtCost ExitInterface     NextHop         Flags
-------------------------------------------------------------------------------
10.1.1.0/24        10         NULL    Eth1/0/0          Direct          D/-/L/-
10.1.2.0/24        10         NULL    Eth1/0/2          Direct          D/-/L/-
172.16.0.0/16      20         NULL    Eth1/0/1          192.168.0.2     A/-/-/-
192.168.0.0/24     10         NULL    Eth1/0/1          Direct          D/-/L/-
     Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, 
            U-Up/Down Bit Set, LP-Local Prefix-Sid
[~DeviceC]     
[~DeviceD]display isis route
                         Route information for ISIS(1)
                         -----------------------------
                        ISIS(1) Level-2 Forwarding Table
                        --------------------------------
IPV4 Destination   IntCost    ExtCost ExitInterface     NextHop         Flags
-------------------------------------------------------------------------------
10.1.1.0/24        20         NULL    Eth1/0/0          192.168.0.1     A/-/-/-
10.1.2.0/24        20         NULL    Eth1/0/0          192.168.0.1     A/-/-/-
172.16.0.0/16      10         NULL    Eth1/0/1          Direct          D/-/L/-
192.168.0.0/24     10         NULL    Eth1/0/0          Direct          D/-/L/-
     Flags: D-Direct, A-Added to URT, L-Advertised in LSPs, S-IGP Shortcut, 
            U-Up/Down Bit Set, LP-Local Prefix-Sid
[~DeviceD]

 

你可能感兴趣的:(实验笔记,华为,腾讯云,网络)