码迷,mamicode.com
首页 > 其他好文 > 详细

OSPF_1

时间:2019-09-19 13:53:53      阅读:102      评论:0      收藏:0      [点我收藏+]

标签:bit   abr   相等   png   int   imp   oop   height   abi   

实验拓扑图:

技术图片

 

 

 实验要求:

 

技术图片

 

要求4配置:

R1:int g/0/0

        ospf dr-priority 0

【将优先级修改为0或者将网络类型修改为P-2-P后,将不能选举DR、BDR】

要求5的配置:

R3:ospf 1
        a 1
       nssa
       nssa no-summary
R4:ospf 1
        a 1
        nssa
        nssa no-summary

配置nssa前R4的LSDB:

技术图片

 修改后的LSDB:

技术图片

 

 要求9的配置:

R3:int g/0/1

       ospf dr-priority 100

【修改接口优先级即可,优先级为0就失去参加选举DR的资格。

优先级最大为DR,优先级相等时,看route-id。如果,将接口优先级修改之后,
还是不能顺利成为DR,此时可重启OSPF进程,或者shutdown掉接口再no shutdown。

各个路由设备的配置:

R5:

interface GigabitEthernet0/0/0
ip address 192.168.10.1 255.255.255.0
ospf dr-priority 0
#

interface LoopBack0
ip address 100.1.1.1 255.255.255.0
#

ospf 1 router-id 100.1.1.1
area 0.0.0.2
network 100.1.1.0 0.0.0.255
network 192.168.10.0 0.0.0.255
#

R1:

interface GigabitEthernet0/0/0
ip address 192.168.10.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.20.1 255.255.255.0
#

interface LoopBack0
ip address 1.1.1.1 255.255.255.0
#
ospf 1 router-id 1.1.1.1
area 0.0.0.0
network 192.168.20.0 0.0.0.255
area 0.0.0.2
network 1.1.1.0 0.0.0.255
network 192.168.10.0 0.0.0.255
#

R2:

interface GigabitEthernet0/0/0
ip address 192.168.20.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.30.1 255.255.255.0
#

interface LoopBack0
ip address 2.2.2.2 255.255.255.0
#
ospf 1 router-id 2.2.2.2
area 0.0.0.0
network 2.2.2.0 0.0.0.255
network 192.168.20.0 0.0.0.255
network 192.168.30.0 0.0.0.255

R3:

interface GigabitEthernet0/0/0
ip address 192.168.30.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.40.1 255.255.255.0
ospf dr-priority 100

#

interface LoopBack0
ip address 3.3.3.3 255.255.255.0
#
ospf 1 router-id 3.3.3.3
area 0.0.0.0
network 3.3.3.0 0.0.0.255
network 192.168.30.0 0.0.0.255
area 0.0.0.1
abr-summary 192.168.32.0 255.255.224.0
network 192.168.40.0 0.0.0.255
nssa no-summary
#

R4:

interface GigabitEthernet0/0/0
ip address 192.168.40.2 255.255.255.0
#
interface GigabitEthernet0/0/1
ip address 192.168.50.1 255.255.255.0
#

interface LoopBack0
ip address 4.4.4.4 255.255.255.0
#
ospf 1 router-id 4.4.4.4
import-route rip 1 route-policy 1
area 0.0.0.1
network 4.4.4.0 0.0.0.255
network 192.168.40.0 0.0.0.255
nssa no-summary
#

rip 1
version 2
network 192.168.50.0
import-route ospf 1 route-policy 1
#

R6:

interface GigabitEthernet0/0/0
ip address 192.168.50.2 255.255.255.0
#

interface LoopBack0
ip address 200.1.1.1 255.255.255.0
#
rip 1
version 2
network 192.168.50.0
network 200.1.1.0
#

 

OSPF_1

标签:bit   abr   相等   png   int   imp   oop   height   abi   

原文地址:https://www.cnblogs.com/cqyyyyy/p/11548513.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!