OSPF综合实验

一,R4为ISP,其上只能配置IP地址;R4与其他所有直连设备间均使用公有IP。
整个OSPF环境Ip基于172.16.0.0/16划分

172.16.0.0/19

172.16.32.0/19

172.16.64.0/19

172.16.96.0/19

172.16.128.0/19

二,R3-R5/6/7为MGRE环境,R3为中心站点
R3

  1. [r3]int t0/0/0
  2. [r3-Tunnel0/0/0]ip add 172.16.4.1 24    
  3. [r3-Tunnel0/0/0]tunnel-protocol gre p2mp 
  4. [r3-Tunnel0/0/0]source 34.0.0.1
  5. [r3-Tunnel0/0/0]nhrp network-id 100
  6. [r3-Tunnel0/0/0]nhrp entry multicast dynamic 

R5

  1. [r5]int t0/0/0
  2. [r5-Tunnel0/0/0]ip add 172.16.4.2 24
  3. [r5-Tunnel0/0/0]tunnel-protocol gre p2mp 
  4. [r5-Tunnel0/0/0]source s4/0/0
  5. [r5-Tunnel0/0/0]nhrp entry 172.16.4.1 34.0.0.1 register
  6. [r5-Tunnel0/0/0]nhrp entry multicast dynamic 

R6

  1. [r6]int t0/0/0
  2. [r6-Tunnel0/0/0]ip add 172.16.4.3 24
  3. [r6-Tunnel0/0/0]tunnel-protocol gre p2mp 
  4. [r6-Tunnel0/0/0]source s4/0/0
  5. [r6-Tunnel0/0/0]nhrp entry 172.16.4.1 34.0.0.1 register
  6. [r6-Tunnel0/0/0]nhrp entry multicast dynamic 

R7

  1. [r7]int t0/0/0
  2. [r7-Tunnel0/0/0]ip add 172.16.4.4 24    
  3. [r7-Tunnel0/0/0]tunnel-protocol gre p2mp 
  4. [r7-Tunnel0/0/0]source g0/0/0
  5. [r7-Tunnel0/0/0]nhrp entry 172.16.4.1 34.0.0.1 register

通道改为broadcast

  1. [r3-Tunnel0/0/0]ospf network-type broadcast
  2. [r5-Tunnel0/0/0]ospf network-type broadcast
  3. [r6-Tunnel0/0/0]ospf network-type broadcast
  4. [r7-Tunnel0/0/0]ospf network-type broadcast

 三、所有设备均可访问R4的环回 


设置虚链路

  1. [r9-ospf-1-area-0.0.0.3]vlink-peer 7.7.7.7
  2. [r7-ospf-1-area-0.0.0.3]vlink-peer 9.9.9.9

ABR设备上做nat网络地址转换,区域汇总

  1. [r3]acl 2000
  2. [r3-acl-basic-2000]rule permit source 172.16.32.0 0.0.31.255
  3. [r3-acl-basic-2000]int s4/0/0
  4. [r3-Serial4/0/0]nat outbound 2000
  5. [r3]ospf
  6. [r3-ospf-1]a 1
  7. [r3-ospf-1-area-0.0.0.1]abr-summary 172.16.32.0 255.255.224.0

重发布

  1. [r12-ospf-1]import-route rip 1
  2. [r12-rip-1]import-route ospf 1

四,减少LSA的更新量,加快收敛,保障更新安全

  1. [r1-ospf-1-area-0.0.0.1]stub
  2. [r2-ospf-1-area-0.0.0.1]stub
  3. [r3-ospf-1-area-0.0.0.1]stub no-summary
  4. [r6-ospf-1-area-0.0.0.2]nssa no-summary 
  5. [r11-ospf-1-area-0.0.0.2]nssa
  6. [r12-ospf-1-area-0.0.0.2]nssa
  7. [r1-GigabitEthernet0/0/0]ospf timer hello 5
     

五、全网可达
 

  1. [r12-ospf-1-area-0.0.0.2]ping -a 172.16.176.1 4.4.4.4
  2.   PING 4.4.4.4: 56  data bytes, press CTRL_C to break
  3.     Reply from 4.4.4.4: bytes=56 Sequence=1 ttl=253 time=30 ms
  4.     Reply from 4.4.4.4: bytes=56 Sequence=2 ttl=253 time=20 ms
  5.     Reply from 4.4.4.4: bytes=56 Sequence=3 ttl=253 time=20 ms
  6.     Reply from 4.4.4.4: bytes=56 Sequence=4 ttl=253 time=40 ms
  7.     Reply from 4.4.4.4: bytes=56 Sequence=5 ttl=253 time=20 ms
  8.   --- 4.4.4.4 ping statistics ---
  9.     5 packet(s) transmitted
  10.     5 packet(s) received
  11.     0.00% packet loss
  12.     round-trip min/avg/max = 20/26/40 ms
     
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值