RIP路由协议

实验要求:使用RIPv2配置路由器,使路由器能接收到所有的路由条目

拓扑如下:

配置如下:

R1
enable  进入特权模式
configure terminal   进入全局模式
interface s0/0/0  进入端口
ip address 192.168.1.1 255.255.255.0  设置IP地址
clock rate 64000  设置同步时钟
no shutdown   开启端口
interface l0  开启并进入回环
ip address 1.1.1.1 255.255.255.0
exit
router rip
network 192.168.1.0
network 1.1.1.0
no auto-summary

R2
enable
configure terminal
interface s0/0/0
ip address 192.168.1.2 255.255.255.0
no shutdown
interface s0/0/1
ip address 192.168.2.1 255.255.255.0
clock rate 64000
no shutdown
exit
router rip
network 192.168.1.0
network 192.168.2.0
no auto-summary

R3

enable
configure terminal
interface s0/0/0
ip address 192.168.3.1 255.255.255.0
clock rate 64000
no shutdown
interface s0/0/1
ip address 192.168.2.2 255.255.255.0
no shutdown
exit
router rip
network 192.168.2.0
network 192.168.3.0
no auto-summary

R4
enable
configure terminal
interface s0/0/0
ip address 192.168.3.2 255.255.255.0
no shutdown
interface l0
ip address 2.2.1.1 255.255.255.0
no shutdown
interface l1
ip address 2.2.2.1 255.255.255.0
no shutdown
interface l2
ip address 2.2.3.1 255.255.255.0
no shutdown
interface l3
ip address 2.2.4.1 255.255.255.0
no shutdown
exit
router rip
network 192.168.3.0
network 2.2.1.0
network 2.2.2.0
network 2.2.3.0
network 2.2.4.0
no auto-summary

猜你喜欢

转载自www.cnblogs.com/guoshiyu/p/9212706.html