cisco Switching-三层交换配置RIP动态路由

作者&投稿:魏泊 (若有异议请与网页底部的电邮联系)
~ 在三层交换机上配置RIP路由协议,以三层交换机代替路由器。

通过RIP实现路由间通信

动态路由协议配置灵活,路由器会发送自身的路由信息给其他路由器,同时也会接收其他路由器发来的路由信息建立自己的路由表。这样在路由器上就不必像静态路由那样为每个目标地址都配置路由,因为路由器可以通过协议学习这些路由。网络拓扑改变,路由信息也会自动更新,无需管理员干预。

Switch(config)#interface f0/6

Switch(config-if)#no switchport

Switch(config-if)#ip address 192.168.6.1 255.255.255.0

Switch(config-if)#no shutdown

RIP路由协议在配置network时,只需要配置该路由器所直连的主类网络,不与该路由器直连的网络不需要包含在network中。

RIP默认工作在第一版本下,但是RIP-V1是有类路由协议,而且通过广播的方式进行路由更新,无论是功能上还是效率上都有一些缺陷,这些缺陷RIP-V2可以弥补。在使用时建议采用RIP-V2而不是RIP-V1。

tarenasw-3L(config)#router rip

tarenasw-3L(config-router)#version 2

tarenasw-3L(config-router)#no auto-summary

tarenasw-3L(config-router)#network 192.168.1.0

tarenasw-3L(config-router)#network 192.168.2.0

tarenasw-3L(config-router)#network 192.168.3.0

tarenasw-3L(config-router)#network 192.168.4.0

tarenasw-3L(config-router)#network 192.168.5.0

tarenasw-3L(config-router)#network 192.168.6.0

tarena-router(config)#router rip

tarena-router(config-router)#version 2

tarenasw-3L(config-router)#no auto-summary

tarena-router(config-router)#network 192.168.6.0

tarena-router(config-router)#network 192.168.7.0

注意以R开头的路由,这些路由表示通过RIP协议从其他运行RIP的路由器学习过来的路由。每条路由都写明了目标网络、下一跳IP地址以及从自己哪个端口发出去。

tarenasw-3L#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

C 192.168.1.0/24 is directly connected, Vlan1

C 192.168.2.0/24 is directly connected, Vlan2

C 192.168.3.0/24 is directly connected, Vlan3

C 192.168.4.0/24 is directly connected, Vlan4

C 192.168.5.0/24 is directly connected, Vlan5

C 192.168.6.0/24 is directly connected, FastEthernet0/6

R 192.168.7.0/24 [120/1] via 192.168.6.2, 00:00:12, FastEthernet0/6 0

Router#show ip route

Codes: C - connected, S - static, I - IGRP, R - RIP, M - mobile, B - BGP

D - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter area

N1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2

E1 - OSPF external type 1, E2 - OSPF external type 2, E - EGP

i - IS-IS, L1 - IS-IS level-1, L2 - IS-IS level-2, ia - IS-IS inter area

* - candidate default, U - per-user static route, o - ODR

P - periodic downloaded static route

Gateway of last resort is not set

R 192.168.1.0/24 [120/1] via 192.168.6.1, 00:00:25, FastEthernet0/0

R 192.168.2.0/24 [120/1] via 192.168.6.1, 00:00:25, FastEthernet0/0

R 192.168.3.0/24 [120/1] via 192.168.6.1, 00:00:25, FastEthernet0/0

R 192.168.4.0/24 [120/1] via 192.168.6.1, 00:00:25, FastEthernet0/0

R 192.168.5.0/24 [120/1] via 192.168.6.1, 00:00:25, FastEthernet0/0

C 192.168.6.0/24 is directly connected, FastEthernet0/0

C 192.168.7.0/24 is directly connected, FastEthernet0/1

5.在PC上测试到五个VLAN中主机的通信

PC>ipconfig

FastEthernet0 Connection:(default port)

Link-local IPv6 Address.........: FE80::2E0:8FFF:FE14:BB43

IP Address......................: 192.168.7.1

Subnet Mask.....................: 255.255.255.0

Default Gateway.................: 192.168.7.254

SERVER>ping 192.168.1.10

Pinging 192.168.1.10 with 32 bytes of data:

Reply from 192.168.1.1: bytes=32 time=0ms TTL=126

Reply from 192.168.1.1: bytes=32 time=0ms TTL=126

Reply from 192.168.1.1: bytes=32 time=0ms TTL=126

Reply from 192.168.1.1: bytes=32 time=1ms TTL=126

Ping statistics for 192.168.1.1:

