三层交换机配置rip路由的方法和步骤
- 格式:docx
- 大小:17.22 KB
- 文档页数:1
实验二十九(1)、三层交换机RIP动态路由一、 实验目的1、掌握三层交换机之间通过RIP协议实现网段互通的配置方法。
2、理解动态实现方式与静态方式的不同二、 应用环境当两台三层交换机级联时,为了保证每台交换机上所连接的网段可以和另一台交换机上连接的网段互相通信,使用RIP协议可以动态学习路由。
三、 实验设备1、DCRS-7604(或6804)交换机1台2、DCRS-5526S交换机1台3、PC机2-4台4、Console线1-2根5、直通网线2-4根四、 实验拓扑五、 实验要求1、在交换机A和交换机B上分别划分基于端口的VLAN:交换机 VLAN 端口成员交换机A10 1~820 9~16100 24交换机B30 1~840 9~16101 242、交换机A和B通过的24口级联。
3、配置交换机A和B各VLAN虚拟接口的IP地址分别如下表所示:VLAN10 VLAN20 VLAN30 VLAN40 VLAN100 VLAN101 192.168.10.1 192.168.20.1 192.168.30.1192.168.40.1192.168.100.1 192.168.100.24、PC1-PC4的网络设置为:设备 IP地址 gateway MaskPC1 192.168.10.101 192.168.10.1 255.255.255.0PC2 192.168.20.101 192.168.20.1 255.255.255.0PC3 192.168.30.101 192.168.30.1 255.255.255.0PC4 192.168.40.101 192.168.40.1 255.255.255.05、验证:z没有RIP路由协议之前:PC1与PC2,PC3与PC4可以互通。
PC1、PC2与PC3、PC4不通。
z配置RIP路由协议之后:四台PC之间都可以互通。
z若实验结果和理论相符,则本实验完成。
配置动态路由RIP(三个三层交换机Vlan互通)网络拓扑如下:配置如下:第一个交换机:1、重命名设备Switch#conf tEnter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname S12、创建Vlan 10、20、30S1#vlan databaseS1(vlan)#vlan 10 name toyotaVLAN 10 added:Name: toyotaS1(vlan)#vlan 20 name LexusVLAN 20 added:Name: LexusS1(vlan)#vlan 30 name ShareVLAN 30 added:Name: Share3、将网口1-5给Vlan10,网口21-24给Vlan20,将G1做扩展相互通信使用.S1(config)#interface range fastEthernet 0/1-5S1(config-if-range)#switchport access vlan 10S1(config-if-range)#exitS1(config)#interface range fastEthernet 0/21-24S1(config-if-range)#switchport access vlan 20S1(config-if-range)#exitS1(config)#interface gigabitEthernet 0/1S1(config-if)#switchport access vlan 30S1(config-if)#exit4、Vlan 配置上IPS1(config)#interface vlan 10S1(config-if)#ip address 10.6.1.2 255.255.255.0S1(config-if)#exitS1(config)#interface vlan 20S1(config-if)#ip address 10.6.2.2 255.255.255.0S1(config-if)#exitS1(config)#interface vlan 30S1(config-if)#ip address 10.6.3.2 255.255.255.0S1(config-if)#exit5、台式机测试网络,测试OKA、如发现仅能ping所属Vlan的地址,需要在三层启动IP routing6、其他二个交换机配置类似,需注意中间的S2交换机,需将G0/1、G0/2都划给Vlan30,G0/1连接S1,G0/2连接S37、配置动态路由,并查看路由状态。
H3C三层交换机和路由器的配置流程H3C三层交换机和路由器的配置流程举例讲解H3C配置三层交换机4个步骤详细用法,配置三层交换机通用的四个步骤就是:划分VLAN,并描述;给VLAN划网关;给VLAN指定端口;配置路由协议;学会这几个步骤之后就能解决所有的配置三层交换机的问题。
language-modechinese//切换到中文模式system-view//进入系统视图[H3C]displaycurrent-configuration//显示当前配置三层交换机//以下开始配置三层交换机配置三层交换机第一步:划分VLAN,并描述vlan1descriptionlocal-s3600//本交换机使用#vlan2descriptionlink-to-shanxicentre//陕西省中心#vlan3descriptionlink-to-shangjiecentre//商界分中心内部使用#vlan4descriptionlink-to-shangdongsuo//商东所#vlan5descriptionlink-to-shangnansuo//商南所配置三层交换机第二步:给VLAN划网关#interfaceVlan-interface2descriptionlinktoshanxicentreipaddress10.61.242.110255.255.255.252//省中心指定广域网关、子网掩码#interfaceVlan-interface3descriptionlinktoshangjiecentreipaddress10.161.134.65255.255.255.192//商界分中心局域网关、子网掩码#interfaceVlan-interface4descriptionlinktoshangdongsuoipaddress10.61.242.113255.255.255.252//商东所广域网关、子网掩码#interfaceVlan-interface5descriptionlinktoshangnansuoipaddress10.61.242.117255.255.255.252//商南所广域网关、子网掩码配置三层交换机第三步:给VLAN指定端口#interfaceEthernet1/0/2//将交换机的端口2指定给省中心使用descriptionlinktoshanxicentreportaccessvlan2#interfaceEthernet1/0/15-24//将交换机的端口15-24指定给分中心内部使用descriptionlinktoshangjiecentreportaccessvlan3#interfaceEthernet1/0/3//将交换机的端口3指定给商东所使用descriptionlinktoshangdongsuoportaccessvlan4#interfaceEthernet1/0/4//将交换机的端口4指定给商南所使用descriptionlinktoshangnansuoportaccessvlan5配置三层交换机第四步:配置路由协议//配静态路由(只用对远端设备配一条路由即可,本地自通)iproute0.0.0.00.0.0.010.61.242.109//指定所有网段到商东所的路由//配置三层交换机商东所的反向路由iproute10.161.134.0255.255.255.010.61.242.114iproute10.161.135.0255.255.255.010.61.242.114//配置三层交换机商南所的反向路由iproute10.161.135.0255.255.255.010.61.242.118iproute10.161.136.0255.255.255.010.61.242.118//省中心配置三层交换机:iproute10.61.242.0255.255.255.010.61.242.110//商东所242.114和商南所242.118共属的242.0指向分中心网关iproute10.161.134.0255.255.255.010.61.242.110//分中心内部网段指向分中心网关//iproute10.161.134.0255.255.255.010.61.242.110//iproute10.161.135.0255.255.255.010.61.242.110//iproute10.161.136.0255.255.255.010.61.242.110//以下开始配置路由器syslocal-user admin创建账号adminpassword simple chuntent创建密码chuntentauthorization-attribute level 3 账号权限service-type telnet打开telnet服务service-type web打开页面登陆服务telnet server enable 启用服务ip http enable 启用服务quitsysuser-interface vty 0 4authentication-mode schemequitinterface g0/0 进入外网接口配置外网ip和子网掩码ip address X.X.X.X 255.255.255.X这里地址按照您的公网ip地址和掩码填写nat outboundquitinterface vlan 1 进入内网接口配置内网ip和子网掩码ip address X.X.X.X 255.255.255.Xquitip route-static 0.0.0.0 0.0.0.0 X.X.X.X这里填写外网网关地址。
三层交换机配置rip路由的方法和步骤
本文整理于网络,仅供阅读参考
三层交换机配置rip路由的方法和步骤
三层交换机配置rip路由的方法和步骤如下建立建立packet tracer拓扑图
在三层交换机上划分vlan10和vlan20,其中vlan10用于连接校园网主机,vlan20用于连接r1
路由器之间通过v.35电缆通过串口连接,dce端连接在r1上,配置其时钟频率64000。
主机和交换机通过直连线,主机与路由器通过交叉线连接。
在s3560上配置ripv2路由协议。
在路由器r1、r2上配置ripv2路由协议。
将pc1、pc2主机默认网关设置为与直连网路设备接口ip地址。
pc1
ip: 192.168.1.2
submask: 255.255.255.0
gateway: 192.168.1.1
pc2
ip: 192.168.2.2
submask: 255.255.255.0
gateway: 192.168.2.1
验证pc1、pc2主机之间可以互相同信;。
三层交换机与路由器的配置实例(图解)目的:学会使用三层交换与路由器让处于不同网段的网络相互通信实验步骤:一:二层交换机的配置:在三个二层交换机上分别划出两VLAN,并将二层交换机上与三层交换或路由器上的接线设置为trunk接口二:三层交换机的配置:1:首先在三层交换上划出两个VLAN,并进入VLAN为其配置IP,此IP将作为与他相连PC的网关。
2:将与二层交换机相连的线同样设置为trunk接线,并将三层交换与路由器连接的线设置为路由接口(no switchsport)3:将路由器和下面的交换机进行单臂路由的配置实验最终结果:拓扑图下各个PC均能相互通信交换机的配置命令:SW 0:Switch>Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int f0/2Switch(config-if)#switchport access vlan 2Switch(config-if)#no shutSwitch(config-if)#int f0/3Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#exitSwitch(config)#SW 1:Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2% Access VLAN does not exist. Creating vlan 2Switch(config-if)#no shutSwitch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#SW 2:Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/2Switch(config-if)#switchport access vlan 2% Access VLAN does not exist. Creating vlan 2Switch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#switchport mode trunkSwitch(config-if)#三层交换的配置命令:Switch>enSwitch#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#int f0/1Switch(config-if)#switchport mode trunk%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/2, changed state to down Switch(config-if)#exitSwitch(config)#int f0/2Switch(config-if)#switchport mode trunkSwitch(config-if)#exitSwitch(config)#vlan 2Switch(config-vlan)#exitSwitch(config)#int vlan 1Switch(config-if)#no shut%LINK-5-CHANGED: Interface Vlan1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan1, changed state to upSwitch(config-if)#ip address 192.168.1.168 255.255.255.0Switch(config-if)#exitSwitch(config)#int vlan 2%LINK-5-CHANGED: Interface Vlan2, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface Vlan2, changed state to upSwitch(config-if)#ip addSwitch(config-if)#ip address 192.168.2.168 255.255.255.0Switch(config-if)#%LINK-5-CHANGED: Interface FastEthernet0/3, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to up Switch(config-if)#exitSwitch(config)#int f0/3Switch(config-if)#no switchport%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to down %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/3, changed state to upSwitch(config-if)#Switch(config-if)#ip address 192.168.10.1 255.255.255.0Switch(config-if)#no shutSwitch(config-if)#exitSwitch(config)#ip routingSwitch(config-if)#exitSwitch(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.2Switch(config)#路由器的配置:Router>enRouter#confConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Router(config)#int f0/0Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/0, changed state to upRouter(config-if)#exitRouter(config)#int f0/1Router(config-if)#no shut%LINK-5-CHANGED: Interface FastEthernet0/1, changed state to up%LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/1, changed state to up Router(config-if)#exitRouter(config)#int f0/0Router(config-if)#no shutRouter(config-if)#exitRouter(config)#int f0/0.1Router(config-subif)#encapsulation dot1Q 1Router(config-subif)#ip address 192.168.3.168 255.255.255.0Router(config-subif)#exitRouter(config)#int f0/0.2Router(config-subif)#encapsulation dot1Q 2Router(config-subif)#ip addRouter(config-subif)#ip address 192.168.4.168 255.255.255.0Router(config-subif)#exitRouter(config)#ip route 0.0.0.0 0.0.0.0 192.168.10.1Router(config)#exit%SYS-5-CONFIG_I: Configured from console by consoleRouter#confConfiguring from terminal, memory, or network [terminal]? Enter configuration commands, one per line. End with CNTL/Z. Router(config)#int f0/1Router(config-if)#ip addRouter(config-if)#ip address 192.168.10.2 255.255.255.0 Router(config-if)#Welcome !!! 欢迎您的下载,资料仅供参考!。
三层交换机RIP动态路由实验⼀、实验⽬的1、掌握三层交换机之间通过RIP协议实现⽹段互通的配置⽅法。
2、理解动态实现⽅式与静态⽅式的不同⼆、应⽤环境当两台三层交换机级联时,为了保证每台交换机上所连接的⽹段可以和另⼀台交换机上连接的⽹段互相通信,使⽤RIP协议可以动态学习路由。
三、实验拓扑四、实验要求1、在交换机A和交换机B上分别划分基于端⼝的VLAN:交换机VLAN 端⼝成员交换机A101~8209~1610024交换机B301~8409~16101242、交换机A和B通过的24⼝级联。
3、配置交换机A和B各VLAN虚拟接⼝的IP地址分别如下表所⽰:VLAN10VLAN20VLAN30VLAN40VLAN100VLAN101192.168.10.1192.168.20.1192.168.30.1192.168.40.1192.168.100.1192.168.100.24、 PC1-PC4的⽹络设置为:设备IP地址gateway MaskPC1 192.168.10.101192.168.10.1255.255.255.0PC2 192.168.20.101192.168.20.1255.255.255.0PC3192.168.30.101192.168.30.1255.255.255.0PC4 192.168.40.101 192.168.40.1255.255.255.0五、实验步骤1、换分VLAN,给VLAN划分端⼝Switch>enableSwitch#configConfiguring from terminal, memory, or network [terminal]?Enter configuration commands, one per line. End with CNTL/Z.Switch(config)#hostname SwitchASwitchA(config)#vlan 100SwitchA(config-vlan)#exitSwitchA(config)#vlan 10SwitchA(config-vlan)#exitSwitchA(config)#vlan 20SwitchA(config-vlan)#exitSwitchA(config)#interface fastEthernet 0/24SwitchA(config-if)#switchport access vlan 100SwitchA(config)#interface range fastEthernet 0/1-10SwitchA(config-if-range)#switchport access vlan 10SwitchA(config-if-range)#interface range fastEthernet 0/11-20SwitchA(config-if-range)#switchport access vlan 20SwitchA(config-if-range)#SwitchA# 2、给划分的VLAN设置IP SwitchA(config)#interface vlan 100SwitchA(config-if)#ip address 192.168.100.1 255.255.255.0 SwitchA(config-if)#no shutdownSwitchA(config-if)#interface vlan 10SwitchA(config-if)#ip address 192.168.10.1 255.255.255.0 SwitchA(config-if)#no shutdownSwitchA(config-if)#interface vlan 20SwitchA(config-if)#ip address 192.168.20.1 255.255.255.0 SwitchA(config-if)#no shutdownSwitchA(config-if)#exit3、设置rip动态路由(本路由直达的⽹络地址)SwitchA(config)#ip routingSwitchA(config)#router ripSwitchA(config-router)#network 192.168.10.0SwitchA(config-router)#network 192.168.20.0SwitchA(config-router)#network 192.168.100.0 在特权模式下查看路由表ps:另⼀台交换机的配置与此相似。
《计算机网络》课程设计报告题目:三层交换机的RIP动态路由配置学院:商学院专业:信息管理与信息系统班级:信息101学号:*************名:***指导教师:***完成日期:2013-7-11目录设计任务概述 (3)系统分析 (4)总体设计 (6)详细设计 (7)根据拓扑连接线路 (7)设置PC机(以PC1为例) (7)划分交换机的vlan (8)配置交换机各vlan虚接口的IP地址 (10)检验个PC机间能否通信(以PC1为例) (13)启动RIP协议实现两个交换机之间的通信 (13)启动RIP协议之后各PC机之间的通信情况 (14)设计总结 (15)参考资料 (16)设计任务概述三层交换机的RIP动态路由配置目的:理解RIP协议,掌握三层交换机RIP动态路由的配置方法。
提示路由信息协议(RIP)协议是一种动态路由选择,它基于距离矢量算法(D-V),总是按最短的路由做出相同的选择。
这种协议的网络设备只关心自己周围的世界,只与自己相邻的路由器交换信息,范围限制在15跳(15度)之内,再远,它就不关心了。
RIP应用于OSI网络七层模型的网络层。
RIP动态路由协议是典型的距离矢量路由协议,交换机开启了RIP路由协议后,会对外发送RIP的广播报文,报文信息来自本地路由表,只有当对方设备也开启了RIP路由协议,两台设备才能相互学习,知道对方连接了什么网络,从而更新自身的路由表,实现信息的寻址和转发功能。
要求:使用RIP动态路由使不同网段的计算机能相互通信。
内容:添加四台计算机,分别更改标签为PC1至PC4;添加两台三层交换机3560,分别更改标签名为SA和SB;SA和SB上分别划分3个VLAN,划分情况如下表所示:交换机名VLAN编号端口范围IP地址SA 6 1--8 172.16.6.1/247 9--16 172.16.7.1/24100 24 172.16.100.1/24 SB 8 1--8 172.16.8.1/249 9--16 172.16.9.1/24100 24 172.16.100.1/24 根据拓扑图所示,交换机之间通过F0/24口相连,PC1、PC2分别连接SA的VLAN6端口和VLAN7端口,PC3、PC4分别连接SB的VLAN8和VLAN9端口,并根据拓扑图所示配置所有计算机的IP地址,子网掩码和网关;在两台交换机上配置RIP动态路由实现全网互通。
三层交换机与路由器动态路由rip配置某校园局域网由若干台交换机构成,现学校需要将校园园接入互联网,请做静态路由配置实现三层交换机通过SVI和路由器之间的互通.F0/20:192.168.20.1 F0/1:192.168.20.2F0/0:192.168.30.1Valn 20F0/10:192.168.10.1192.168.30.0/24 Valn 10IP地址:192.168.10.10掩码:255.255.255.0Switch>enSwitch#conf tSwitch(config)#ip routing(开启路由功能)Switch(config)#vlan 10Switch(config-vlan)#exitSwitch(config)#vlan 20Switch(config-vlan)#exitSwitch(config)#int f0/10(将端口分配给VLAN)Switch(config-if)#sw acc vlan 10Switch(config-if)#exitSwitch(config)#int f0/20(将端口分配给VLAN)Switch(config-if)#sw acc vlan 20Switch(config-if)#exit(配置三层交换机端口的路由功能)Switch(config)#int vlan 10Switch(config-if)#ip add 192.168.10.1 255.255.255.0 Switch(config-if)#no shutdownSwitch(config-if)#exitSwitch(config)#int vlan 20Switch(config-if)#ip add 192.168.20.1 255.255.255.0 Switch(config-if)#no shutdownSwitch(config-if)#exitSwitch(config)#router rip(配置动态路由rip协议) Switch(config-router)#network 192.168.10.0 Switch(config-router)#network 192.168.20.0 Switch(config-router)#end路由器配置:Router>enRouter#conf tRouter(config)#int f0/0(给端口分配IP地址)Router(config-if)#ip add 192.168.30.1 255.255.255.0 Router(config-if)#no shutdownRouter(config-if)#exitRouter(config-if)#int f0/1(给端口分配IP地址)Router(config-if)#ip add 192.168.20.2 255.255.255.0 Router(config-if)#no shutdownRouter(config-if)#exitSwitch(config)#router ripSwitch(config-router)#network 192.168.20.0Switch(config-router)#network 192.168.30.0 Switch(config-router)#end。
本文整理于网络,仅供阅读参考
三层交换机配置rip路由的方法和步骤
三层交换机配置rip路由的方法和步骤如下建立建立packet tracer拓扑图
在三层交换机上划分vlan10和vlan20,其中vlan10用于连接校园网主机,vlan20用于连接r1
路由器之间通过v.35电缆通过串口连接,dce端连接在r1上,配置其时钟频率64000。
主机和交换机通过直连线,主机与路由器通过交叉线连接。
在s3560上配置ripv2路由协议。
在路由器r1、r2上配置ripv2路由协议。
将pc1、pc2主机默认网关设置为与直连网路设备接口ip地址。
pc1
ip: 192.168.1.2
submask: 255.255.255.0
gateway: 192.168.1.1
pc2
ip: 192.168.2.2
submask: 255.255.255.0
gateway: 192.168.2.1
验证pc1、pc2主机之间可以互相同信;。