[R4]interface Serial 0/2/0
[R4-Serial0/2/0]ip address 20.1.1.2 24 [R4-Serial0/2/0]quit [R4]interface LoopBack 1
[R4-LoopBack1]ip address 4.4.4.4 32 [R4-LoopBack1]quit
[R4]ospf router-id 4.4.4.4 [R4-ospf-1]area 1
[R4-ospf-1-area-0.0.0.1]network 20.1.1.0 0.0.0.255 [R4-ospf-1-area-0.0.0.1]network 4.4.4.4 0.0.0.0 [R4-ospf-1-area-0.0.0.1]quit [R4-ospf-1]quit [R4]
配置好之后在RT3上配置过滤计算出来的路由,让路由器RT3的路由表中只有192.168.0.1/32这个路由信息。
[RT3]ip ip-prefix h3c index 10 deny 192.168.1.1 32
[RT3]ip ip-prefix h3c index 20 permit 0.0.0.0 0 less-equal 32 [RT3]ospf
[RT3-ospf-1]filter-policy ip-prefix h3c import [RT3-ospf-1]quit 配置好之后查看路由表: [RT3]display ip routing-table
Routing Tables: Public
Destinations : 12 Routes : 12
Destination/Mask Proto Pre Cost NextHop Interface
2.2.2.2/32 S0/2/0
3.3.3.3/32 Direct 0 0 127.0.0.1 InLoop0
4.4.4.4/32 S0/2/2
10.1.1.0/24 Direct 0 S0/2/0
10.1.1.1/32 Direct 0 S0/2/0
10.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
20.1.1.0/24 Direct 0 S0/2/2
20.1.1.1/32 Direct 0 0 127.0.0.1 InLoop0
OSPF 10 OSPF 10 1562 1562 0 10.1.1.2 0 10.1.1.1 0 20.1.1.1 10.1.1.1 20.1.1.2 20.1.1.2/32 Direct 0 0 20.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 OSPF 10 1562 10.1.1.1 S0/2/0
会发现路由器RT3的路由表当中只有192.168.0.1/32这个网段了。
在RT3上配置过滤3类LSA,让路由器RT4上只能学习到192.168.0.1/32这个网段。
[RT3]ip ip-prefix h3c index 10 deny 192.168.1.1 32
[RT3]ip ip-prefix h3c index 20 permit 0.0.0.0 0 less-equal 32 [RT3]ospf
[RT3-ospf-1]area 0
[RT3-ospf-1-area-0.0.0.0]filter ip-prefix h3c export [RT3-ospf-1-area-0.0.0.0]quit [RT3-ospf-1]quit [RT3]
配置好之后在RT4上查看路由表,会发现只有192.168.0.1/32这个路由信息了。
[RT4]display ip routing-table Routing Tables: Public
Destinations : 10 Routes : 10
Destination/Mask Proto Pre Cost NextHop Interface
2.2.2.2/32 S0/2/0
3.3.3.3/32 S0/2/0
4.4.4.4/32 Direct 0 0 127.0.0.1 InLoop0
10.1.1.0/24 S0/2/0
20.1.1.0/24 Direct 0 S0/2/0
20.1.1.1/32 Direct 0 S0/2/0
20.1.1.2/32 Direct 0 0 127.0.0.1 InLoop0
127.0.0.0/8 Direct 0 0 127.0.0.1
OSPF 10 OSPF 10 OSPF 10 3124 1562 3124 0 20.1.1.2 0 20.1.1.1 20.1.1.1 20.1.1.1 20.1.1.1 InLoop0
127.0.0.1/32 Direct 0 0 127.0.0.1 InLoop0
192.168.0.1/32 OSPF 10 3124 20.1.1.1 S0/2/0
6. ISIS实验配置:
三台路由器,其中R2和R3位于区域10,R4位于区域20。配置ISIS路由协议,让三台路由器两两之间可以进行路由的学习。 R2路由器配置: [H3C]sysname RT2
[RT2]interface LoopBack 1
[RT2-LoopBack1]IP address 2.2.2.2 32 [RT2-LoopBack1]quit [RT2]interface Serial 0/2/2
[RT2-Serial0/2/2]ip address 10.1.1.1 24 [RT2-Serial0/2/2]quit [RT2]isis
百度搜索“77cn”或“免费范文网”即可找到本站免费阅读全部范文。收藏本站方便下次阅读,免费范文网,提供经典小说综合文库H3CSE路由实验手册(6)在线全文阅读。
相关推荐: