默认情况下,level-1区域路由会传递给level-2区域,但是level-2区域路由不会传递给level-1区域。
Level-2区域配置外部路由,并引入ISIS
Level-1/2上把外部路由泄露给level-1区域
实验拓扑图:
实验基础配置:
r1:
sys
sysname r1
undo info enable
int g0/0/0
ip add 12.1.1.1 16
quit
int g0/0/1
ip add 13.1.1.1 16
quit
int loopb 0
ip add 1.1.1.1 32
quit
isis
network-entity 49.0123.0000.0000.0001.00
is-level level-1
cost-style wide
quit
int g0/0/0
isis enable
quit
int g0/0/1
isis enable
quit
int loopb 0
isis enable
quit
r2:
sys
sysname r2
undo info enable
int g0/0/0
ip add 24.1.1.2 16
quit
int g0/0/1
ip add 12.1.1.2 16
quit
int loopb 0
ip add 2.2.2.2 32
quit
isis
network-entity 49.0123.0000.0000.0002.00
cost-style wide
quit
int g0/0/0
isis enable
quit
int g0/0/1
isis enable
quit
int loopb 0
isis enable
quit
r3:
sys
sysname r3
undo info enable
int g0/0/0
ip add 13.1.1.3 16
quit
int g0/0/1
ip add 35.1.1.3 16
quit
int loopb 0
ip add 3.3.3.3 32
quit
isis
network-entity 49.0123.0000.0000.0003.00
cost-style wide
quit
int g0/0/0
isis enable
quit
int g0/0/1
isis enable
quit
int loopb 0
isis enable
quit
r4:
sys
sysname r4
undo info enable
int g0/0/0
ip add 45.1.1.4 16
quit
int g0/0/1
ip add 24.1.1.4 16
quit
int loopb 0
ip add 4.4.4.4 32
quit
int loopb 100
ip add 100.100.100.100 32
quit
isis
import-route direct
quit
isis
network-entity 49.0123.0000.0000.0003.00
cost-style wide
quit
int g0/0/0
isis enable
quit
int g0/0/1
isis enable
quit
int loopb 0
isis enable
quit
isis
network-entity 11.0123.0000.0000.0004.00
is-level level-2
cost-style wide
quit
int g0/0/0
isis enable
quit
int g0/0/1
isis enable
quit
int loopb 0
isis enable
quit
r5:
sys
sysname r5
undo info enable
int g0/0/0
ip add 35.1.1.5 16
quit
int g0/0/1
ip add 45.1.1.5 16
quit
int loopb 0
ip add 5.5.5.5 32
quit
int loopb 55 配置环回地址
ip add 55.55.55.55 32
quit
isis
import-route direct 引入直连路由
quit
isis
network-entity 11.0123.0000.0000.0005.00
is-level level-2
cost-style wide
quit
int g0/0/0
isis enable
quit
int g0/0/1
isis enable
quit
int loopb 0
isis enable
quit
配置r1 -r5完成,在r1上查看路由表
在r1上没有查看到外部路由,只能看到L1路由和直连路由,L2路由没有传递过来
配置r1 -r5完成,在r2上查看路由表
r2属于L1/2, 在r2上看到L2外部路由和直连路由,看到了L1区域传递过来的路由
在r2和r3上把L2区域路由泄露给L1区域
isis
Import-route isis level-2 into level-1
在r1上查看路由表
可以看到r4 100.100.100.100 和r5 200.200.200.200 level-2区域路由传递给r1 level-1区域
在r1上查看到达外部路由路径
实验完成