RIP动态路由配置

1、搭建网络

搭建拓扑、规划IP地址、划分网段、设置端口

2、配置交换机,路由器

三层交换机配置

复制代码
Switch>enable
Switch#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Switch(config)#hostname S3560

S3560(config)#vlan 10
S3560(config-vlan)#name vlan10
S3560(config-vlan)#exit

S3560(config)#vlan 40
S3560(config-vlan)#name vlan40
S3560(config-vlan)#exit

S3560(config)#int f0/1
S3560(config-if)#switchport mode access
S3560(config-if)#switchport access vlan 10
S3560(config-if)#no shutdown
S3560(config-if)#exit

S3560(config)#int f0/2
S3560(config-if)#switchport mode access
S3560(config-if)#switchport access vlan 40
S3560(config-if)#no shutdown
S3560(config-if)#exit

//配置vlan的虚接口地址
S3560(config)#int vlan 10
S3560(config-if)#ip address 192.168.1.1 255.255.255.0
S3560(config-if)#exit
S3560(config)#int vlan 40
S3560(config-if)#ip address 192.168.4.1 255.255.255.0
S3560(config-if)#exit


//进入RIP配置视图下,发布直连路由,更改版本
S3560(config)#ip routing        //启动ip routing
S3560(config)#router rip        //进入RIP配置视图
S3560(config-router)#network 192.168.1.0        //发布直连路由
S3560(config-router)#network 192.168.4.0        //发布直连路由
S3560(config-router)#version 2                  //更改RIP版本
S3560(config-router)#exit

配置路由器

复制代码
Router>en
Router#conf t
Enter configuration commands, one per line.  End with CNTL/Z.
Router(config)#int f1/0
Router(config-if)#ip address 192.168.4.2 255.255.255.0
Router(config-if)#no shutdown
Router(config-if)#exit

Router(config)#int serial2/0
Router(config-if)#ip address 192.168.3.1 255.255.255.0
Router(config-if)#clock rate 64000
Router(config-if)#no shutdown
Router(config-if)#exit

Router(config)#router rip
Router(config-router)#network 192.168.4.0
Router(config-router)#network 192.168.3.0
Router(config-router)#version 2
Router(config-router)#end

路由器配置结果,另一路由器做相同配置

3、查看配置结果
相关推荐
星恒讯工业路由器19 小时前
5G FWA技术演进与趋势
网络·5g·信息与通信·4g·5g fwa·3gpp规范·fwa趋势
星夜夏空991 天前
网络编程(1)
服务器·网络
上海云盾-小余1 天前
中小站点防护避坑:低价高防服务存在的各类安全短板剖析
网络·爬虫·安全·ddos
数据知道1 天前
邮件安全实战:SPF/DKIM/DMARC 配置与钓鱼绕过
网络·安全·web安全·网络安全·邮件安全
王莎莎-MinerU1 天前
MCP 解决的是工具接入,科研 Agent 还缺的是科学证据接口标准化
开发语言·网络·人工智能·深度学习·pdf·c#·php
Chloeis Syntax1 天前
JAVAEE初阶 --- 构造HTTP请求
网络·网络协议·http·postman
砚凝霜1 天前
软考网络工程师|第 1 章 计算机网络基础 完整备考笔记
网络·笔记·计算机网络
rcms152702692181 天前
NIKON 4S019-394 接口模块
网络
某不知名網友1 天前
Linux Socket 编程完整讲解
网络
ICT系统集成阿祥1 天前
不用复杂命令,快速定位二层 / 三层网络故障
网络·网络排查·二层故障·三层故障