H3C IS-IS基本配置实验

H3C IS-IS基本配置实验

实验拓扑

image

实验需求

  1. 按照图示配置IP地址
  2. 按照图示分区域配置 IS-IS,完成全网互通,NET 地址如图所示
  3. 要求 R1 和 R2/R3 只建立 Level-1 邻接关系
  4. 要求 R2 和 R3 只建立 Level-1 邻接关系
  5. 按照图示修改各链路 Cost
  6. 在 R2 和 R3 上配置路由渗透,使 R1 学习到 100.1.1.0、24​ 网段的明细路由,并选择最优路径
  7. 在骨干网上配置接口验证

实验步骤

设备IP地址配置

R1接口IP
[R1]display ip interface brief
*down: administratively down
(s): spoofing  (l): loopback
Interface           Physical Protocol IP address/Mask    VPN instance Description
GE0/0               up       up       192.168.1.1/24     --           --
GE0/1               up       up       192.168.2.1/24     --           --
R2接口IP
[R2]display ip interface brief
*down: administratively down
(s): spoofing  (l): loopback
Interface           Physical Protocol IP address/Mask    VPN instance Description
GE0/0               up       up       192.168.1.2/24     --           --
GE0/1               up       up       192.168.3.2/24     --           --
GE0/2               up       up       192.168.5.2/24     --           --
R3接口IP
[R3]display ip interface brief
*down: administratively down
(s): spoofing  (l): loopback
Interface           Physical Protocol IP address/Mask    VPN instance Description
GE0/0               up       up       192.168.2.3/24     --           --
GE0/1               up       up       192.168.4.3/24     --           --
GE0/2               up       up       192.168.5.3/24     --           --
R4接口IP
[R4]display ip interface brief
*down: administratively down
(s): spoofing  (l): loopback
Interface           Physical Protocol IP address/Mask    VPN instance Description
GE0/0               up       up       192.168.3.4/24     --           --
GE0/1               up       up       192.168.4.4/24     --           --
Loop0               up       up(s)    100.1.1.4/24       --           --

配置IS-IS

NET地址解析,例:49.0000.0000.0000.0001.00​,其中49​表示私有地址,前0000​表示所在区域,后0000.0000.0001​表示系统ID唯一标识一台设备,00​表示IS-IS工作中IP网中

R1配置IS-IS进程,NET地址,接口宣告IS-IS
#
isis 1    //isis进程1network-entity 49.0000.0000.0000.0001.00    //NET地址
#
interface GigabitEthernet0/0isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/1isis enable 1    //接口使能IS-IS并宣告此接口
R2配置IS-IS进程,NET地址,接口宣告IS-IS
#
isis 1    //isis进程1network-entity 49.0000.0000.0000.0002.00    //NET地址
#
interface GigabitEthernet0/0isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/1isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/2isis enable 1    //接口使能IS-IS并宣告此接口
R3配置IS-IS进程,NET地址,接口宣告IS-IS
#
isis 1    //isis进程1network-entity 49.0000.0000.0000.0003.00    //NET地址
#
interface GigabitEthernet0/0isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/1isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/2isis enable 1    //接口使能IS-IS并宣告此接口
R4配置IS-IS进程,NET地址,接口宣告IS-IS
#
isis 1    //isis进程1network-entity 49.0010.0000.0000.0004.00    //NET地址
#
interface LoopBack0isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/0isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/1isis enable 1    //接口使能IS-IS并宣告此接口

依据需求配置邻居关系

IS-IS默认路由器角色为L1/2,在同区域内L1与L1建立L1邻接关系;L1/2与L1/2建立L1邻接关系,同时也建立L2邻接关系;L1与L1/2建立L1邻接关系;不同区域内L1/2与L1/2建立L2邻接关系。

需求要求 R1 和 R2/R3 只建立 Level-1 邻接关系,R1作为区域内普通路由器,未与其他相连,可直接将R1设置为L1路由器

需求要求 R2 和 R3 只建立 Level-1 邻接关系,R2和R3同时连接着不同区域的路由器,不能直接设置整台设备为一个单一角色的路由器,可直接将R2和R3之间的链路设置为L1

