双点双向路由引入(OSPF-ISIS)

实验拓扑

请添加图片描述

实验需求

1.1 建立OSPF邻居关系

OSPF进程号为1,RID为环回口地址(X.X.X.X)X为设备序列号

R1

ospf 1 router-id 1.1.1.1  # 创建OSPF进程1
 area 0.0.0.0 
  network 1.1.1.1 0.0.0.0 
  network 192.168.12.1 0.0.0.0 
  network 192.168.13.1 0.0.0.0 

R2

ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 2.2.2.2 0.0.0.0 
  network 192.168.12.2 0.0.0.0 
  network 192.168.24.2 0.0.0.0 

R3

ospf 1 router-id 3.3.3.3 
 area 0.0.0.0 
  network 3.3.3.3 0.0.0.0 
  network 192.168.13.3 0.0.0.0 

R4

ospf 1 router-id 4.4.4.4 
 area 0.0.0.0 
  network 4.4.4.4 0.0.0.0 
  network 192.168.24.4 0.0.0.0 

1.2 查看OSPF邻居表

[R1]dis ospf peer brief 

         OSPF Process 1 with Router ID 1.1.1.1
                  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             3.3.3.3          Full        
 0.0.0.0          Serial4/0/0                      2.2.2.2          Full        
 ----------------------------------------------------------------------------

2.1 IS-IS进程号为1 ,区域49.0001,所有路由器均为Level-2

R3

isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0003.00
 is-name R3

R4

isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0004.00
 is-name R4

R5

isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0005.00
 is-name R5

2.2 查看IS-IS邻居表

[R5]dis isis peer 

                          Peer information for ISIS(1)

  System Id     Interface          Circuit Id       State HoldTime Type     PRI
-------------------------------------------------------------------------------
R3              GE0/0/0            R5.01             Up   25s      L2       64 
R4              GE0/0/1            R5.02             Up   28s      L2       64 

Total Peer(s): 2

3.1 在R3、R4上将ospf引入IS-IS,确认R5可以收到OSPF区域环回口的明细路由

实验拓扑

![[路由引入拓扑图.png]]

实验需求

1.1 建立OSPF邻居关系

OSPF进程号为1,RID为环回口地址(X.X.X.X)X为设备序列号

R1

ospf 1 router-id 1.1.1.1  # 创建OSPF进程1
 area 0.0.0.0 
  network 1.1.1.1 0.0.0.0 
  network 192.168.12.1 0.0.0.0 
  network 192.168.13.1 0.0.0.0 

R2

ospf 1 router-id 2.2.2.2 
 area 0.0.0.0 
  network 2.2.2.2 0.0.0.0 
  network 192.168.12.2 0.0.0.0 
  network 192.168.24.2 0.0.0.0 

R3

ospf 1 router-id 3.3.3.3 
 area 0.0.0.0 
  network 3.3.3.3 0.0.0.0 
  network 192.168.13.3 0.0.0.0 

R4

ospf 1 router-id 4.4.4.4 
 area 0.0.0.0 
  network 4.4.4.4 0.0.0.0 
  network 192.168.24.4 0.0.0.0 

1.2 查看OSPF邻居表

[R1]dis ospf peer brief 

         OSPF Process 1 with Router ID 1.1.1.1
                  Peer Statistic Information
 ----------------------------------------------------------------------------
 Area Id          Interface                        Neighbor id      State    
 0.0.0.0          GigabitEthernet0/0/0             3.3.3.3          Full        
 0.0.0.0          Serial4/0/0                      2.2.2.2          Full        
 ----------------------------------------------------------------------------

2.1 IS-IS进程号为1 ,区域49.0001,所有路由器均为Level-2

R3

isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0003.00
 is-name R3

R4

isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0004.00
 is-name R4

R5

isis 1
 is-level level-2
 cost-style wide
 network-entity 49.0001.0000.0000.0005.00
 is-name R5

2.2 查看IS-IS邻居表

[R5]dis isis peer 

                          Peer information for ISIS(1)

  System Id     Interface          Circuit Id       State HoldTime Type     PRI
-------------------------------------------------------------------------------
R3              GE0/0/0            R5.01             Up   25s      L2       64 
R4              GE0/0/1            R5.02             Up   28s      L2       64 

Total Peer(s): 2

3.1 在R3、R4上将ospf引入IS-IS,确认R5可以收到OSPF区域环回口的明细路由

请添加图片描述

R3

 import-route ospf 1 

R4

 import-route ospf 1 

3.2 在R5上查看ISIS的路由信息。

