设为首页收藏本站language 语言切换
查看: 2253|回复: 14
收起左侧

[求助] 怎么做OSPF停在某种状态的实验

[复制链接]
发表于 2014-9-1 13:28:13 | 显示全部楼层 |阅读模式
3鸿鹄币
R1----R2  
R1起环回口1.1.1.1
R2起环回口2.2.2.2

R1---R2直接12.1.1.0网段

怎么用ACL控制OSPF的单播流量,控制在init的状态 ?

我写了2条,匹配不上,捉不到流量

最佳答案

查看完整内容

gns3上也没问题,你在R2上做ACL,然后重启R2的OSPF进程,再到R1上看结果;/--我是在对端做的ACL,然后在R10上看的结果--/
发表于 2014-9-1 13:28:14 | 显示全部楼层
FNATIC.MSI_cArn 发表于 2014-9-2 18:50
不行,我试过了,还是瞬间down 瞬间又full了

gns3上也没问题,你在R2上做ACL,然后重启R2的OSPF进程,再到R1上看结果;/--我是在对端做的ACL,然后在R10上看的结果--/

搜狗截图20140902185850.png


沙发 2014-9-1 13:28:14 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-9-1 13:29:43 | 显示全部楼层
这个ACL语句怎么写?
板凳 2014-9-1 13:29:43 回复 收起回复
回复

使用道具 举报

 成长值: 51215
发表于 2014-9-1 13:46:15 | 显示全部楼层
我的想法是
access-list 100 deny  ospf any any
用在IN方向
地板 2014-9-1 13:46:15 回复 收起回复
回复

使用道具 举报

发表于 2014-9-1 13:53:25 | 显示全部楼层
本帖最后由 Necui 于 2014-9-1 13:54 编辑

在入接口限制目标地址为224.0.0.5的流量,让路由器收不到邻居的Hello包即可:
access-list 100 deny ip any host 224.0.0.5
access-list 100 permit ip any any
5# 2014-9-1 13:53:25 回复 收起回复
回复

使用道具 举报

发表于 2014-9-2 15:44:13 | 显示全部楼层
R2接口in方向:
access-list 101 deny ospf any host 224.0.0.5

R1就卡在init状态
6# 2014-9-2 15:44:13 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-9-2 18:33:16 | 显示全部楼层
Necui 发表于 2014-9-1 13:53
在入接口限制目标地址为224.0.0.5的流量,让路由器收不到邻居的Hello包即可:
access-list 100 deny ip any ...

瞬间邻居down瞬间又full。没实现init
7# 2014-9-2 18:33:16 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-9-2 18:33:25 | 显示全部楼层
IE行不行 发表于 2014-9-2 15:44
R2接口in方向:
access-list 101 deny ospf any host 224.0.0.5

瞬间邻居down瞬间又full。没实现init
8# 2014-9-2 18:33:25 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-9-2 18:44:52 | 显示全部楼层
本帖最后由 FNATIC.MSI_cArn 于 2014-9-2 18:46 编辑

R2#show run
Building configuration...

Current configuration : 1362 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R2
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!         
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface Loopback0
ip address 2.2.2.2 255.255.255.255
!
interface Serial0/0
ip address 12.1.1.2 255.255.255.0
shutdown
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 21.1.1.2 255.255.255.0
ip access-group 100 in
duplex auto
speed auto
!
router ospf 110
router-id 92.2.2.2
log-adjacency-changes
network 2.2.2.2 0.0.0.0 area 0
network 12.1.1.2 0.0.0.0 area 0
network 21.1.1.2 0.0.0.0 area 0
!
no ip http server
no ip http secure-server
!
!
!
access-list 100 deny   ip any host 224.0.0.5
access-list 100 deny   ip any host 224.0.0.6
access-list 100 permit ip any any
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end
123123.png
9# 2014-9-2 18:44:52 回复 收起回复
回复

使用道具 举报

发表于 2014-9-2 18:46:21 | 显示全部楼层
FNATIC.MSI_cArn 发表于 2014-9-2 18:33
瞬间邻居down瞬间又full。没实现init

用clear ip ospf process重启OSPF进程,让它们从头开始建邻。
10# 2014-9-2 18:46:21 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-9-2 18:49:40 | 显示全部楼层
R1#show run
Building configuration...

Current configuration : 1214 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R1
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
memory-size iomem 5
no ip icmp rate-limit unreachable
!
!
ip cef
no ip domain lookup
!
!
!         
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
ip tcp synwait-time 5
!
!
!
!
!
interface Loopback0
--More--
*Mar  1 00:37:49.879: %OSPF-5-ADJCHG: Process 110, Nbr 92.2.2.2 on FastEthernet1/0 from LOADING to FULL, Loading Done
ip address 1.1.1.1 255.255.255.255
!
interface Serial0/0
ip address 12.1.1.1 255.255.255.0
shutdown
serial restart-delay 0
!
interface Serial0/1
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/2
no ip address
shutdown
serial restart-delay 0
!
interface Serial0/3
no ip address
shutdown
serial restart-delay 0
!
interface FastEthernet1/0
ip address 21.1.1.1 255.255.255.0
duplex auto
speed auto
!
router ospf 110
router-id 91.1.1.1
log-adjacency-changes
network 1.1.1.1 0.0.0.0 area 0
network 12.1.1.1 0.0.0.0 area 0
network 21.1.1.1 0.0.0.0 area 0
!
no ip http server
no ip http secure-server
!
!
!
!
!
!
control-plane
!
!
!
!         
!
!
!
!
!
!
line con 0
exec-timeout 0 0
privilege level 15
logging synchronous
line aux 0
exec-timeout 0 0
privilege level 15
logging synchronous
line vty 0 4
login
!
!
end

R1#
11# 2014-9-2 18:49:40 回复 收起回复
回复

使用道具 举报

 楼主| 发表于 2014-9-2 18:50:32 | 显示全部楼层
Necui 发表于 2014-9-2 18:46
用clear ip ospf process重启OSPF进程,让它们从头开始建邻。

不行,我试过了,还是瞬间down 瞬间又full了
12# 2014-9-2 18:50:32 回复 收起回复
回复

使用道具 举报

发表于 2014-9-2 18:57:19 | 显示全部楼层
FNATIC.MSI_cArn 发表于 2014-9-2 18:50
不行,我试过了,还是瞬间down 瞬间又full了

我在PT上试了,可以的。我再去gns3上试试。
搜狗截图20140902185344.png

13# 2014-9-2 18:57:19 回复 收起回复
回复

使用道具 举报

发表于 2014-9-4 15:10:04 | 显示全部楼层
14# 2014-9-4 15:10:04 回复 收起回复
回复

使用道具 举报

发表于 2014-9-4 15:10:18 | 显示全部楼层
15# 2014-9-4 15:10:18 回复 收起回复
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 论坛注册

本版积分规则

QQ|Archiver|手机版|小黑屋|sitemap|鸿鹄论坛 ( 京ICP备14027439号 )  

GMT+8, 2025-5-8 22:32 , Processed in 0.171526 second(s), 26 queries , Redis On.  

  Powered by Discuz!

  © 2001-2025 HH010.COM

快速回复 返回顶部 返回列表