设置R1为L1路由器
[R1-isis-1]is-level level-1
[R1-isis-1]%Mar  2 14:25:51:964 2024 R1 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0002 (GigabitEthernet0/0), state changed to DOWN.
%Mar  2 14:25:51:964 2024 R1 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0002 (GigabitEthernet0/0), state changed to DOWN.
%Mar  2 14:25:51:964 2024 R1 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0003 (GigabitEthernet0/1), state changed to DOWN.
%Mar  2 14:25:51:964 2024 R1 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0003 (GigabitEthernet0/1), state changed to DOWN.
%Mar  2 14:25:51:994 2024 R1 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0003 (GigabitEthernet0/1), state changed to UP.
%Mar  2 14:25:51:998 2024 R1 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0002 (GigabitEthernet0/0), state changed to UP.
设置R2和R3之间的链路为L1
[R2-GigabitEthernet0/2]%Mar  2 14:28:11:591 2024 R2 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0003 (GigabitEthernet0/2), state changed to DOWN.
%Mar  2 14:28:11:591 2024 R2 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0003 (GigabitEthernet0/2), state changed to DOWN.
%Mar  2 14:28:11:632 2024 R2 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0003 (GigabitEthernet0/2), state changed to UP.[R3-GigabitEthernet0/2]isis circuit-level level-1
[R3-GigabitEthernet0/2]%Mar  2 14:29:05:743 2024 R3 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0002 (GigabitEthernet0/2), state changed to DOWN.
%Mar  2 14:29:07:098 2024 R3 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-1 adjacency 0000.0000.0002 (GigabitEthernet0/2), state changed to UP.

依据需求修改各链路Cost值

R1链路配置Cost值
#
interface GigabitEthernet0/0isis cost 5
#
interface GigabitEthernet0/1isis cost 10
R2链路配置Cost值
#
interface GigabitEthernet0/0isis cost 5
#
interface GigabitEthernet0/1isis cost 50
R3链路配置Cost值
#
interface GigabitEthernet0/0isis cost 10
#
interface GigabitEthernet0/1isis cost 15
R4链路配置Cost值
#
interface GigabitEthernet0/0isis cost 50
#
interface GigabitEthernet0/1isis cost 15

使 R1 学习到 100.1.1.0/24​ 网段的明细路由,并选择最优路径

[R2-isis-1-ipv4]import-route isis level-2 into level-1[R3-isis-1-ipv4]import-route isis level-2 into level-1

骨干网上配置接口验证

[R2-GigabitEthernet0/1]isis authentication-mode simple plain 123456    //设置接口认证后,因R4为设置接口认证,R2断开了与R4的邻居关系
[R2-GigabitEthernet0/1]%Mar  2 15:41:35:780 2024 R2 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0004 (GigabitEthernet0/1), state changed to DOWN.[R3-GigabitEthernet0/1]isis authentication-mode simple plain 123456    //设置接口认证后,因R4为设置接口认证,R3断开了与R4的邻居关系
[R3-GigabitEthernet0/1]%Mar  2 15:41:48:514 2024 R3 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0004 (GigabitEthernet0/1), state changed to DOWN.[R4-GigabitEthernet0/0]isis authentication-mode simple plain 123456    //设置接口认证后,与R2密码一致,R4与R3的邻居关系UP
[R4-GigabitEthernet0/0]%Mar  2 15:42:25:845 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0002 (GigabitEthernet0/0), state changed to UP.[R4-GigabitEthernet0/1]isis authentication-mode simple plain 123456    //设置接口认证后,与R3密码一致,R4与R3的邻居关系UP
[R4-GigabitEthernet0/1]%Mar  2 15:42:51:454 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0003 (GigabitEthernet0/1), state changed to UP.

实验验证

邻居关系是否满足实验需求

需求要求 R1 和 R2/R3 只建立 Level-1 邻接关系;要求 R2 和 R3 只建立 Level-1 邻接关系

