H3C IS-IS基本配置实验

news2024/9/22 9:58:41

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进程1
 network-entity 49.0000.0000.0000.0001.00    //NET地址
#
interface GigabitEthernet0/0
 isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/1
 isis enable 1    //接口使能IS-IS并宣告此接口

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

R3配置IS-IS进程,NET地址,接口宣告IS-IS
#
isis 1    //isis进程1
 network-entity 49.0000.0000.0000.0003.00    //NET地址
#
interface GigabitEthernet0/0
 isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/1
 isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/2
 isis enable 1    //接口使能IS-IS并宣告此接口
R4配置IS-IS进程,NET地址,接口宣告IS-IS
#
isis 1    //isis进程1
 network-entity 49.0010.0000.0000.0004.00    //NET地址
#
interface LoopBack0
 isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/0
 isis enable 1    //接口使能IS-IS并宣告此接口
#
interface GigabitEthernet0/1
 isis 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/0
 isis cost 5
#
interface GigabitEthernet0/1
 isis cost 10
R2链路配置Cost值
#
interface GigabitEthernet0/0
 isis cost 5
#
interface GigabitEthernet0/1
 isis cost 50
R3链路配置Cost值
#
interface GigabitEthernet0/0
 isis cost 10
#
interface GigabitEthernet0/1
 isis cost 15
R4链路配置Cost值
#
interface GigabitEthernet0/0
 isis cost 50
#
interface GigabitEthernet0/1
 isis 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 peer

                         Peer information for IS-IS(1)
                         -----------------------------

 System ID: 0000.0000.0002
 Interface: GE0/0                   Circuit Id:  0000.0000.0002.01
 State: Up     HoldTime: 9s         Type: L1(L1L2)     PRI: 64    //R1与R2建立了L1邻接关系,R2是L1/2路由器

 System ID: 0000.0000.0003
 Interface: GE0/1                   Circuit Id:  0000.0000.0003.01
 State: Up     HoldTime: 9s         Type: L1(L1L2)     PRI: 64    //R1与R3建立了L1邻接关系,R2是L1/2路由器
R2
[R2]display isis peer

                         Peer information for IS-IS(1)
                         -----------------------------

 System ID: 0000.0000.0001
 Interface: GE0/0                   Circuit Id:  0000.0000.0002.01
 State: Up     HoldTime: 26s        Type: L1           PRI: 64    //R2与R1建立了L1邻接关系,R1是L1路由器
R3
[R3]display isis peer

                         Peer information for IS-IS(1)
                         -----------------------------

 System ID: 0000.0000.0001
 Interface: GE0/0                   Circuit Id:  0000.0000.0003.01
 State: Up     HoldTime: 23s        Type: L1           PRI: 64    //R3与R1建立了L1邻接关系,R1是L1路由器
查看R2 和 R3 只建立的邻接关系
R2
[R2]display isis peer

                         Peer information for IS-IS(1)
                         -----------------------------

 System ID: 0000.0000.0003
 Interface: GE0/2                   Circuit Id:  0000.0000.0003.03
 State: Up     HoldTime: 7s         Type: L1           PRI: 64    //R2与R3建立了L1邻接关系,对端也是L1
R3
[R3]display isis peer

                         Peer information for IS-IS(1)
                         -----------------------------

 System ID: 0000.0000.0002
 Interface: GE0/2                   Circuit Id:  0000.0000.0003.03
 State: 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 peer

                         Peer information for IS-IS(1)
                         -----------------------------

 System ID: 0000.0000.0003
 Interface: GE0/2                   Circuit Id:  ---
 State: Up     HoldTime: 9s         Type: L1           PRI: 64    //R2与R3建立了L1邻接关系,对端是L1
[R3]display isis peer

                         Peer information for IS-IS(1)
                         -----------------------------

 System ID: 0000.0000.0002
 Interface: GE0/2                   Circuit Id:  0000.0000.0003.03
 State: Up     HoldTime: 30s        Type: L1(L1L2)     PRI: 64    //R3与R2建立了L1邻接关系,对端是L1/2

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

修改Cost值前各设备的路由
R1修改Cost值前路由表
[R1]dis  ip routing-table