[R5]dis ip routing-table protocol isis 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : ISIS
         Destinations : 7        Routes : 14       

ISIS routing table status : <Active>
         Destinations : 7        Routes : 14

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
        2.2.2.2/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
        3.3.3.3/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
        4.4.4.4/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
   192.168.12.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
   192.168.13.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
   192.168.24.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1

可以看出R5上的路由都有两个下一跳,即下一跳是R3或R4。

4.1 通过修改cost值确认R5选择R3作为最优的下一跳

在R4上,将OSFP路由引入到ISIS中。并且把引入路由的开销值修改成大于15。

 import-route ospf 1 cost 20 

4.2 查看R5的路由表信息

<R5>dis ip routing-table protocol isis 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : ISIS
         Destinations : 7        Routes : 7        

ISIS routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
        2.2.2.2/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
        3.3.3.3/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
        4.4.4.4/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
   192.168.12.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
   192.168.13.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
   192.168.24.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0

ISIS routing table status : <Inactive>
         Destinations : 0        Routes : 0

可以看出,路由的下一跳只有R3了。

5.1 在R3、R4上将IS-IS引入OSPF,确认R1、R2可以收到R5环回口路由

请添加图片描述

R3

import-route isis

R4

import-route isis

5.2 在R1上查看OSPF的路由信息

[R1]dis ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

OSPF routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        2.2.2.2/32  OSPF    10   48          D   192.168.12.2    Serial4/0/0
        3.3.3.3/32  OSPF    10   1           D   192.168.13.3    GigabitEthernet0/0/0
        4.4.4.4/32  OSPF    10   49          D   192.168.12.2    Serial4/0/0
        5.5.5.5/32  O_ASE   150  1           D   192.168.13.3    GigabitEthernet0/0/0
   192.168.24.0/24  OSPF    10   49          D   192.168.12.2    Serial4/0/0
   192.168.35.0/24  O_ASE   150  1           D   192.168.13.3    GigabitEthernet0/0/0
   192.168.45.0/24  O_ASE   150  1           D   192.168.13.3    GigabitEthernet0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

5.3 在R2上查看OSPF的路由信息

[R2]dis ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

OSPF routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   48          D   192.168.12.1    Serial4/0/0
        3.3.3.3/32  OSPF    10   49          D   192.168.12.1    Serial4/0/0
        4.4.4.4/32  OSPF    10   1           D   192.168.24.4    GigabitEthernet0/0/0
        5.5.5.5/32  O_ASE   150  1           D   192.168.24.4    GigabitEthernet0/0/0
   192.168.13.0/24  OSPF    10   49          D   192.168.12.1    Serial4/0/0
   192.168.35.0/24  O_ASE   150  1           D   192.168.24.4    GigabitEthernet0/0/0
   192.168.45.0/24  O_ASE   150  1           D   192.168.24.4    GigabitEthernet0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

6.1 由于R2与R4之间的链路质量不佳,网络管理员在引入路由时候手动干预,使得R2前往5.5.5.5走R1。

![[路由引入6-1.png]]

  1. 需要将R4引入进来的ISIS路由的开销增大,要大于R3引入进的ISIS路由开销值。
  2. R3引入进的路由到R2的开销为1。
  3. 所以需要将引入的开销值改为比1大。

R4

import-route isis cost 2

6.2 查看R2的路由表信息

[R2]dis ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

OSPF routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   48          D   192.168.12.1    Serial4/0/0
        3.3.3.3/32  OSPF    10   49          D   192.168.12.1    Serial4/0/0
        4.4.4.4/32  OSPF    10   1           D   192.168.24.4    GigabitEthernet0/0/0
        5.5.5.5/32  O_ASE   150  1           D   192.168.12.1    Serial4/0/0
   192.168.13.0/24  OSPF    10   49          D   192.168.12.1    Serial4/0/0
   192.168.35.0/24  O_ASE   150  1           D   192.168.12.1    Serial4/0/0
   192.168.45.0/24  O_ASE   150  1           D   192.168.12.1    Serial4/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

可以看出现在R2去往5.5.5.5的路由是走R1的。
R3

 import-route ospf 1 

R4

 import-route ospf 1 

3.2 在R5上查看ISIS的路由信息。

[R5]dis ip routing-table protocol isis 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : ISIS
         Destinations : 7        Routes : 14       

