注入引入次有路由

在r4上做路由引入, Isis引入rip,rip引入isis,
如果不做策略,r5获取20.0.0.1/32路由路径如下:
[r5]tracert 20.0.0.1

1 3.3.3.1 60 ms 30 ms 20 ms

2 1.1.1.2 60 ms 30 ms 40 ms

3 2.2.2.2 50 ms 40 ms 30 ms

产生次优路径。为什么?
因为isis的路由优先级为15,而rip路由优先级为100,这样 r5 获得20.0.0.1 路由就会产生次有路由。
如何解决?
在r5上做策略,禁止接收在ISIS进程下的源目的地址为:20.0.0.1的路由即可,这样20.0.0.1就只能走rip路由协议。配置如下:
r3

isis 1
network-entity 10.0000.0000.0001.00

interface GigabitEthernet0/0/0
ip address 1.1.1.1 255.0.0.0
isis enable 1

interface GigabitEthernet0/0/1
ip address 3.3.3.1 255.0.0.0
isis enable 1

r4

isis 1
network-entity 10.0000.0000.0002.00
import-route rip 1

interface GigabitEthernet0/0/0
ip address 1.1.1.2 255.0.0.0
isis enable 1

interface GigabitEthernet0/0/1
ip address 2.2.2.1 255.0.0.0

rip 1
network 2.0.0.0
import-route isis 1

return

[r5] dis cu
[V200R003C00]

sysname r5

acl number 2000
rule 10 deny source 20.0.0.0 0.255.255.255
rule 100 permit

isis 1
network-entity 10.0000.0000.0003.00
filter-policy 2000 import

interface GigabitEthernet0/0/0
ip address 4.4.4.1 255.0.0.0

interface GigabitEthernet0/0/1
ip address 3.3.3.2 255.0.0.0
isis enable 1

rip 1
network 4.0.0.0

return

[r6]dis cu
[V200R003C00]

sysname r6

interface GigabitEthernet0/0/0
ip address 2.2.2.2 255.0.0.0

interface GigabitEthernet0/0/1
ip address 4.4.4.2 255.0.0.0

interface LoopBack0
ip address 20.0.0.1 255.255.255.255

rip 1
network 2.0.0.0
network 4.0.0.0
network 20.0.0.0

return

注入引入次有路由

isis基本配置:
r1

isis 1
network-entity 10.0000.0000.0001.00

interface GigabitEthernet0/0/0
ip address 1.1.1.1 255.0.0.0
isis enable 1

interface LoopBack0
ip address 10.0.0.1 255.255.255.255
isis enable 1

r2

isis 1
network-entity 20.0000.0000.0002.00

isis 1
network-entity 20.0000.0000.0002.00

interface LoopBack0
ip address 20.0.0.1 255.255.255.255
isis enable 1

相关文章: