[RT3-Serial0/2/0]ip address 10.1.1.2 24 [RT3-Serial0/2/0]quit [RT3]interface Serial 0/2/2
[RT3-Serial0/2/2]ip address 20.1.1.1 24 [RT3-Serial0/2/2]quit [RT3]interface LoopBack 1
[RT3-LoopBack1]ip address 3.3.3.3 32 [RT3-LoopBack1]quit
[RT3]ospf router-id 3.3.3.3 [RT3-ospf-1]area 0
[RT3-ospf-1-area-0.0.0.0]network 3.3.3.3 0.0.0.0 [RT3-ospf-1-area-0.0.0.0]network 10.1.1.0 0.0.0.255 [RT3-ospf-1]quit [RT3]isis
[RT3-isis-1]network-entity 20.0003.0003.0003.00 [RT3-isis-1]quit
[RT3]interface Serial 0/2/2 [RT3-Serial0/2/2]isis enable [RT3-Serial0/2/2]quit [RT3]
RT4的配置如下: [H3C]sysname RT4
[RT4]interface Serial 0/2/0
[RT4-Serial0/2/0]ip address 20.1.1.2 24 [RT4-Serial0/2/0]quit [RT4]interface LoopBack 1
[RT4-LoopBack1]ip address 4.4.4.4 32 [RT4-LoopBack1]quit [RT4]interface LoopBack 2
[RT4-LoopBack2]ip address 192.168.0.1 32 [RT4-LoopBack2]quit [RT4]interface LoopBack 3
[RT4-LoopBack3]ip address 192.168.1.1 32 [RT4-LoopBack3]quit [RT4]isis
[RT4-isis-1]network-entity 20.0004.0004.0004.00 [RT4-isis-1]quit
[RT4]interface Serial 0/2/0 [RT4-Serial0/2/0]isis enable [RT4-Serial0/2/0]quit [RT4]interface LoopBack 1 [RT4-LoopBack1]isis enable [RT4-LoopBack1]quit [RT4]interface LoopBack 2
[RT4-LoopBack2]isis enable [RT4-LoopBack2]quit [RT4]interface LoopBack 3 [RT4-LoopBack3]isis enable [RT4-LoopBack3]quit [RT4]
配置好了查看路由表会发现ISIS和OSPF只能发现各自宣告的网段。下面配置路由引入,把OSPF引入ISIS,再把ISIS引入OSPF。 [RT3]ospf
[RT3-ospf-1]import-route direct [RT3-ospf-1]import-route isis [RT3-ospf-1]quit [RT3]isis
[RT3-isis-1]import-route ospf [RT3-isis-1]import-route direct [RT3-isis-1]
配置好了之后查看路由表: [RT2]display ip routing-table Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost NextHop
Interface
2.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
3.3.3.3/32 OSPF 10 1562 10.1.1.2 S0/2/2
4.4.4.4/32 O_ASE 150 1 10.1.1.2 S0/2/2
10.1.1.0/24 Direct 0 0 10.1.1.1 S0/2/2
10.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
10.1.1.2/32 Direct 0 0 10.1.1.2 S0/2/2
20.1.1.0/24 O_ASE 150 1 10.1.1.2 S0/2/2
20.1.1.2/32 O_ASE 150 1 10.1.1.2 S0/2/2
127.0.0.0/8 Direct 0 0 127.0.0.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.1/32 O_ASE 150 1 10.1.1.2 S0/2/2
192.168.1.1/32 O_ASE 150 1 10.1.1.2 S0/2/2
这时发现RT2上已经学习到了ISIS的路由。 在RT4上查看路由表也会发现,已经发现了 路由策略的设置:
[RT2]display ip routing-table Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost Interface
2.2.2.2/32 Direct 0 0 127.0.0.1 InLoop0
3.3.3.3/32 OSPF 10 1562 10.1.1.2 S0/2/2
4.4.4.4/32 O_ASE 150 1 10.1.1.2 S0/2/2
10.1.1.0/24 Direct 0 0 10.1.1.1 S0/2/2
NextHop