ISIS routing table status : <Active>
         Destinations : 7        Routes : 14

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
        2.2.2.2/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
        3.3.3.3/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
        4.4.4.4/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
   192.168.12.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
   192.168.13.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1
   192.168.24.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
                    ISIS-L2 15   10          D   192.168.45.4    GigabitEthernet0/0/1

可以看出R5上的路由都有两个下一跳,即下一跳是R3或R4。

4.1 通过修改cost值确认R5选择R3作为最优的下一跳

在R4上,将OSFP路由引入到ISIS中。并且把引入路由的开销值修改成大于15。

 import-route ospf 1 cost 20 

4.2 查看R5的路由表信息

<R5>dis ip routing-table protocol isis 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : ISIS
         Destinations : 7        Routes : 7        

ISIS routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
        2.2.2.2/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
        3.3.3.3/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
        4.4.4.4/32  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
   192.168.12.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
   192.168.13.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0
   192.168.24.0/24  ISIS-L2 15   10          D   192.168.35.3    GigabitEthernet0/0/0

ISIS routing table status : <Inactive>
         Destinations : 0        Routes : 0

可以看出,路由的下一跳只有R3了。

5.1 在R3、R4上将IS-IS引入OSPF,确认R1、R2可以收到R5环回口路由

![[路由引入5-1.png]]
R3

import-route isis

R4

import-route isis

5.2 在R1上查看OSPF的路由信息

[R1]dis ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

OSPF routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        2.2.2.2/32  OSPF    10   48          D   192.168.12.2    Serial4/0/0
        3.3.3.3/32  OSPF    10   1           D   192.168.13.3    GigabitEthernet0/0/0
        4.4.4.4/32  OSPF    10   49          D   192.168.12.2    Serial4/0/0
        5.5.5.5/32  O_ASE   150  1           D   192.168.13.3    GigabitEthernet0/0/0
   192.168.24.0/24  OSPF    10   49          D   192.168.12.2    Serial4/0/0
   192.168.35.0/24  O_ASE   150  1           D   192.168.13.3    GigabitEthernet0/0/0
   192.168.45.0/24  O_ASE   150  1           D   192.168.13.3    GigabitEthernet0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

5.3 在R2上查看OSPF的路由信息

[R2]dis ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

OSPF routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   48          D   192.168.12.1    Serial4/0/0
        3.3.3.3/32  OSPF    10   49          D   192.168.12.1    Serial4/0/0
        4.4.4.4/32  OSPF    10   1           D   192.168.24.4    GigabitEthernet0/0/0
        5.5.5.5/32  O_ASE   150  1           D   192.168.24.4    GigabitEthernet0/0/0
   192.168.13.0/24  OSPF    10   49          D   192.168.12.1    Serial4/0/0
   192.168.35.0/24  O_ASE   150  1           D   192.168.24.4    GigabitEthernet0/0/0
   192.168.45.0/24  O_ASE   150  1           D   192.168.24.4    GigabitEthernet0/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

6.1 由于R2与R4之间的链路质量不佳,网络管理员在引入路由时候手动干预,使得R2前往5.5.5.5走R1。

请添加图片描述

  1. 需要将R4引入进来的ISIS路由的开销增大,要大于R3引入进的ISIS路由开销值。
  2. R3引入进的路由到R2的开销为1。
  3. 所以需要将引入的开销值改为比1大。

R4

import-route isis cost 2

6.2 查看R2的路由表信息

[R2]dis ip routing-table protocol ospf 
Route Flags: R - relay, D - download to fib
------------------------------------------------------------------------------
Public routing table : OSPF
         Destinations : 7        Routes : 7        

OSPF routing table status : <Active>
         Destinations : 7        Routes : 7

Destination/Mask    Proto   Pre  Cost      Flags NextHop         Interface

        1.1.1.1/32  OSPF    10   48          D   192.168.12.1    Serial4/0/0
        3.3.3.3/32  OSPF    10   49          D   192.168.12.1    Serial4/0/0
        4.4.4.4/32  OSPF    10   1           D   192.168.24.4    GigabitEthernet0/0/0
        5.5.5.5/32  O_ASE   150  1           D   192.168.12.1    Serial4/0/0
   192.168.13.0/24  OSPF    10   49          D   192.168.12.1    Serial4/0/0
   192.168.35.0/24  O_ASE   150  1           D   192.168.12.1    Serial4/0/0
   192.168.45.0/24  O_ASE   150  1           D   192.168.12.1    Serial4/0/0

OSPF routing table status : <Inactive>
         Destinations : 0        Routes : 0

可以看出现在R2去往5.5.5.5的路由是走R1的。

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值