查看R1和 R2/R3 建立的邻接关系
R1
[R1]display isis peerPeer information for IS-IS(1)-----------------------------System ID: 0000.0000.0002Interface: GE0/0                   Circuit Id:  0000.0000.0002.01State: Up     HoldTime: 9s         Type: L1(L1L2)     PRI: 64    //R1与R2建立了L1邻接关系,R2是L1/2路由器System ID: 0000.0000.0003Interface: GE0/1                   Circuit Id:  0000.0000.0003.01State: Up     HoldTime: 9s         Type: L1(L1L2)     PRI: 64    //R1与R3建立了L1邻接关系,R2是L1/2路由器
R2
[R2]display isis peerPeer information for IS-IS(1)-----------------------------System ID: 0000.0000.0001Interface: GE0/0                   Circuit Id:  0000.0000.0002.01State: Up     HoldTime: 26s        Type: L1           PRI: 64    //R2与R1建立了L1邻接关系,R1是L1路由器
R3
[R3]display isis peerPeer information for IS-IS(1)-----------------------------System ID: 0000.0000.0001Interface: GE0/0                   Circuit Id:  0000.0000.0003.01State: Up     HoldTime: 23s        Type: L1           PRI: 64    //R3与R1建立了L1邻接关系,R1是L1路由器
查看R2 和 R3 只建立的邻接关系
R2
[R2]display isis peerPeer information for IS-IS(1)-----------------------------System ID: 0000.0000.0003Interface: GE0/2                   Circuit Id:  0000.0000.0003.03State: Up     HoldTime: 7s         Type: L1           PRI: 64    //R2与R3建立了L1邻接关系,对端也是L1
R3
[R3]display isis peerPeer information for IS-IS(1)-----------------------------System ID: 0000.0000.0002Interface: GE0/2                   Circuit Id:  0000.0000.0003.03State: Up     HoldTime: 29s        Type: L1           PRI: 64    //R3与R2建立了L1邻接关系,对端也是L1
扩展知识

在同区域内,L1与L1/2建立L1邻接关系,若仅修改单边接口为L1也可使R2和R3之间建立的是L1邻接关系

[R2-GigabitEthernet0/2]undo isis circuit-level    //将之前配置的L1恢复成默认的L1/2

查询R2、R3邻居状态

[R2]display isis peerPeer information for IS-IS(1)-----------------------------System ID: 0000.0000.0003Interface: GE0/2                   Circuit Id:  ---State: Up     HoldTime: 9s         Type: L1           PRI: 64    //R2与R3建立了L1邻接关系,对端是L1
[R3]display isis peerPeer information for IS-IS(1)-----------------------------System ID: 0000.0000.0002Interface: GE0/2                   Circuit Id:  0000.0000.0003.03State: Up     HoldTime: 30s        Type: L1(L1L2)     PRI: 64    //R3与R2建立了L1邻接关系,对端是L1/2

Cost值修改前后各设备路由表对比

