R1-R8依次类推
[r1]int g0/0/0
[r1-GigabitEthernet0/0/0]ip add 12.1.1.1 24
R1
[r1]isis 1
[r1-isis-1]network-entity 49.0002.1111.1111.1111.00
[r1-isis-1]q
[r1]interface g0/0/0
[r1-GigabitEthernet0/0/0]isis enable 1
[r1-GigabitEthernet0/0/0]int g0/0/1
[r1-GigabitEthernet0/0/1]isis enable 1
[r1]int loopback0
[r1-LoopBack0]isis enable 1
R2
[r2]isis 1
[r2-isis-1]network-entity 49.0002.2222.2222.2222.00
[r2-isis-1]q
[r2]int g0/0/0
[r2-GigabitEthernet0/0/0]isis enable 1
[r2-GigabitEthernet0/0/0]int g0/0/1
[r2-GigabitEthernet0/0/1]isis enable 1
[r2]int loopback0
[r2-LoopBack0]isis enable 1
R3
[r3]isis 1
[r3-isis-1]net
[r3-isis-1]network-entity 49.0001.3333.3333.3333.00
[r3-isis-1]q
[r3]int g0/0/0
[r3-GigabitEthernet0/0/0]isis enable 1
[r3-GigabitEthernet0/0/0]int g0/0/1
[r3-GigabitEthernet0/0/1]isis enable 1
[r3-GigabitEthernet0/0/1]int loopback0
[r3-LoopBack0]isis enable 1
R4
[r4]isis 1
[r4-isis-1]network-entity 49.0001.4444.4444.4444.00
[r4-isis-1]q
[r4]int g0/0/0
[r4-GigabitEthernet0/0/0]isis enable 1
[r4-GigabitEthernet0/0/0]int g0/0/1
[r4-GigabitEthernet0/0/1]isis enable 1
[r4-GigabitEthernet0/0/1]int g0/0/2
[r4-GigabitEthernet0/0/2]isis enable 1
[r4-GigabitEthernet0/0/2]int loopback0
[r4-LoopBack0]isis enable 1
R5
[r5]isis 1
[r5-isis-1]network-entity 49.0001.5555.5555.5555.00
[r5-isis-1]q
[r5]int g0/0/0
[r5-GigabitEthernet0/0/0]isis enable 1
[r5-GigabitEthernet0/0/0]int g0/0/1
[r5-GigabitEthernet0/0/1]isis enable 1
[r5-GigabitEthernet0/0/1]int loopback0
[r5-LoopBack0]isis enable 1
R6
[r6]isis 1
[r6-isis-1]network-entity 49.0001.6666.6666.6666.00
[r6-isis-1]q
[r6]int g0/0/0
[r6-GigabitEthernet0/0/0]isis enable 1
[r6-GigabitEthernet0/0/0]int g0/0/1
[r6-GigabitEthernet0/0/1]isis enable 1
[r6-GigabitEthernet0/0/1]
[r6-GigabitEthernet0/0/1]int loopback 0
[r6-LoopBack0]isis enable 1
R7
[r7]isis 1
[r7-isis-1]network-entity 49.0003.7777.7777.7777.00
[r7-isis-1]q
[r7]int g0/0/0
[r7-GigabitEthernet0/0/0]isis enable 1
[r7-GigabitEthernet0/0/0]int g0/0/1
[r7-GigabitEthernet0/0/1]isis enable 1
[r7-GigabitEthernet0/0/1]int loopback0
[r7-LoopBack0]isis enable 1
R8
[r8]isis 1
[r8-isis-1]network-entity 49.0002.8888.8888.8888.00
[r8-isis-1]q
[r8]int g0/0/0
[r8-GigabitEthernet0/0/0]isis enable 1
[r8-GigabitEthernet0/0/0]
[r8-GigabitEthernet0/0/0]int g0/0/1
[r8-GigabitEthernet0/0/1]isis enable 1
[r8-GigabitEthernet0/0/1]int loopback 0
[r8-LoopBack0]isis enable 1
配置完成之后,每台路由器由于默认是Level1-2路由器,所以每台路由器中的路由条目都是完整的
[r1]isis 1
[r1-isis-1]is-level level-1
[r5]isis 1
[r5-isis-1]is-level level-1
[r7]isis 1
[r7-isis-1]is-level level-2
[r8]isis 1
[r8-isis-1]is-level level-1
修改完路由器的类型后,骨干区域拥有全网的路由条目,area2和area1只拥有本区域的路由,相当于OSPF中的完全stub区域并存在一条缺省指向骨干
在R6上进行路由泄露
[r6]ip ip-prefix aa permit 12.1.1.0 24
[r6]ip ip-prefix aa permit 1.1.1.0 24
[r6]ip ip-prefix aa permit 18.1.1.0 24
[r6]isis
[r6-isis-1]import-route isis level-2 into level-1 filter-policy ip-prefix aa
[r6-isis-1]q
我们可以明显的看到,R1访问R5走的是R6的接口