<Huawei>sys
[Huawei]sysname R1 //命名
[R1]un in en //关系信息提示
[R1]int g0/0/0
[R1-GigabitEthernet0/0/0]ip add 16.0.0.1 30
[R1-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R1-GigabitEthernet0/0/0]q
[R1]int g0/0/1
[R1-GigabitEthernet0/0/1]ip add 12.0.0.1 30
[R1-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R1-GigabitEthernet0/0/1]q
[R1]int loo 0
[R1-LoopBack0]ip add 1.1.1.1 32
[R1-LoopBack0]q
[R1]isis 1
[R1-isis-1]is-level level-1
[R1-isis-1]network-entity 49.0001.0010.0100.1001.00 //isis协议唯一标识的NASP地址
[R1-isis-1]int g0/0/1
[R1-GigabitEthernet0/0/1]isis enable //开启ISIS协议功能
[R1-GigabitEthernet0/0/1]int loo 0
[R1-LoopBack0]isis enable
[R1-LoopBack0]q
[R1]rip 1
[R1-rip-1]undo summary
[R1-rip-1]version 2
[R1-rip-1]network 16.0.0.0
[R1-rip-1]import-route isis 1 cost 5
[R1-rip-1]q
[R1]isis 1
[R1-isis-1]import-route rip 1 level-1 //isis的路由重分发
[R1-isis-1]q
[R1]isis 1
[R1-isis-1]summary 203.0.0.0 255.255.254.0 level-1 //在ASBR上进行路由汇总
[R1-isis-1]q
R2配置
<Huawei>sys
[Huawei]sysname R2
[R2]un in en
Info: Information center is disabled.
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]ip add 12.0.0.2 30
[R2-GigabitEthernet0/0/1]un sh
Info: Interface GigabitEthernet0/0/1 is not shutdown.
[R2-GigabitEthernet0/0/1]q
[R2]int g0/0/2
[R2-GigabitEthernet0/0/2]ip add 23.0.0.1 30
[R2-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R2-GigabitEthernet0/0/2]q
[R2]int loo 0
[R2-LoopBack0]ip add 2.2.2.2 32
[R2-LoopBack0]q
[R2]isis 1
[R2-isis-1]network-entity 49.0001.0020.0200.2002.00
[R2-isis-1]q //不定义level时,默认为level1-2
[R2]int g0/0/1
[R2-GigabitEthernet0/0/1]isis enable
[R2-GigabitEthernet0/0/1]q
[R2]int g0/0/2
[R2-GigabitEthernet0/0/2]isis enable
[R2-GigabitEthernet0/0/2]q
[R2]int loo 0
[R2-LoopBack0]isis enable
[R2-LoopBack0]q
[R2]isis 1
[R2-isis-1]import-route isis level-2 into level-1 //路由泄露使R1获取R2的路由明细
R3配置
<Huawei>sys
[Huawei]sysname R3
[R3]un in en
Info: Information center is disabled.
[R3]int g0/0/2
[R3-GigabitEthernet0/0/2]ip add 23.0.0.2 30
[R3-GigabitEthernet0/0/2]un sh
Info: Interface GigabitEthernet0/0/2 is not shutdown.
[R3-GigabitEthernet0/0/2]q
[R3]int g0/0/3
[R3-GigabitEthernet0/0/3]ip add 34.0.0.1 30
[R3-GigabitEthernet0/0/3]un sh
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[R3-GigabitEthernet0/0/3]q
[R3]int loo 0
[R3-LoopBack0]ip add 3.3.3.3 32
[R3]isis 1
[R3-isis-1]network-entity 49.0000.0030.0300.3003.00
[R3-isis-1]is-level level-2 //定义骨干区域的路由为level-2
[R3-isis-1]int g0/0/2
[R3-GigabitEthernet0/0/2]isis enable
[R3-GigabitEthernet0/0/2]int g0/0/3
[R3-GigabitEthernet0/0/3]isis enable
[R3-GigabitEthernet0/0/3]int loo 0
[R3-LoopBack0]isis enable
[R3-LoopBack0]q
R4配置
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R4
[R4]un in en
Info: Information center is disabled.
[R4]int g0/0/3
[R4-GigabitEthernet0/0/3]ip add 34.0.0.2 30
[R4-GigabitEthernet0/0/3]un sh
Info: Interface GigabitEthernet0/0/3 is not shutdown.
[R4-GigabitEthernet0/0/3]q
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]ip add 45.0.0.1 30
[R4-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R4-GigabitEthernet0/0/0]q
[R4]int loo 0
[R4-LoopBack0]ip add 4.4.4.4 32
[R4]isis 1
[R4-isis-1]network-entity 49.0002.0040.0400.4004.00
[R4-isis-1]int g0/0/3
[R4-GigabitEthernet0/0/3]isis enable
[R4-GigabitEthernet0/0/3]q
[R4]int g0/0/0
[R4-GigabitEthernet0/0/0]isis enable
[R4-GigabitEthernet0/0/0]q
[R4]int loo 0
[R4-LoopBack0]isis enable
[R4-LoopBack0]q
[R4]isis 1
[R4-isis-1]import-route isis level-2 into level-1 //进行路由泄密,让R5能够得到详细的路由条目
[R4-isis-1]summary 202.0.0.0 255.255.254.0 level-1-2 //在ABR上对R5进行路由汇总
R5配置
<Huawei>sys
Enter system view, return user view with Ctrl+Z.
[Huawei]sysname R5
[R5]un in en
Info: Information center is disabled.
[R5]int g0/0/0
[R5-GigabitEthernet0/0/0]ip add 45.0.0.2 30
[R5-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[R5-GigabitEthernet0/0/0]q
[R5]int loo 0
[R5-LoopBack0]ip add 5.5.5.5 32
[R5-LoopBack0]int loo 1
[R5-LoopBack1]ip add 202.0.0.1 24
[R5-LoopBack1]int loo 2
[R5-LoopBack2]ip add 202.0.1.1 24
[R5-LoopBack2]q
[R5]isis 1
[R5-isis-1]network-entity 49.0002.0050.0500.5005.00
[R5-isis-1]is-level level-1 //定义R5为level-1,优化网段
Info: IS Level Changed, Resetting ISIS...
[R5-isis-1]int g0/0/0
[R5-GigabitEthernet0/0/0]isis enable
[R5-GigabitEthernet0/0/0]q
[R5]int loo 0
[R5-LoopBack0]isis enable
[R5-LoopBack0]int loo 1
[R5-LoopBack1]isis enable
[R5-LoopBack1]int loo 2
[R5-LoopBack2]isis enable
[R5-LoopBack2]q
R6配置
<Huawei>sys
[Huawei]int g0/0/0
[Huawei-GigabitEthernet0/0/0]ip add 16.0.0.2 30
[Huawei-GigabitEthernet0/0/0]
[Huawei-GigabitEthernet0/0/0]un sh
Info: Interface GigabitEthernet0/0/0 is not shutdown.
[Huawei-GigabitEthernet0/0/0]q
[Huawei]un in en
Info: Information center is disabled.
[Huawei]int loo 0
[Huawei-LoopBack0]ip add 6.6.6.6 32
[Huawei-LoopBack0]int loo 1
[Huawei-LoopBack1]ip add 203.0.0.1 24
[Huawei-LoopBack1]int loo 2
[Huawei-LoopBack2]ip add 203.0.1.1 24
[Huawei-LoopBack2]q
[Huawei]sysname R6
[R6]int g0/0/0
[R6-GigabitEthernet0/0/0]q
[R6]rip 1
[R6-rip-1]undo summary
[R6-rip-1]version 2
[R6-rip-1]network 16.0.0.0
[R6-rip-1]network 6.0.0.0
[R6-rip-1]network 203.0.0.0
[R6-rip-1]network 203.0.1.0