修改Cost值前各设备的路由
R1修改Cost值前路由表
[R1]dis  ip routing-tableDestinations : 17       Routes : 19Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/0          IS_L1   15  10          192.168.1.2     GE0/0IS_L1   15  10          192.168.2.3     GE0/1
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     Direct  0   0           192.168.1.1     GE0/0
192.168.1.1/32     Direct  0   0           127.0.0.1       InLoop0
192.168.1.255/32   Direct  0   0           192.168.1.1     GE0/0
192.168.2.0/24     Direct  0   0           192.168.2.1     GE0/1
192.168.2.1/32     Direct  0   0           127.0.0.1       InLoop0
192.168.2.255/32   Direct  0   0           192.168.2.1     GE0/1
192.168.3.0/24     IS_L1   15  20          192.168.1.2     GE0/0
192.168.4.0/24     IS_L1   15  20          192.168.2.3     GE0/1
192.168.5.0/24     IS_L1   15  20          192.168.1.2     GE0/0IS_L1   15  20          192.168.2.3     GE0/1
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R2修改Cost值前路由表
[R2]display ip routing-tableDestinations : 19       Routes : 20Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       IS_L2   15  10          192.168.3.4     GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     Direct  0   0           192.168.1.2     GE0/0
192.168.1.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.1.255/32   Direct  0   0           192.168.1.2     GE0/0
192.168.2.0/24     IS_L1   15  20          192.168.1.1     GE0/0IS_L1   15  20          192.168.5.3     GE0/2
192.168.3.0/24     Direct  0   0           192.168.3.2     GE0/1
192.168.3.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.3.255/32   Direct  0   0           192.168.3.2     GE0/1
192.168.4.0/24     IS_L1   15  20          192.168.5.3     GE0/2
192.168.5.0/24     Direct  0   0           192.168.5.2     GE0/2
192.168.5.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.5.255/32   Direct  0   0           192.168.5.2     GE0/2
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
R3修改Cost值前路由表
[R3]display ip routing-tableDestinations : 19       Routes : 20Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       IS_L2   15  10          192.168.4.4     GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     IS_L1   15  20          192.168.2.1     GE0/0IS_L1   15  20          192.168.5.2     GE0/2
192.168.2.0/24     Direct  0   0           192.168.2.3     GE0/0
192.168.2.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.2.255/32   Direct  0   0           192.168.2.3     GE0/0
192.168.3.0/24     IS_L1   15  20          192.168.5.2     GE0/2
192.168.4.0/24     Direct  0   0           192.168.4.3     GE0/1
192.168.4.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.4.255/32   Direct  0   0           192.168.4.3     GE0/1
192.168.5.0/24     Direct  0   0           192.168.5.3     GE0/2
192.168.5.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.5.255/32   Direct  0   0           192.168.5.3     GE0/2
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R4修改Cost值前路由表
[R4]display ip routing-tableDestinations : 19       Routes : 20Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       Direct  0   0           100.1.1.4       Loop0
100.1.1.4/32       Direct  0   0           127.0.0.1       InLoop0
100.1.1.255/32     Direct  0   0           100.1.1.4       Loop0
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     IS_L2   15  20          192.168.3.2     GE0/0
192.168.2.0/24     IS_L2   15  20          192.168.4.3     GE0/1
192.168.3.0/24     Direct  0   0           192.168.3.4     GE0/0
192.168.3.4/32     Direct  0   0           127.0.0.1       InLoop0
192.168.3.255/32   Direct  0   0           192.168.3.4     GE0/0
192.168.4.0/24     Direct  0   0           192.168.4.4     GE0/1
192.168.4.4/32     Direct  0   0           127.0.0.1       InLoop0
192.168.4.255/32   Direct  0   0           192.168.4.4     GE0/1
192.168.5.0/24     IS_L2   15  20          192.168.3.2     GE0/0IS_L2   15  20          192.168.4.3     GE0/1
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
修改Cost值后各设备的路由
R1修改Cost值后路由表
[R1]display ip routing-tableDestinations : 17       Routes : 17Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/0          IS_L1   15  5           192.168.1.2     GE0/0
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     Direct  0   0           192.168.1.1     GE0/0
192.168.1.1/32     Direct  0   0           127.0.0.1       InLoop0
192.168.1.255/32   Direct  0   0           192.168.1.1     GE0/0
192.168.2.0/24     Direct  0   0           192.168.2.1     GE0/1
192.168.2.1/32     Direct  0   0           127.0.0.1       InLoop0
192.168.2.255/32   Direct  0   0           192.168.2.1     GE0/1
192.168.3.0/24     IS_L1   15  55          192.168.1.2     GE0/0
192.168.4.0/24     IS_L1   15  25          192.168.2.3     GE0/1
192.168.5.0/24     IS_L1   15  15          192.168.1.2     GE0/0
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R2修改Cost值后路由表
[R2]display ip routing-tableDestinations : 19       Routes : 19Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       IS_L2   15  50          192.168.3.4     GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     Direct  0   0           192.168.1.2     GE0/0
192.168.1.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.1.255/32   Direct  0   0           192.168.1.2     GE0/0
192.168.2.0/24     IS_L1   15  15          192.168.1.1     GE0/0
192.168.3.0/24     Direct  0   0           192.168.3.2     GE0/1
192.168.3.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.3.255/32   Direct  0   0           192.168.3.2     GE0/1
192.168.4.0/24     IS_L1   15  25          192.168.5.3     GE0/2
192.168.5.0/24     Direct  0   0           192.168.5.2     GE0/2
192.168.5.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.5.255/32   Direct  0   0           192.168.5.2     GE0/2
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R3修改Cost值后路由表
[R3]display ip routing-tableDestinations : 19       Routes : 20Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       IS_L2   15  15          192.168.4.4     GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     IS_L1   15  15          192.168.2.1     GE0/0IS_L1   15  15          192.168.5.2     GE0/2
192.168.2.0/24     Direct  0   0           192.168.2.3     GE0/0
192.168.2.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.2.255/32   Direct  0   0           192.168.2.3     GE0/0
192.168.3.0/24     IS_L1   15  60          192.168.5.2     GE0/2
192.168.4.0/24     Direct  0   0           192.168.4.3     GE0/1
192.168.4.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.4.255/32   Direct  0   0           192.168.4.3     GE0/1
192.168.5.0/24     Direct  0   0           192.168.5.3     GE0/2
192.168.5.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.5.255/32   Direct  0   0           192.168.5.3     GE0/2
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R4修改Cost值后路由表
[R4]display ip routing-tableDestinations : 19       Routes : 19Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       Direct  0   0           100.1.1.4       Loop0
100.1.1.4/32       Direct  0   0           127.0.0.1       InLoop0
100.1.1.255/32     Direct  0   0           100.1.1.4       Loop0
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     IS_L2   15  30          192.168.4.3     GE0/1
192.168.2.0/24     IS_L2   15  25          192.168.4.3     GE0/1
192.168.3.0/24     Direct  0   0           192.168.3.4     GE0/0
192.168.3.4/32     Direct  0   0           127.0.0.1       InLoop0
192.168.3.255/32   Direct  0   0           192.168.3.4     GE0/0
192.168.4.0/24     Direct  0   0           192.168.4.4     GE0/1
192.168.4.4/32     Direct  0   0           127.0.0.1       InLoop0
192.168.4.255/32   Direct  0   0           192.168.4.4     GE0/1
192.168.5.0/24     IS_L2   15  25          192.168.4.3     GE0/1
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

