R1
interface g0/0/0
ip address 192.168.10.1 24 第一步:先把R1、R2、R3、R4的端口IP设置好
interface g0/0/1 第二部:使用rip 宣告自己的网段
ip address 192.168.20.1 24 dis ip route 查看路由表
rip 启用RIP路由
version 2 启用rip version 2
undo summary 关闭自动汇总
network 192.168.10.0 宣告自己的网段
network 192.168.20.0 宣告自己的网段
R2
interface g0/0/0
ip address 192.168.20.2 24
interface g0/0/1
ip address 192.168.30.1 24
rip
version 2
undo summary
network 192.168.20.0
network 192.168.30.0
R3
interface g0/0/0
ip address 192.168.30.2 24
interface g0/0/1
ip address 192.168.40.1 24
rip
version 2
undo summary
network 192.168.30.0
network 192.168.40.0
R4
interface g0/0/0
ip address 192.168.40.2 24
interface g0/0/1
ip address 10.10.10.1 24
rip
version 2
undo summary
network 192.168.40.0
network 10.0.0.0 根据网段类别A类写的
备注:1.为什么关闭自动汇总?
默认会在主类网络边界做自动汇总,若有不连续网络,会导致路由学习异常
通告网络时:只能通告主类网络,即使network写子网地址,也会通告该主类网络,属于该主类网络的所有接口,都会被通告进rip进程。
标签:网段,network,g0,RIP,华为,192.168,address,0ip,路由 From: https://blog.51cto.com/u_16017004/6231901