Packets: Sent = 4, Received = 3, Lost = 1 (25% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

PC >ping 192.168.2.1

Pinging 192.168.2.10 with 32 bytes of data:

Reply from 192.168.2.1: bytes=32 time=0ms TTL=126

Reply from 192.168.2.1: bytes=32 time=0ms TTL=126

Reply from 192.168.2.1: bytes=32 time=0ms TTL=126

Reply from 192.168.2.1: bytes=32 time=0ms TTL=126

Ping statistics for 192.168.2.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 0ms, Average = 0ms

PC >ping 192.168.3.1

Pinging 192.168.3.10 with 32 bytes of data:

Reply from 192.168.3.1: bytes=32 time=1ms TTL=126

Reply from 192.168.3.1: bytes=32 time=0ms TTL=126

Reply from 192.168.3.1: bytes=32 time=0ms TTL=126

Reply from 192.168.3.1: bytes=32 time=0ms TTL=126

Ping statistics for 192.168.3.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

PC >

31% /misc/nfsdir SERVER>

SERVER>ping 192.168.3.10

Pinging 192.168.3.10 with 32 bytes of data:

Reply from 192.168.4.1: bytes=32 time=1ms TTL=126

Reply from 192.168.4.1: bytes=32 time=0ms TTL=126

Reply from 192.168.4.1: bytes=32 time=0ms TTL=126

Reply from 192.168.4.1: bytes=32 time=0ms TTL=126

Ping statistics for 192.168.4.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

31% /misc/nfsdir​

SERVER>ping 192.168.5.1

Pinging 192.168.5.1 with 32 bytes of data:

Reply from 192.168.5.1: bytes=32 time=1ms TTL=126

Reply from 192.168.5.1: bytes=32 time=0ms TTL=126

Reply from 192.168.5.1: bytes=32 time=0ms TTL=126

Reply from 192.168.5.1: bytes=32 time=0ms TTL=126

Ping statistics for 192.168.5.1:

Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),

Approximate round trip times in milli-seconds:

Minimum = 0ms, Maximum = 1ms, Average = 0ms

31% /misc/nfsdir


上思县19612369303: H3C有哪些认证,每个认证与CISCO的对应级别? -
但溥依路: H3C认证分为:技术认证、专题认证、销售认证 1、技术认证有H3CNE、H3CSE、H3CTE、H3CIE,分为路由和交换、安全、语音、视讯、视频监控、存储,考路由交换方向的居多,路由交换技术是主流技术,是网络的主干. 2、专题认证有...

上思县19612369303: Cisco路由器防止DDoS攻击需要做那些防范设置(具体命令)?
但溥依路: Cisco路由器上防止分布式拒绝服务(DDoS)攻击的一些建议 1、使用 ip verfy unicast reverse-path 网络接口命令 这个功能检查每一个经过路由器的数据包.在路由器的CEF(Cisco Express Forwarding)表该数据包所到达网络接口的所有路由项...

上思县19612369303: cisco路由器备份链路设置 -
但溥依路: 备份线路的设置一、 主链路Down之后,启用ISDN线路1、 设置备份线路(在主接口的接口模式下):Router(config-if)# backup interface2、 设置备份延迟(在主接口的接口模式下):Router(config-if)# backup delay {enable-delay|never} ...

上思县19612369303: Cisco路由器上防止DDOS的一些建议是什么?
但溥依路: 、使用 ip verfy unicast reverse-path 网络接口命令 这个功能检查每一个经过路由器的数据包.在路由器的CEF(Cisco Express Forwarding)表该数据包所到达网络接口的所有...

上思县19612369303: cisco路由器怎么配置PVC虚拟链路 -
但溥依路: 以帧中继为例:R2——R1——R3 frame-relay switch(R1)上:R1(config)#frame-relay switching R1(config)#int S1/0 R1(config-if)#no shutdown R1(config-if)#encapsulation fram-relay [cisco|ietf] // 这里有两种封装格式 R1(config-if)#frame-relay intf-...

上思县19612369303: 学习完CCNP是学习CCSP好,还是CCIE的路由交换? -
但溥依路: 首先你要知道CISCO认证分三个段 CCNA--(Cisco Certified Network Associate)Cisco认证网络支持工程师 CCNP--(Cisco Certified Network Perfessional)Cisco认证资深网络支持工程师 CCIE--(Cisco Certified Internetwork Expert)Cisco认证互联网...

上思县19612369303: 我已经学完了思科的ccnp路由与交换方向基本已经掌握.不过我想考ccie安全方向 -
但溥依路: 朋友,我目前正在培训中心学习路由交换CCIE ,我也是从CCNP学习过来的,不知你是否清楚,学习CCNP和CCIE机架使用方式有差别,CCIE后期的版本训练必须专门安排机时.如果不是CCIE学员是没有这个机会的.所以你只是看得到设备...

上思县19612369303: CCNA证书是什么? -
但溥依路: CCNA是思科认证方面最基础的一个网络助理工程师证书,Associate (助理工程师):思科职业认证的初级认证,是网络职业认证的第一步,这是一个助理级的网络认证,包括CCNA和CCDA两类,获得CCNA或CCDA认证,能够证明你具备网...

上思县19612369303: 什么是思科证?什么是华为证?
但溥依路:Cisco(思科)认证是互联网界有最高声望的网络技能认证,是各大IT企业招聘员工的优先选择条件;其拥有者在全球各地享有相关学业免学分的待遇; 在北美一些国家可以作为外来移民技术评估标准.其中CCIE更是互联网界的权威标志. ...

上思县19612369303: 请问思科6500系列fabric switching - mode 的区别 -
但溥依路: http://www.cisco.com/cisco/web/support/CN/111/1110/1110479_183.html#SFM_modes 1、bus,直通模式,安装了SFM 和不支持矩阵的模块(例如,WS-X6348-RJ-45 或 WS-X6416-GBIC) 2、compact,紧凑模式,如果机箱仅包含支持交换矩阵的模块. 3、truncated,截断模式,如果交换机包含支持矩阵的模块和不支持矩阵的模块. 还有一种,dCEF,分布式 Cisco 快速转发模式,支持矩阵且安装了 Distributed Feature Card (DFC) 的模块之间.

本站内容来自于网友发表,不代表本站立场,仅表示其个人看法,不对其真实性、正确性、有效性作任何的担保
相关事宜请发邮件给我们
© 星空见康网