在 R2 和 R3 上配置路由渗透,使 R1 学习到 100.1.1.0、24​ 网段的明细路由,是否是本拓扑的最优路径

R1路由表
[R1]dis ip routing-tableDestinations : 18       Routes : 18Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/0          IS_L1   15  5           192.168.1.2     GE0/0
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       IS_L1   15  25          192.168.2.3     GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     Direct  0   0           192.168.1.1     GE0/0
192.168.1.1/32     Direct  0   0           127.0.0.1       InLoop0
192.168.1.255/32   Direct  0   0           192.168.1.1     GE0/0
192.168.2.0/24     Direct  0   0           192.168.2.1     GE0/1
192.168.2.1/32     Direct  0   0           127.0.0.1       InLoop0
192.168.2.255/32   Direct  0   0           192.168.2.1     GE0/1
192.168.3.0/24     IS_L1   15  55          192.168.1.2     GE0/0
192.168.4.0/24     IS_L1   15  25          192.168.2.3     GE0/1
192.168.5.0/24     IS_L1   15  15          192.168.1.2     GE0/0
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R2路由表
[R2]dis ip routing-tableDestinations : 19       Routes : 19Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       IS_L2   15  50          192.168.3.4     GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     Direct  0   0           192.168.1.2     GE0/0
192.168.1.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.1.255/32   Direct  0   0           192.168.1.2     GE0/0
192.168.2.0/24     IS_L1   15  15          192.168.1.1     GE0/0
192.168.3.0/24     Direct  0   0           192.168.3.2     GE0/1
192.168.3.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.3.255/32   Direct  0   0           192.168.3.2     GE0/1
192.168.4.0/24     IS_L1   15  25          192.168.5.3     GE0/2
192.168.5.0/24     Direct  0   0           192.168.5.2     GE0/2
192.168.5.2/32     Direct  0   0           127.0.0.1       InLoop0
192.168.5.255/32   Direct  0   0           192.168.5.2     GE0/2
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R3路由表
[R3]dis ip routing-tableDestinations : 19       Routes : 20Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       IS_L2   15  15          192.168.4.4     GE0/1
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     IS_L1   15  15          192.168.2.1     GE0/0IS_L1   15  15          192.168.5.2     GE0/2
192.168.2.0/24     Direct  0   0           192.168.2.3     GE0/0
192.168.2.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.2.255/32   Direct  0   0           192.168.2.3     GE0/0
192.168.3.0/24     IS_L1   15  60          192.168.5.2     GE0/2
192.168.4.0/24     Direct  0   0           192.168.4.3     GE0/1
192.168.4.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.4.255/32   Direct  0   0           192.168.4.3     GE0/1
192.168.5.0/24     Direct  0   0           192.168.5.3     GE0/2
192.168.5.3/32     Direct  0   0           127.0.0.1       InLoop0
192.168.5.255/32   Direct  0   0           192.168.5.3     GE0/2
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
R4路由表
[R4]display ip routing-tableDestinations : 19       Routes : 19Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/32         Direct  0   0           127.0.0.1       InLoop0
100.1.1.0/24       Direct  0   0           100.1.1.4       Loop0
100.1.1.4/32       Direct  0   0           127.0.0.1       InLoop0
100.1.1.255/32     Direct  0   0           100.1.1.4       Loop0
127.0.0.0/8        Direct  0   0           127.0.0.1       InLoop0
127.0.0.1/32       Direct  0   0           127.0.0.1       InLoop0
127.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0
192.168.1.0/24     IS_L2   15  30          192.168.4.3     GE0/1
192.168.2.0/24     IS_L2   15  25          192.168.4.3     GE0/1
192.168.3.0/24     Direct  0   0           192.168.3.4     GE0/0
192.168.3.4/32     Direct  0   0           127.0.0.1       InLoop0
192.168.3.255/32   Direct  0   0           192.168.3.4     GE0/0
192.168.4.0/24     Direct  0   0           192.168.4.4     GE0/1
192.168.4.4/32     Direct  0   0           127.0.0.1       InLoop0
192.168.4.255/32   Direct  0   0           192.168.4.4     GE0/1
192.168.5.0/24     IS_L2   15  25          192.168.4.3     GE0/1
224.0.0.0/4        Direct  0   0           0.0.0.0         NULL0
224.0.0.0/24       Direct  0   0           0.0.0.0         NULL0
255.255.255.255/32 Direct  0   0           127.0.0.1       InLoop0

