配置路由器动态路由rip
路由器设置和无线WIFI设置可能需要您进行一些高级设置和配置,本文配置路由器动态路由rip将为您提供详细的操作步骤和技巧。
本文目录一览:
光猫动态路由配置rip要打开吗
光猫动态路由配置rip要打开。光猫动态路由配置要关闭接口再打开rip。创建RIP路由进程、创建,路由进程:路由器要运行RIP路由协议,需要创建RIP路由进程,并定义与RIP路由进程关联的网络。
eNSP模拟实验-动态路由RIP配置
Routing Information Protocol,路由信息协议。两个网段中的两台电脑能相互访问,那么需要在每台路由器上做静态路由来实现,但是做静态路由需要知道下一跳的地址。在小型的网络中,我们用rip协议来实现(RIP协议通常应用在小型网络,用于发现和生成路由信息),只需要知道本台路由器上接口的网段的地址就可以了。
1、按照图示的IP地址来配置PC1和PC2,Z注意网关为连接路由器接口IP。
IP:192.68.1.2 IP:192.68.3.2
netmask:255.255.255.0 netmask:255.255.255.0
gateway:192.168.1.1 gateway:192.168.3.1
2、AR1配置
配置接口的ip地址:
Huaweisys
[Huawei]int gi 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.1 24
[Huawei-GigabitEthernet0/0/0]int gi 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.1.1 24
[Huawei-GigabitEthernet0/0/1]q
配置rip协议:
[Huawei]rip 1
[Huawei-rip-1]version 2 #可以选择版本2
[Huawei-rip-1]network 192.168.10.0
[Huawei-rip-1]network 192.168.1.0
[Huawei-rip-1]q
3、AR2配置
配置接口的ip地址:
Huaweisys
[Huawei]int gi 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.10.2 24
[Huawei-GigabitEthernet0/0/0]int gi 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.12.1 24
[Huawei-GigabitEthernet0/0/1]q
配置rip协议:
[Huawei]rip 1
[Huawei-rip-1]version 2 #可以选择版本2
[Huawei-rip-1]network 192.168.10.0
[Huawei-rip-1]network 192.168.12.0
[Huawei-rip-1]q
4、AR3配置
配置接口的ip地址:
Huaweisys
[Huawei]int gi 0/0/0
[Huawei-GigabitEthernet0/0/0]ip address 192.168.12.2 24
[Huawei-GigabitEthernet0/0/0]int gi 0/0/1
[Huawei-GigabitEthernet0/0/1]ip address 192.168.3.1 24
[Huawei-GigabitEthernet0/0/1]q
配置rip协议:
[Huawei]rip 1
[Huawei-rip-1]version 2 #可以选择版本2
[Huawei-rip-1]network 192.168.13.0
[Huawei-rip-1]network 192.168.3.0
[Huawei-rip-1]q
5、路由器命令查看配置的信息
查看路由表:display ip routing-table protocol rip
查看RIP配置:display rip 1 route
命令可以看到nexthop下一跳地址。
6、ping测试
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中主机的通信
PCipconfig
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
SERVERping 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
SERVERping 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
SERVERping 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
保持路由器和WIFI网络的最新更新,可以使您的网络更快、更稳定,并防止网络安全问题的出现。