思科路由器-配置RIPv2

版权声明:[email protected]版权所有 https://blog.csdn.net/weixin_43458720/article/details/89510228

a. 使用适当的命令在 R1 上创建默认路由,以使所有互联网流量通过 S0/0/1 离开网络。

R1(config)#ip route 0.0.0.0 0.0.0.0 serial 0/0/1

b. 进入 RIP 协议配置模式。

R1(config)# router rip

c. 使用 RIP 协议的第 2 版并禁用网络汇总。

R1(config-router)#version 2
R1(config-router)#no auto-summary

d. 为连接到 R1 的网络配置 RIP。

#即为network 直连网络

R1(config-router)#network 192.168.1.0
R1(config-router)#network 192.168.2.0

e. 配置不含路由器的 LAN 端口,这样端口就不会发出任何路由信息。

R1(config-router)#passive-interface gigabitEthernet 0/0

f. 通过其他 RIP 路由器,通告步骤 1a 中配置的默认路由。

R1(config-router)#default-information originate 

g. 保存配置。

R1#wr
Building configuration...
[OK]
#或者
R1#copy running-config startup-config 

猜你喜欢

转载自blog.csdn.net/weixin_43458720/article/details/89510228