多语言展示
当前在线:1143今日阅读:26今日分享:39

GNS3 RIP实现单播更新

RIP实现路由器R1和R2之间可以相互学习路由,但是都不和R3进行交互,实现单播更新。
工具/原料

GNS3

方法/步骤
1

先画出拓扑图

2

再分别对R1 R2 R3进RIP配置首先是R1R1:enable configure terminal interface fastEthernet 0/0ip address 192.168.1.1 255.255.255.0no shutdowninterface loopback 0ip address 1.1.1.1 255.255.255.0router ripnetwork 192.168.1.0network 1.0.0.0将这些代码复制或者敲入R1

3

R2:enable configure terminal interface fastEthernet 0/0ip address 192.168.1.2 255.255.255.0no shutdowninterface loopback 0ip address 2.2.2.2 255.255.255.0router ripnetwork 192.168.1.0network 2.0.0.0

4

R3:enable configure terminal interface fastEthernet 0/0ip address 192.168.1.3 255.255.255.0no shutdowninterface loopback 0ip address 3.3.3.3 255.255.255.0router ripnetwork 192.168.1.0network 3.0.0.0好了,我们已经完成了对R1 R2 R3的RIP配置了,接着就是要指定RIP的更新方向了,默认是广播的,我们要指定R1的RIP更新包发向R2,R2的更新包发向R1,R3不能发RIP更新包

5

先测试下此时的R1中的RIP 命令为debug ip rip可以看到,R1收到了来自R2(192.168.1.2)和R3(192.168.1.3)的更新包发出的呢也是广播的

6

分别对R1 R2 R3进行抑制和指定发往的方向R1:passive-interface defaultneighbor 192.168.1.2endR2:passive-interface defaultneighbor 192.168.1.1endR3:passive-interface defaultend

7

此时我们再来看下,R1中的RIP我们可以发现,R1直接收到了来自R2的更新包R1呢,也直发往R2,这就是单播更新了

推荐信息