骨干网上配置的接口验证是否生效

在配置过程中也能看到接口验证是生效的

[R2-GigabitEthernet0/1]isis authentication-mode simple plain 123456    //设置接口认证后,因R4为设置接口认证,R2断开了与R4的邻居关系
[R2-GigabitEthernet0/1]%Mar  2 15:41:35:780 2024 R2 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0004 (GigabitEthernet0/1), state changed to DOWN.[R3-GigabitEthernet0/1]isis authentication-mode simple plain 123456    //设置接口认证后,因R4为设置接口认证,R3断开了与R4的邻居关系
[R3-GigabitEthernet0/1]%Mar  2 15:41:48:514 2024 R3 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0004 (GigabitEthernet0/1), state changed to DOWN.[R4-GigabitEthernet0/0]isis authentication-mode simple plain 123456    //设置接口认证后,与R2密码一致,R4与R3的邻居关系UP
[R4-GigabitEthernet0/0]%Mar  2 15:42:25:845 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0002 (GigabitEthernet0/0), state changed to UP.[R4-GigabitEthernet0/1]isis authentication-mode simple plain 123456    //设置接口认证后,与R3密码一致,R4与R3的邻居关系UP
[R4-GigabitEthernet0/1]%Mar  2 15:42:51:454 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0003 (GigabitEthernet0/1), state changed to UP.

端口UP/Down后邻居关系依然建立

[R4]interface range GigabitEthernet 0/0 GigabitEthernet 0/1
[R4-if-range]shutdown
%Mar  2 17:00:40:170 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0002 (GigabitEthernet0/0), state changed to DOWN.
%Mar  2 17:00:40:171 2024 R4 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet0/0 changed to down.
%Mar  2 17:00:40:171 2024 R4 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/0 changed to down.
[R4-if-range]%Mar  2 17:00:40:201 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0003 (GigabitEthernet0/1), state changed to DOWN.
%Mar  2 17:00:40:201 2024 R4 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet0/1 changed to down.
%Mar  2 17:00:40:201 2024 R4 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/1 changed to down.[R4-if-range]undo shutdown
[R4-if-range]%Mar  2 17:10:25:612 2024 R4 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet0/0 changed to up.
%Mar  2 17:10:25:618 2024 R4 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/0 changed to up.
%Mar  2 17:10:25:618 2024 R4 IFNET/3/PHY_UPDOWN: Physical state on the interface GigabitEthernet0/1 changed to up.
%Mar  2 17:10:25:618 2024 R4 IFNET/5/LINK_UPDOWN: Line protocol state on the interface GigabitEthernet0/1 changed to up.
%Mar  2 17:10:25:634 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0003 (GigabitEthernet0/1), state changed to UP.
%Mar  2 17:10:26:620 2024 R4 ISIS/5/ISIS_NBR_CHG: IS-IS 1, Level-2 adjacency 0000.0000.0002 (GigabitEthernet0/0), state changed to UP.

实验附件

IS-IS基本配置实验.zip

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.hqwc.cn/news/505077.html

如若内容造成侵权/违法违规/事实不符,请联系编程知识网进行投诉反馈email:809451989@qq.com,一经查实,立即删除!

相关文章

mysql8.0安装(zip版本)最详细

