AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 408426
Accepted
gokul varma nk
gokul varma nk
Asked: 2012-07-18 00:25:14 +0800 CST2012-07-18 00:25:14 +0800 CST 2012-07-18 00:25:14 +0800 CST

不重新分配的 EIGRP 的 RIP 广告网络

  • 772

这是我在 GNS3 中设置的拓扑。

RIP-EIGRP 拓扑

路由器 R2 的 RIP V2 协议识别并通告在 EIGRP 中通告的两个网络,即使上述信息应该仅通过重新分发接收。我如何确保 RIP 仅通告我想要通告的那些子网,而不是该特定路由器上可能存在的该有类网络的所有子网?

以下是来自路由器 R2 和 R3 的 Show Ip route 和 Show Running-config 信息,

    R3#sh ip route
Codes: C - connected, S - static, R - RIP, M - mobile, B - BGP
       D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area
       N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2
       E1 - OSPF external type 1, E2 - OSPF external type 2
       i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2
       ia - IS-IS inter area, * - candidate default, U - per-user static route
       o - ODR, P - periodic downloaded static route

Gateway of last resort is not set

     192.168.1.0/24 is variably subnetted, 5 subnets, 2 masks
C       192.168.1.64/28 is directly connected, Loopback1
R       192.168.1.32/28 [120/1] via 192.168.1.133, 00:00:00, Serial0/0
R       192.168.1.16/28 [120/1] via 192.168.1.133, 00:00:00, Serial0/0
R       192.168.1.128/30 [120/1] via 192.168.1.133, 00:00:00, Serial0/0
C       192.168.1.132/30 is directly connected, Serial0/0
R3#

//////////////////////////////////////////////////////////////////////////////

R3#sh run
Building configuration...

Current configuration : 1063 bytes
!
version 12.4
service timestamps debug datetime msec
service timestamps log datetime msec
no service password-encryption
!
hostname R3
!
boot-start-marker
boot-end-marker
!
!
no aaa new-model
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 192.168.1.65 255.255.255.240
!
interface Serial0/0
 ip address 192.168.1.134 255.255.255.252
 serial restart-delay 0
 no dce-terminal-timing-enable
!
interface Serial0/1
 no ip address
 shutdown
 serial restart-delay 0
 no dce-terminal-timing-enable
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
 no dce-terminal-timing-enable
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
 no dce-terminal-timing-enable
!
router rip
 version 2
 passive-interface default
 network 192.168.1.0
 neighbor 192.168.1.133
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end

R3#s


//////////////////////////////////////////////////////////////




R2#sh run
Building configuration...

Current configuration : 1240 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
!
resource policy
!
memory-size iomem 5
!
!
ip cef
no ip domain lookup
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
!
interface Loopback1
 ip address 192.168.1.17 255.255.255.240
!
interface Loopback2
 ip address 192.168.1.33 255.255.255.240
!
interface Serial0/0
 ip address 192.168.1.130 255.255.255.252
 serial restart-delay 0
 no dce-terminal-timing-enable
!
interface Serial0/1
 ip address 192.168.1.133 255.255.255.252
 serial restart-delay 0
 no dce-terminal-timing-enable
!
interface Serial0/2
 no ip address
 shutdown
 serial restart-delay 0
 no dce-terminal-timing-enable
!
interface Serial0/3
 no ip address
 shutdown
 serial restart-delay 0
 no dce-terminal-timing-enable
!
router eigrp 10
 network 192.168.1.16 0.0.0.15
 network 192.168.1.128 0.0.0.3
 no auto-summary
!
router rip
 version 2
 passive-interface default
 network 192.168.1.0
 neighbor 192.168.1.134
!
no ip http server
no ip http secure-server
!
!
!
!
!
control-plane
!
!
!
!
!
!
!
!
!
!
line con 0
 exec-timeout 0 0
 logging synchronous
line aux 0
line vty 0 4
!
!
end
routing cisco gns3 rip eigrp
  • 1 1 个回答
  • 503 Views

1 个回答

  • Voted
  1. Best Answer
    Jason Seemann
    2012-07-18T12:51:55+08:002012-07-18T12:51:55+08:00

    您可以使用分发列表来阻止 RIP 通告属于 EIGRP 和 RIP 进程的路由(即 192.168.1.16/28 和 192.168.1.128/30)

    要做到这一点,只需允许 loopback 1 路由出去,并拒绝其余路由。或者,您可以编写一个拒绝 192.168.1.16/28 和 192.168.1.128/30 并允许其余部分的访问列表。

    如果您希望在子网长度上进行特定匹配,您可能还希望使用前缀列表。请注意,下面的 ACL 实际上将允许作为 192.168.1.32/28 子集的任何路由(例如,如果 192.168.1.33/32 存在于您的 rip 过程中,它也会被允许)

    router rip
     distribute-list 10 out s0/1
    
    access-list 10 permit 192.168.1.32 0.0.0.15
    access-list 10 deny any
    

    这是 RIP 的一个问题,因为它只能在有类网络上启用,不幸的是,在您的拓扑中,这意味着 RIP 正在 192.168.1.0/24 网络的所有接口上运行。

    正如您在 EIGRP 中提到的那样,您没有这个问题,因为您可以分类指定参与接口。

    • 0

相关问题

  • 无法通过 Ubuntu VPN 访问外部网络

  • 将路由永久添加到 Solaris 10

  • Quagga 套件中的 ./configure --disable-zebra 代表什么?

  • 使用特定接口进行出站连接(Ubuntu 9.04)

  • Linux TC/策略路由工具

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve