要求:
实现:
R3:
int t 0/0/0
ip address 172.16.1.4 255.255.255.248 (配置虚拟接口ip地址)
tunnel-protocol gre p2mp (配置接口协议为p2mp)
source 43.0.0.2 (配置源)
ospf network-type p2mp (更改ospf接口工作协议为p2mp)
nhrp entry multicast dynamic (开启伪广播)
nhrp network-id 100 (配置密令)
R5:
interface Tunnel0/0/0
ip address 172.16.1.1 255.255.255.248 (配置地址)
tunnel-protocol gre p2mp (配置协议)
source Serial4/0/0 (配置源)
ospf network-type p2mp (配置协议)
nhrp network-id 100 (配置密令)
nhrp entry 172.16.1.4 43.0.0.2 register (将信息发送到中心)
R6:
interface Tunnel0/0/0
ip address 172.16.1.2 255.255.255.248 (配置地址)
tunnel-protocol gre p2mp (配置协议)
source Serial4/0/0 (配置源)
ospf network-type p2mp (配置协议)
nhrp network-id 100 (配置密令)
nhrp entry 172.16.1.4 43.0.0.2 register (将信息发送到中心)
R7:
interface Tunnel0/0/0
ip address 172.16.1.3 255.255.255.248 (配置地址)
tunnel-protocol gre p2mp (配置协议)
source GigabitEthernet0/0/0 (配置源)
ospf network-type p2mp (配置协议)
nhrp network-id 100 (配置密令)
nhrp entry 172.16.1.4 43.0.0.2 register (将信息发送到中心)
检验:(dispaly nhrp peer all )
3、4、5、6:配置ospf环境,减少lsa量、全网可达
R1:
ospf 1 router-id 1.1.1.1 (进入协议与配置id)
area 0.0.0.1 (分配区域)
network 172.16.0.0 0.0.255.255 (宣告)
stub (配置stub区域)
R2:
ospf 1 router-id 2.2.2.2 (进入协议与配置id)
area 0.0.0.1 (选择区域)
network 172.16.0.0 0.0.255.255 (宣告)
stub (配置为stub区域)
R3:
ospf 1 router-id 3.3.3.3 (进入协议与分配id)
area 0.0.0.0 (进入区域0)
network 172.16.1.4 0.0.0.0 (宣告)
area 0.0.0.1 (进入区域1)
abr-summary 172.16.32.0 255.255.224.0 (路由聚合)
network 172.16.32.0 0.0.31.255 (宣告)
stub (配置为stub区域) no-summary (使用一条默认第三类lsa发布)
R5:
ospf 1 router-id 5.5.5.5 (进入协议配置id)
area 0.0.0.0 (区域0)
network 172.16.1.1 0.0.0.0 (宣告)
network 172.16.2.0 0.0.0.255 (宣告)
R6:
ospf 1 router-id 6.6.6.6 (进入协议配置id)
area 0.0.0.0 (区域0)
network 172.16.1.2 0.0.0.0 (宣告)
network 172.16.3.0 0.0.0.255 (宣告)
area 0.0.0.2 (区域2)
abr-summary 172.16.64.0 255.255.224.0 (路由聚合)
network 172.16.64.1 0.0.0.0 (宣告)
nssa (配置为nssa区域) no-summary (使用默认第三类路由发布)
R7:
ospf 1 router-id 7.7.7.7 (进入协议配置id)
area 0.0.0.0 (区域0)
network 172.16.1.3 0.0.0.0 (宣告)
network 172.16.4.0 0.0.0.255 (宣告)
area 0.0.0.3 (区域3)
abr-summary 172.16.96.0 255.255.224.0 (路由聚合)
network 172.16.96.1 0.0.0.0 (宣告)
nssa (配置为nssa区域) no-summary (减少lsa)
R8:
ospf 1 router-id 8.8.8.8 (进入协议配置id)
area 0.0.0.3 (区域3)
network 172.16.0.0 0.0.255.255 (宣告)
nssa (配置为nssa区域)
R9:
ospf 1 router-id 9.9.9.9 (进入协议配置id)
asbr-summary 172.16.128.0 255.255.224.0 (路由聚合)
import-route ospf 2 (重发布)
area 0.0.0.3 (区域3)
network 172.16.96.6 0.0.0.0 (宣告)
nssa (配置nssa区域)
ospf 2 router-id 9.9.9.9 (配置ospf2 配置id)
import-route ospf 1 (重发布)
area 0.0.0.0 (区域0)
network 172.16.128.1 0.0.0.0 (宣告)
network 172.16.130.1 0.0.0.0 (宣告)
R10:
ospf 2 router-id 10.1.1.1 (进入协议配置id)
area 0.0.0.0 (区域0)
network 172.16.0.0 0.0.255.255 (宣告)
R11:
ospf 1 router-id 11.11.11.11 (进入协议配置id)
area 0.0.0.2 (区域2)
network 172.16.0.0 0.0.255.255 (宣告)
nssa (配置为nssa区域)
R12:
ospf 1 router-id 12.1.1.1 (进入协议配置id)
asbr-summary 172.16.160.0 255.255.224.0 (路由聚合)
import-route rip 1 (重发布)
area 0.0.0.2 (区域2)
network 172.16.64.6 0.0.0.0 (宣告)
nssa (配置为nssa区域)
rip 1 (进入rip协议)
version 2 (选择版本)
network 172.16.0.0 (宣告)
import-route ospf 1 (重发布)