下载 https://dev.mysql.com/downloads/mysql/ 解压 [mysqld] # 设置3306端口 port3306 # 设置mysql的安装目录 basedirD:\Atools\mysql-8.0.30-winx64 # 切记此处一定要用双斜杠\\,单斜杠我这里会出错,不过看别人的教程,有的是单斜杠。自己…

陶瓷工业5G智能制造工厂数字孪生可视化平台,推进行业数字化转型

陶瓷工业5G智能制造工厂数字孪生可视化平台,推进行业数字化转型。在陶瓷工业领域,5G智能制造工厂数字孪生可视化平台的应用正在改变着行业的传统生产模式,推动着数字化转型的进程。本文将围绕这一主题展开探讨,分析数字孪生可视化…

【数据结构】实现栈

大家好,我是苏貝,本篇博客带大家了解栈,如果你觉得我写的还不错的话,可以给我一个赞👍吗,感谢❤️ 目录 一 .栈的概念及结构二 .栈的实现栈的结构体初始化销毁栈顶插入栈顶删除显示栈顶元素是否为空栈的大…

基于YOLOv8/YOLOv7/YOLOv6/YOLOv5的行人车辆检测与计数(Python+PySide6界面+训练代码)

摘要:开发行人车辆检测与计数系统对于提升城市交通管理和监控系统的效率至关重要。本篇博客详细介绍了如何利用深度学习构建一个行人车辆检测与计数系统,并提供了完整的实现代码。该系统基于强大的YOLOv8算法,并结合了YOLOv7、YOLOv6、YOLOv5…

【硬件相关】IB网/以太网基础介绍及部署实践

文章目录 一、前言1、Infiniband网络1.1、网络类型1.2、网络拓扑1.3、硬件设备1.3.1、网卡1.3.2、连接线缆a、光模块b、线缆 1.3.4、交换机 2、Ethernet网络 二、部署实践(以太网)1、Intel E810-XXVDA21.1、网卡信息1.2、检查命令1.2、驱动编译 2、Mella…

重拾前端基础知识:JavaScript

重拾前端基础知识:JavaScript 前言使用JavaScript输出语法运算符条件语句循环数据类型字符串数字数组对象日期函数 数学正则表达式异常处理类集合模块JSON闭包异步调试DOM(文档对象模型)事件事件监听器表单 BOM(浏览器对象模型&am…

React之组件定义和事件处理

一、组件的分类 在react中,组件分为函数组件和class组件,也就是无状态组件和有状态组件。 * 更过时候我们应该区别使用无状态组件,因为如果有状态组件会触发生命周期所对应的一些函数 * 一旦触发他生命周期的函数,它就会影响当前项…

GraphPad Prism 10: 你的数据,我们的魔法 mac/win版

GraphPad Prism 10是GraphPad Software公司推出的一款功能强大的数据分析和可视化软件。它集数据整理、统计分析、图表制作和报告生成于一体,为科研工作者、学者和数据分析师提供了一个高效、便捷的工作平台。 GraphPad Prism 10软件获取 Prism 10拥有丰富的图表类…

vSphere资源管理

一 内存、CPU、资源池和vApp 内存部分: 关联VM内存 我们可以超额的关联内存给VM。例如:ESXI物理主机内存只有8G,但我们可以给三个VM都分配4G内存。 2.ESXI四大高级内存控制技术 a.Page sharing(透明的页面共享) 虚…

Socket网络编程(六)——简易聊天室案例

目录 聊天室数据传输设计客户端、服务器数据交互数据传输协议服务器、多客户端模型客户端如何发送消息到另外一个客户端2个以上设备如何交互数据? 聊天室消息接收实现代码结构client客户端重构server服务端重构自身描述信息的构建重构TCPServer.java基于synchronize…

JVM 第四部分—垃圾回收相关概念 2

System.gc() 在默认情况下,通过System.gc()或者Runtime.getRuntime().gc()的调用,会显式触发Full GC,同时对老年代和新生代进行回收,尝试释放被丢弃对象占用的内存 然而System.gc()调用附带一个免责声明,无法保证对垃…

LLC谐振变换器变频移相混合控制MATLAB仿真

微❤关注“电气仔推送”获得资料(专享优惠) 基本控制原理 为了实现变换器较小的电压增益,同时又有较 高的效率,文中在变频控制的基础上加入移相控制, 在这种控制策略下,变换器通过调节一次侧开关管 的开关…