Destinations : 17       Routes : 19

Destination/Mask   Proto   Pre Cost        NextHop         Interface
0.0.0.0/0          IS_L1   15  10          192.168.1.2     GE0/0
                   IS_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/0
                   IS_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-table

Destinations : 19       Routes : 20

Destination/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/0
                   IS_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-table

Destinations : 19       Routes : 20

Destination/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/0
                   IS_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-table

Destinations : 19       Routes : 20

Destination/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/0
                   IS_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-table

Destinations : 17       Routes : 17

Destination/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-table

Destinations : 19       Routes : 19

Destination/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-table

Destinations : 19       Routes : 20

Destination/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/0
                   IS_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-table

Destinations : 19       Routes : 19

Destination/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-table

Destinations : 18       Routes : 18

Destination/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-table

Destinations : 19       Routes : 19

Destination/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-table

Destinations : 19       Routes : 20

Destination/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/0
                   IS_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-table

Destinations : 19       Routes : 19

Destination/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.coloradmin.cn/o/1484291.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

【Word如何在表格和标题中间插入一行】

目的:主要是为了满足文件设计需求,标题前面要空出一行 操作步骤: 1、将鼠标光标停在标题行的最前方,点击回车,就会在表格和标题中间插入一行空白标题行。 2、因为空白标题行会影响目录的生成,所以将空白行…

算法修炼-动态规划之路径问题(1)

62. 不同路径 - 力扣(LeetCode) 思路:选定一个网格为终点,走到这个网格的所有走法就是这个网格的上面一个网格的所有走法加上这个网格左边一个网格的所有走法,然后做好初始化工作就行。 class Solution { public:int…

《热辣滚烫》:用坚持不懈开启逆境中的职场出路

"你只活一次,所以被嘲笑也没有关系,想哭也没有关系,失败更没有关系。" “人生就像一场拳击赛,你站不起来,就永远不知道自己有多强” “命运只负责洗牌,出牌的永远是自己。” 在今年的贺岁档电影市…

JavaScript-关于事件、事件流(捕获、冒泡)、事件源、常用事件

1.如何注册事件(如何绑定事件) ​ 何为注册事件,就是给元素添加事件,其方式有传统注册事件、方法监听注册事件。 0、1级事件(传统注册事件)不允许多个响应程序 我们在元素内或js内使用on的方式就是传统注册事件,这种形…

【机器学习】包裹式特征选择之递归特征消除法

🎈个人主页:豌豆射手^ 🎉欢迎 👍点赞✍评论⭐收藏 🤗收录专栏:机器学习 🤝希望本文对您有所裨益,如有不足之处,欢迎在评论区提出指正,让我们共同学习、交流进…

Spring Cloud Gateway-系统保护Sentinel集成

文章目录 Sentinel介绍Spring Cloud Gateway集成Sentinelpom依赖Sentinel配置Sentinel集成Nacos作为数据源自定义降级响应 Sentinel介绍 ​ 随着微服务的流行,服务和服务之间的稳定性变得越来越重要。Sentinel 是面向分布式、多语言异构化服务架构的流量治理组件&a…

官宣 | 凯琦供应链成为亚马逊SPN物流服务商!

再播一条喜讯!在亚马逊官方平台的筛选考核下,凯琦供应链近日正式入驻亚马逊SPN服务商平台,成为亚马逊SPN第三方承运商。 这也标志着凯琦9年来在FBA物流领域的服务质量得到了客户、官方及行业的广泛认可,未来凯琦将继续为亚马逊卖家…

【简略知识】项目开发中,VO,BO,PO,DO,DTO究竟是何方妖怪?

前言 在项目开发中,是否需要定义VO(视图对象),BO(业务对象),PO(持久化对象),DO(领域对象),DTO(数据传输对象&…

Plyer:一款简单、轻便、可访问和可定制的HTML5、YouTube和Vimeo媒体播放器,支持现代浏览器。

Plyer:一款简单、轻便、可访问和可定制的HTML5、YouTube和Vimeo媒体播放器,支持现代浏览器。 摘要: 随着网络视频内容的爆炸式增长,媒体播放器在网页开发中的作用日益凸显。Plyer作为一款轻便、可访问、可定制的HTML5、YouTube和V…

Qt 简约美观的加载动画 文本风格 第八季

今天和大家分享一个文本风格的加载动画, 有两类,其中一个可以设置文本内容和文本颜色,演示了两份. 共三个动画, 效果如下: 一共三个文件,可以直接编译 , 如果对您有所帮助的话 , 不要忘了点赞呢. //main.cpp #include "LoadingAnimWidget.h" #include <QApplic…

扼杀网络中的环路:STP、RSTP、MSTP

目录 前言&#xff1a; 一、STP&#xff08;Spanning Tree Protocol&#xff09; 1.1 STP功能 1.2 STP应用 二、RSTP&#xff08;Rapid Spanning Tree Protocol&#xff09; 2.1 RSTP功能 2.2 RSTP应用 三、MSTP&#xff08;Multiple Spanning Tree Protocol&#xff0…

Filebeat将csv导入es尝试

一、安装 在docker中安装部署ELKfilebeat 二、主要配置 - type: log # Change to true to enable this input configuration. enabled: true # Paths that should be crawled and fetched. Glob based paths. paths: - /home/centos/pip_v2.csv #源路径 #…

了解Spring中Bean:配置与作用域

作为一名对技术充满热情的学习者&#xff0c;我一直以来都深刻地体会到知识的广度和深度。在这个不断演变的数字时代&#xff0c;我远非专家&#xff0c;而是一位不断追求进步的旅行者。通过这篇博客&#xff0c;我想分享我在某个领域的学习经验&#xff0c;与大家共同探讨、共…

几种常见的自动化测试框架

&#x1f345; 视频学习&#xff1a;文末有免费的配套视频可观看 &#x1f345; 点击文末小卡片&#xff0c;免费获取软件测试全套资料&#xff0c;资料在手&#xff0c;涨薪更快 在软件测试领域&#xff0c;自动化测试框架有很多&#xff0c;这里主要介绍几种常用的自动化测试…

程序员必备开发工具

Chat GPT的升级节奏让人们越来越惊讶的同时,也让大家感觉到了压力,在如此快节奏的互联网世界中,开发人员需要不断学习与更新知识,保持领先地位并高效地交付高质量软件。 无论是集成开发环境 (IDE)、版本控制系统、测试工具、协作平台还是文档工具,学习并掌握这些流行的顶…

嵌入式学习31-指针和函数知识回顾

1.指针&#xff1a; 1.提供一种间接访问数据的方法 2.空间没有名字,只有一个地址编号 2.指针: 1.地址:区分不同内存空间的编号 2.指针:指针就是地址,地址就是指针 3.指针变量:存放指针的变量称为指针变量,简称为指针 3.指针的定义: int *p NULL; …

mysql order by布尔盲注

什么是order by 在MySQL支持使用ORDER BY语句对查询结果集进行排序处理&#xff0c;使用ORDER BY语句不仅支持对单列数据的排序&#xff0c;还支持对数据表中多列数据的排序。语法格式如下 select * from 表名 order by 列名(或者数字) asc&#xff1b;升序(默认升序) selec…

Spark(1)-wordCount入门

1. 创建Maven项目 <?xml version"1.0" encoding"UTF-8"?> <project xmlns"http://maven.apache.org/POM/4.0.0"xmlns:xsi"http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLocation"http://maven.apache.org/P…

【DDD】学习笔记-实体和值对象:从领域模型的基础单元看系统设计

今天我们来学习 DDD 战术设计中的两个重要概念&#xff1a;实体和值对象。 这两个概念都是领域模型中的领域对象。它们在领域模型中起什么作用&#xff0c;战术设计时如何将它们映射到代码和数据模型中去&#xff1f;就是我们这一讲重点要关注的问题。 另外&#xff0c;在战略…

每日五道java面试题之mysql数据库篇(二)

目录&#xff1a; 第一题. 什么是索引&#xff1f;第二题. 索引有哪些优缺点&#xff1f;第三题. 创建索引的原则第四题. 创建索引时需要注意什么&#xff1f;第五题. 使用索引查询一定能提高查询的性能吗&#xff1f;为什么&#xff1f; 第一题. 什么是索引&#xff1f; 索引…