华为RIP路由配置教程有哪些命令.doc
- 格式:doc
- 大小:35.00 KB
- 文档页数:12
华为路由器命令大全华为路由器命令大全一、基本配置命令1.1 系统设置命令- system-view:进入系统视图- sysname [名称]:设置设备名称- user-interface vty 0 4:进入虚拟终端页面- authentication-mode aaa:设置AAA身份验证方式- acl number [名称]:创建ACL组并指定编号和名称- service-type ssh telnet http:设置允许的服务类型1.2 接口配置命令- interface gigabitethernet 0/0/0:进入GigabitEthernet 接口0/0/0页面- switchport mode access:设置接口为访问模式- switchport access vlan [vlan号]:设置访问VLAN号- shutdown:关闭接口- undo shutdown:开启接口- description [描述信息]:给接口添加描述信息- ip address [IP地质] [子网掩码]:配置接口IP地质和子网掩码二、路由配置命令2.1 静态路由命令- ip route-static [目的网络] [目的子网掩码] [下一跳地质]:配置静态路由- undo ip route-static [目的网络] [目的子网掩码] [下一跳地质]:删除静态路由2.2 动态路由命令- bgp [自治系统号]:进入BGP视图- network [网络地质] [子网掩码]:将网络加入BGP路由表- peer [对端地质] as-number [对端AS号]:指定对端地质和AS号- undo peer [对端地质] as-number [对端AS号]:删除对端地质和AS号三、ACL配置命令3.1 标准ACL命令- acl number [名称]:创建标准ACL组并指定编号和名称- rule [规则编号] permit----deny [源地质] [源地质掩码]:设置允许或拒绝的源地质- undo rule [规则编号] permit----deny [源地质] [源地质掩码]:删除源地质规则3.2 扩展ACL命令- acl number [名称]:创建扩展ACL组并指定编号和名称- rule [规则编号] permit----deny [协议] [源地质] [源地质掩码] [目的地质] [目的地质掩码] [源端口号] [源端口号范围] [目的端口号] [目的端口号范围]:设置允许或拒绝的规则- undo rule [规则编号] permit----deny [协议] [源地质] [源地质掩码] [目的地质] [目的地质掩码] [源端口号] [源端口号范围] [目的端口号] [目的端口号范围]:删除规则附件:- 附件1:华为路由器常用命令速查表- 附件2:华为路由器配置示例文件法律名词及注释:- AAA:认证、授权和计费(Authentication, Authorization, and Accounting)的缩写,用于提供用户身份验证、访问控制和计费功能。
RIP路由协议命令三层交换机switch配置:Router(config)#hostname switch-L3 //对路由器重新命名switch-L3 (config)#interface Fastethenet0/1 进入F0/0口的配置模式switch-L3(config-i f)#ip address 192.168.1.1255.255.255.252 //给F0/0口固定IPswitch-L3(config-if)#no shutdownswitch-L3(config-if) #exit //退出F0/0配置模式switch-L3 (config)#vlan 10 //进入vlan 10dua10端口配置模式switch-L3(config-if) #interface vlan 10switch-L3(config-if)#ip address 172.16.1.1255.255.255.0 //给S0/2固定I Pswitch-L3(config-if)#no shutdownswitch-L3(config-if) #exitswitch-L3(config) # interface Fastethenet0/2switch-L3(config-if) #switch access vlan 10switch-L3(config-if)#no shutdownRouter-1702(config-s0/2)#exit(2)路由器router-a的基本配置Router#configure termina lRouter(config)#hostname router-aRouter(config)# interface Fastethenet0/1Router(config-if)# ip address 192.168.1.1 255.255.255.252 Router(config-if)# no shutdownRouter(config-if)#exitRouter(config)# interface Fastethenet0/1Router(config-if)# ip address 192.168.1.1 255.255.255.252 Router(config-if)# no shutdownRouter(config-if)#exit(2)路由器router-b的基本配置Router#configure termina lRouter(config)#hostname router-bRouter(config)# interface Fastethenet0/0Router(config-if)# ip address 192.168.0.2 255.255.255.252 Router(config-if)# no shutdownRouter(config-if)#exitRouter(config)# interface Fastethenet0/1Router(config-if)# ip address 10.10.1.1 255.255.255.0Router(config-if)# no shutdownRouter(config-if)#exit(4)在三层交换机switch-L3上配置RIP路由协议switch-L3 (config)#ip routingswitch-L3 (config)#router ripswitch-L3 (config-router)#network 192.168.1.0switch-L3 (config-router)#network 172.16.1.0switch-L3 (config-router)#version 2(设置rip路由协议的版本为rip v2) switch-L3 (config-router)#endswitch-L3 #write m emory(5)在三层交换机switch-A上配置RIP路由协议switch-L3 (config)#rou ter ripswitch-L3 (config-rout er)#network 192.168.0.0switch-L3 (config-router)#network 192.168.1.0switch-L3 (config-router)#version 2(设置rip路由协议的版本为rip v2) switch-L3 (config-router)#endswitch-L3 #write m emory(5)在三层交换机switch-B上配置RIP路由协议switch-L3 (config)#rou ter ripswitch-L3 (config-rout er)#network 192.168.0.0switch-L3 (config-router)#network 10.10.1.0switch-L3 (config-router)#version 2(设置rip路由协议的版本为rip v2) switch-L3 (config-router)#endswitch-L3 #write m emory。
rip命令使用方法
RIP是一种常用的路由协议,用于在路由器之间交换路由信息。
以下是RIP命令的使用方法:
1.启动RIP进程:在路由器上输入“router rip”命令,进入RIP配置模式。
在该模式下,可以配置RIP的参数和接口。
2.指定版本:使用“version”命令来指定RIP的版本。
RIP有两个版本:RIPv1和RIPv2。
使用“version {1 | 2}”命令来选择版本。
如果不指定版本,则默认使用RIPv2。
3.配置接口:使用“network”命令来指定要启用RIP的接口。
例如,“network 192.168.0.0”将启用所有在192.168.0.0网段上的接口。
4.启动RIP进程:在每个接口上输入“interface {interface_name}”命令,进入接口配置模式。
在该模式下,使用“rip”命令来启动RIP进程。
5.显示路由表:使用“show ip route”命令来显示路由表。
该命令将显示所有通过RIP学习到的路由信息。
6.调试RIP:使用“debug ip rip”命令来调试RIP。
该命令将显示RIP的详细调试信息,包括路由更新、路由接收和路由通告等。
7.保存配置:在完成RIP配置后,使用“save”命令来保存配置。
该命令将把配置保存到路由器的配置文件中。
以上是RIP命令的基本使用方法,具体命令可能会因不同的操作系统和路由器品牌而有所不同。
建议参考具体设备的文档或手册来获取准确的命令和配置方法。
华为技术命令(四)RIP配置命令配置命令【命令】checkzeroundo checkzero【视图】RIP 视图【参数】无【描述】checkzero 命令用来配置对RIP-1 报文的零域进行检查,undo checkzero命令用来取消对RIP-1 报文进行零域检查。
缺省情况下,对RIP-1 报文缺省进行零域检查。
根据协议(RFC1058)规定RIP-1 的报文中有些区域必须为零,称之为零域(zero field)。
可以使用checkzero 命令来启动和禁止对RIP-1 报文的查零*作。
由于RIP-2 的报文没有零域,所以此命令对RIP-2 不起作用。
【举例】# 配置RIP-1 对报文不进行零域检查。
Quidway-rip] undo checkzero【命令】debugging rip { packet | receive | send }【视图】所有视图【参数】packet:打开RIP 报文调试信息开关。
receive:打开RIP 接收报文情况调试开关。
send:打开RIP 发送报文情况调试开关。
【描述】debugging rip 命令用来打开RIP 调试信息开关,undo debugging rip 命令用来关闭RIP 调试信息开关。
该命令可使用户可了解当前各接口收发RIP 配置报文的情况.【命令】default-cost costundo default-cost【视图】RIP 视图【参数】cost:如果在RIP 引入其他协议(例如OSPF)发现的路由时,如果没有设置路由的花费,则命令default-cost 所带参数cost 值将作为这些路由的花费,取值范围为1~16. 【描述】default-cost 命令用来设置RIP 引入其它协议路由的缺省路由权,undo default-cost 命令用来恢复RIP 在引入其它协议路由时路由权的缺省值。
缺省情况下,RIP 引入其它协议路由的缺省路由权值为16。
华为路由器基本配置命令华为路由器基本配置命令I. 登录华为路由器1. 打开浏览器,输入华为路由器的管理地址:,并按下Enter 键。
2. 在登录页面中,输入用户名和密码,登录按钮。
II. 网络设置1. 在菜单栏中选择“网络设置”选项。
2. 在网络设置页面中,配置路由器的IP地址、子网掩码、网关、DHCP等信息。
III. WLAN设置1. 在菜单栏中选择“WLAN设置”选项。
2. 在WLAN设置页面中,配置无线网络的SSID、加密方式、密码等参数。
IV. DHCP设置1. 在菜单栏中选择“DHCP设置”选项。
2. 在DHCP设置页面中,配置DHCP服务器的起始IP地址、终止IP地址、租期等参数。
V. 防火墙设置1. 在菜单栏中选择“防火墙设置”选项。
2. 在防火墙设置页面中,配置入站规则、出站规则、端口转发等防火墙规则。
VI. 路由设置1. 在菜单栏中选择“路由设置”选项。
2. 在路由设置页面中,配置静态路由、动态路由等路由表信息。
VII. 安全设置1. 在菜单栏中选择“安全设置”选项。
2. 在安全设置页面中,配置访问控制、端口映射、VPN等安全策略。
附件:本文档无附件。
法律名词及注释:1. IP地址:Internet Protocol Address,互联网协议地址的简称,是用于识别和定位计算机设备的数字标识。
2. 子网掩码:Subnet Mask,用于划分IP地址中网络地址和主机地址的一个掩码。
3. 网关:Gateway,是一个网络通信设备,用于连接不同网络之间的数据通信。
4. DHCP:Dynamic Host Configuration Protocol,动态主机配置协议,用于自动分配IP地址和其他网络配置参数。
5. WLAN:Wireless Local Area Network,无线局域网,用于在局域网范围内实现无线数据通信。
6. SSID:Service Set Identifier,服务集标识,是无线网络的名称。
华为路由器RIP简单配置步骤路由器系统构成了基于TCP/IP 的国际互联网络Internet 的主体脉络,也可以说,路由器构成了Internet的骨架。
这篇文章主要介绍了华为路由器RIP简单配置步骤,需要的朋友可以参考下具体介绍session 1 rip协议rip是一种动态路由协议,使用跳数作为度量标准,是距离矢量路由协议,是一种谣传式的路由协议。
rip路由协议目前有2个版本,version 1 使用广播收发rip报文,并且不支持无类路由(更新报文中不带子网掩码)。
version 2 使用组播或者广播(可以修改,默认组播)收发rip报文,支持无类路由(更新报文中带子网掩码)rip宣告网络只支持主类网络。
rip是有进程之分的,可以同时运行多个rip进程,但是进程之间相互独立,如果要不同进程宣告网络,那么就必须在不同进程中相互重分发路由。
rip的路由防环机制有:1、最大跳数:当一条路由到达16跳时,该路由失效,rip最大为16跳,也就是说最多可以经过16台设备,限制了网络的大小。
2、水平分割:单向宣告网络,从一个接口收到的路由不会再从该接口宣告出去。
3、毒性逆转:优化水平分割,从一个接口收到的路由会再从该接口宣告出去,但是该路由的跳数会自动设为16跳不可达。
4、保持计时器:,收到的不可达路由信息被抑制的时间,默认180s,180s内路由器不会接受和发送该抑制路由的更新信息,若180s后没有更优的路由,该抑制路由将被删除。
session 2 rip的配置一、rip的认证[Huawei-GigabitEthernet0/0/0]rip authentication-mode md5 usual cipher 123 在接口上做rip认证,MD5密文通用格式的加密,密码123(两端都需要配置)二、rip报文的单播发送和更新源检查1、单播发送rip报文,应用于NBMA非广播多路网络,如framerelay、ATM、X.25,解决了这些网络无法收发组播和广播报文的问题[Huawei]rip 1[Huawei-rip-1]peer 12.1.1.2 手动指定单播发送的rip邻居[Huawei-rip-1]quit2、rip检查更新源会检测对端接口是否和本端接口在同一个网段,在P2P网络中链路的两端ip地址属于不同的网段,必须取消报文源检测才能建立邻居关系[Huawei]rip 1[Huawei-rip-1]undo verify-source 关闭了更新源检测,默认情况下已开启[Huawei-rip-1]quit三、rip的发布聚合路由[Huawei]interface g0/0/0[Huawei-GigabitEthernet0/0/1]rip summary-address 192.168.0.0 255.255.0.0 avoid-feedback 向外宣告一条聚合路由,并且禁止从该接口学习到相同的聚合路由,以防止产生路由环路四、路由防环命令1、水平分割,开启水平分割功能,默认开启。
华为交换机Ripvl 协议的配置rip (路由信息协议)1、按照上图给路由器个端口及PC 机配置ip 地址 Arl:<Huawei>system-view[Huawei]undoinfo-centerenable〃禁止显示信息提示 [Huawei]intg0∕0∕l[Huawei-GigabitEthernetO∕O∕l]ipadd192.168.1.124[Huawei-GigabitEthernetO∕O∕l]quit[Huawei]intg0∕0∕0[Huawei-GigabitEthernetO∕O∕O]ipadd192.168.2.124[Huawei-GigabitEthernetO∕O∕O]quit[Huawei]disiprou[Huawei]disiprouting-table 〃查看路由表,只有直连路由,没有3.0段的路由 Ar2:<Huawei>sy[Huawei]undoinfo-centerenable[Huawei]intg0∕0∕0[Huawei-GigabitEthernetO∕O∕O]ipadd192.168.2.224[Huawei-GigabitEthernetO∕O∕O]quit[Huawei]intgO/O/1[Huawei-GigabitEthernetO∕O∕l]ipadd192.168.3.124[Huawei-GigabitEthernetO∕O∕l]quit[Huawei][Huawei]disiprouting-table 〃查看路由表,只有直连路由,没有1.0段的路由 2、配置rip 路由协议Arl:[Huawei]rip1 〃启用rip 协议,进程号为1[Huawei-rip-l]network192.168.1.0 〃向直连网段1.0进行宣告[Huawei-rip-l]network192.168.2.0〃向直连网段2.0进行宣告 192.168.2.2 GECWOAR A 192.168.3.1[Huawei]disiprouting-table〃查看路由表Ar2:[Huawei]rip1[Huawei-rip-l]network192.168.2.0[Huawei-rip-1]network192.168.3.0[Huawei-rip-l]quit[Huawei]disiprouting-table 〃查看路由表,已经生成了Lo段的rip路由或者[Huawei]disiprouting-tableprotocolrip 〃只看生成的rip路由3、用PC验证WPel 一二D I x_ S⅜W≡ no-ri 组第UDP发包工具串口40.00%packetlossround-tripmin∕avg/max=0/21/31msPOpinq192.168.3.2Ping192.168.3From192∙168.3From192.168.3From192.168.3From192.168.3From192.168.3---- 192.16θ.3.2pingstatistics -------------------------------5packet(s)transmitted5packet(s)received0.00%packetlossround-tripzαxn∕avg∕max=15/15/16msPO。
RIP路由配置1.在R1、R2、R3上配置ip地址Router#enRouter#conf tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#line con 0Router(config-line)#exec-timeout 0 0Router(config-line)#logg syncRouter(config-line)#exitRouter(config)#no ip domain-lookupRouter(config)#hostname R1R1(config)#int lo 0R1(config-if)#ip add 192.168.1.1 255.255.255.0R1(config-if)#ip add 192.168.1.2 255.255.255.0 secondaryR1(config-if)#ip add 192.168.1.3 255.255.255.0 secondaryR1(config-if)#no shutR1(config-if)#exitR1(config)#int s0/0R1(config-if)#ip add 12.1.1.1 255.255.255.0R1(config-if)#no shutR1(config-if)#*Mar 1 00:03:32.551: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up*Mar 1 00:03:33.551: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upRouter>enRouter#confi tEnter configuration commands, one per line. End with CNTL/Z.Router(config)#line con 0Router(config-line)#exec-timeout 0 0Router(config-line)#logg syncRouter(config-line)#exitRouter(config)#no ip domain-lookupRouter(config)#hostname R2R2(config)#R2(config)#int s0/0R2(config-if)#ip add 12.1.1.2 255.255.255.0R2(config-if)#no shutR2(config-if)#exi*Mar 1 00:15:12.559: %LINK-3-UPDOWN: Interface Serial0/0, changed state to up*Mar 1 00:15:13.559: %LINEPROTO-5-UPDOWN: Line protocol on Interface Serial0/0, changed state to upR2(config-if)#exitR2(config)#int s0/1R2(config-if)#ip add 23.1.1.2 255.255.255.0R2(config-if)#no shutRouter(config)#line con 0Router(config-line)#exec-timeout 0 0Router(config-line)#logg syncRouter(config-line)#exitRouter(config)#no ip domain-lookupRouter(config)#hostname R3R3(config)#int loopback0R3(config-if)#ip add 172.16.1.1 255.255.255.0R3(config-if)#ip add 172.16.1.2 255.255.255.0 secondaryR3(config-if)#ip add 172.16.1.3 255.255.255.0 secondaryR3(config-if)#no shutR3(config-if)#exitR3(config)#int s0/1R3(config-if)#ip add 23.1.1.3 255.255.255.0R3(config-if)#no shut2.配置动态路由RipR1(config)#router ripR1(config-router)#version 1R1(config-router)#network 12.1.1.0R1(config-router)#network192.168.1.0R2(config)#router ripR2(config-router)#version 1R2(config-router)#network 12.1.1.0R2(config-router)#network 23.1.1.0R3(config)#router ripR3(config-router)#version 1R3(config-router)#network 23.1.1.0R3(config-router)#network 172.16.1.3. 实验调试R1# show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not setR 23.0.0.0/8 [120/1] via 12.1.1.2, 00:00:28, Serial0/0R 172.16.0.0/16 [120/2] via 12.1.1.2, 00:00:28, Serial0/012.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial0/0C 192.168.1.0/24 is directly connected, Loopback0R2#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial0/1R 172.16.0.0/16 [120/1] via 23.1.1.3, 00:00:24, Serial0/112.0.0.0/24 is subnetted, 1 subnetsC 12.1.1.0 is directly connected, Serial0/0R 192.168.1.0/24 [120/1] via 12.1.1.1, 00:00:22, Serial0/0R3#show ip routeCodes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set23.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial0/1172.16.0.0/24 is subnetted, 1 subnetsC 172.16.1.0 is directly connected, Loopback0R 12.0.0.0/8 [120/1] via 23.1.1.2, 00:00:16, Serial0/1R 192.168.1.0/24 [120/2] via 23.1.1.2, 00:00:16, Serial0/1R1#ping 23.1.1.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 23.1.1.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 136/152/188 ms R1#ping 172.16.1.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.1.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 212/252/276 ms R1#R2#ping 172.16.1.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 172.16.1.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 92/115/152 ms R2#ping 192.168.1.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 112/131/168 ms R2#R3#ping 12.1.1.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 12.1.1.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 116/136/168 ms R3#ping 192.168.1.0Type escape sequence to abort.Sending 5, 100-byte ICMP Echos to 192.168.1.0, timeout is 2 seconds:!!!!!Success rate is 100 percent (5/5), round-trip min/avg/max = 196/234/292 ms R3#Routing Protocol is "rip"Sending updates every 30 seconds, next due in 25 secondsInvalid after 180 seconds, hold down 180, flushed after 240Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setRedistributing: ripDefault version control: send version 1, receive version 1Interface Send Recv Triggered RIP Key-chainSerial0/1 1 1Loopback0 1 1Automatic network summarization is in effectMaximum path: 4Routing for Networks:23.0.0.0172.16.0.0Routing Information Sources:Gateway Distance Last Update23.1.1.2 120 00:00:22Distance: (default is 120)R3#debug ip rip eventsRIP event debugging is onR3#*Mar 1 00:36:50.811: RIP: sending v1 update to 255.255.255.255 via Serial0/1 (23.1.1.3)*Mar 1 00:36:50.811: RIP: Update contains 1 routes*Mar 1 00:36:50.811: RIP: Update queued*Mar 1 00:36:50.811: RIP: Update sent via Serial0/1R3#*Mar 1 00:37:00.079: RIP: sending v1 update to 255.255.255.255 via Loopback0 (172.16.1.1) *Mar 1 00:37:00.079: RIP: Update contains 3 routes*Mar 1 00:37:00.079: RIP: Update queued*Mar 1 00:37:00.079: RIP: Update sent via Loopback0*Mar 1 00:37:00.495: RIP: received v1 update from 23.1.1.2 on Serial0/1*Mar 1 00:37:00.495: RIP: Update contains 2 routesR3#show ip eigrp neighborsIP-EIGRP neighbors for process 1H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num 0 23.1.1.2 Se0/1 12 00:13:01 136 816 0 5Codes: C - connected, S - static, R - RIP, M - mobile, B - BGPD - EIGRP, EX - EIGRP external, O - OSPF, IA - OSPF inter areaN1 - OSPF NSSA external type 1, N2 - OSPF NSSA external type 2E1 - OSPF external type 1, E2 - OSPF external type 2i - IS-IS, su - IS-IS summary, L1 - IS-IS level-1, L2 - IS-IS level-2ia - IS-IS inter area, * - candidate default, U - per-user static routeo - ODR, P - periodic downloaded static routeGateway of last resort is not set1.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 [90/2809856] via 23.1.1.2, 00:08:35, Serial0/13.0.0.0/24 is subnetted, 1 subnetsC 3.3.3.0 is directly connected, Loopback023.0.0.0/24 is subnetted, 1 subnetsC 23.1.1.0 is directly connected, Serial0/112.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 [90/2681856] via 23.1.1.2, 00:08:35, Serial0/1R3#R3#show ip eigrp neighborsIP-EIGRP neighbors for process 1H Address Interface Hold Uptime SRTT RTO Q Seq(sec) (ms) Cnt Num 0 23.1.1.2 Se0/1 12 00:13:01 136 816 0 5R3#R3#show ip route eigrp1.0.0.0/24 is subnetted, 1 subnetsD 1.1.1.0 [90/2809856] via 23.1.1.2, 00:13:28, Serial0/112.0.0.0/24 is subnetted, 1 subnetsD 12.1.1.0 [90/2681856] via 23.1.1.2, 00:13:28, Serial0/1R3#show ip proRouting Protocol is "eigrp 1"Outgoing update filter list for all interfaces is not setIncoming update filter list for all interfaces is not setDefault networks flagged in outgoing updatesDefault networks accepted from incoming updatesEIGRP metric weight K1=1, K2=0, K3=1, K4=0, K5=0EIGRP maximum hopcount 100EIGRP maximum metric variance 1Redistributing: eigrp 1EIGRP NSF-aware route hold timer is 240sAutomatic network summarization is not in effectMaximum path: 4Routing for Networks:3.3.3.0/2423.1.1.0/24Routing Information Sources:Gateway Distance Last Update23.1.1.2 90 00:13:39Distance: internal 90 external 170R3#show ip eigrp trafficIP-EIGRP Traffic Statistics for AS 1Hellos sent/received: 426/399Updates sent/received: 4/2Queries sent/received: 0/0Replies sent/received: 0/0Acks sent/received: 0/2Input queue high water mark 2, 0 dropsSIA-Queries sent/received: 0/0SIA-Replies sent/received: 0/0Hello Process ID: 121PDM Process ID: 120R3#show ip eigrp topologyIP-EIGRP Topology Table for AS(1)/ID(3.3.3.3)Codes: P - Passive, A - Active, U - Update, Q - Query, R - Reply, r - reply Status, s - sia StatusP 1.1.1.0/24, 1 successors, FD is 2809856via 23.1.1.2 (2809856/2297856), Serial0/1P 3.3.3.0/24, 1 successors, FD is 128256via Connected, Loopback0P 12.1.1.0/24, 1 successors, FD is 2681856via 23.1.1.2 (2681856/2169856), Serial0/1P 23.1.1.0/24, 1 successors, FD is 2169856via Connected, Serial0/1。
华为RIP路由配置教程有哪些命令一、RIP基础配置1、配置RIP进程全局进程[Huawei]rip 10VPN下的RIP进程[Huawei]rip vpn-instance 1RIP只在指定网段上的接口运行。
对于不在指定网段上的接口,RIP既不在它上面接收和发送路由,也不将它的接口路由转发出去。
因此,RIP启动后必须指定其工作网段。
2、配置RIP进程描述(可选)[Huawei-rip-10]description test3、禁止对RIP报文源地址检查(可选)[Huawei-rip-10]undo verify-source缺省情况下,使能了对收到的RIP路由更新报文进行源IP地址的检测,即检查发送报文的接口IP跟接收报文的IP 地址是否在同一网段。
如果不同,则该RIP报文不被设备处理。
但当在P2P网络中链路两端的IP地址属于不同网络时,只有取消报文的源地址检查,才能建立起正常的邻居关系。
4、指定RIP生效的网段(即宣告网络)。
[Huawei-rip-10]network 172.16.0.0宣告时不带子网掩码,因为该地址必须是自然网段,不能是子网地址(与OSPF等不一样),如果路由器连接了一个自然段的多个子网,也只需用一条对应自然网段的命令使能RIP。
一个接口只能与一个RIP进程相关联。
5、指定RIP邻居的IP地址(可选,仅用于NBMA网络)[Huawei-rip-10]peer 172.16.0.1通常情况下,RIP使用广播或组播地址发送报文。
如果在不支持广播或组播报文的链路上运行RIP,则必须在链路两端手工相互指定RIP的邻居,这样报文就会以单播形式发送到对端。
通常情况下不推荐使用该命令,因为会造成对端同时收到同一报文的组播(或广播)和单播两种形式。
因此在配置该命令时,通常使用silent-interface 命令将相关接口改为被动(silent)模式。
6、配置RIP版本号(可选)全局版本[Huawei-rip-10]version 2接口下的版本号[Huawei-GigabitEthernet0/0/2]rip version ?1 RIP version 1 on interface2 RIP version 2 on interface接口版本与全局版本号不同时以接口版本号为准。
7、rip-2路由聚合配置RIP-2是RIP version 2的简称,它与RIP-1的不同点在于,RIP-2支持可变长子网掩码VLSM(Variable Length Subnet Mask)和无类别域间路由CIDR(Classless Inter-Domain Routing),并支持验证功能,从而功能更加完善,安全性更高。
在RIP网络规模很大时,RIP路由表会变得十分庞大,存储路由表占用大量的设备内存资源,传输和处理路由信息需要占用大量的网络资源。
使用路由聚合可以大大减小路由表的规模;另外通过对路由进行聚合,隐藏一些具体的路由,可以减少路由震荡对网络带来的影响。
RIP支持两种聚合方式:自动路由聚合和手动路由聚合。
自动聚合的路由优先级低于手动指定聚合的路由优先级。
当需要将所有子网路由发布出去时,可关闭RIP-2的自动路由聚合功能。
缺省情况下,如果配置了水平分割或毒性反转,有类聚合将失效。
因此在向自然网段边界外发送聚合路由时,相关视图下的水平分割和毒性反转功能都应关闭。
具体配置7.1、配置RIPV2[Huawei-rip-10]version 27.2、使能RIP有类自动路由聚合[Huawei-rip-10]summary ?always Route summarization always(总是、永远、一直)Please press ENTER to execute command执行命令summary always,不论水平分割和毒性反转是否使能,都可以使能RIP-2自动路由聚合,不使用此参数,则在配置水平分割或毒性反转后,有类聚合功能将失效。
7.3、配置接口下的RIP聚合路由(手动聚合)[Huawei-GigabitEthernet0/0/2]rip summary-address 172.16.0.0 255.255.255.0 ?avoid-feedback Avoid learning this summary routePlease press ENTER to execute commandavoid-feedback,表示禁止从此接口学习到相同的聚合路由,以免形成路由环路。
8、配置RIPv2报文认证方式[Huawei-GigabitEthernet0/0/2]rip authentication-mode ?hmac-sha256 hmac-sha256 authenticationmd5 MD5 authenticationsimple Simple authentication可以配ripv2报文的认证方式来提高rip网络的安全性。
Ripv2支持对协议的认证分为简单认证和MD5认证。
Ripv2报文认证需要在具体的rip路由器接口上配置(两端密码需一致)。
二、RIP高级功能配置1、配置rip防止路由环路(水平分割)。
[Huawei-GigabitEthernet0/0/2]rip split-horizon只能在路由接口下配置,如果接口配置了从IP地址且使能了水平分割功能,则rip报文可能不会从每一个从IP发送出去,除非禁水平分割功能。
如果接口与NBMA网络相连,缺省是水平分割功能被禁止。
2、配置rip防止路由环路(毒性反转)。
[Huawei-GigabitEthernet0/0/1]rip poison-reverse只能在路由接口下配置。
同时配了水平分割和毒性反转功能后,只有毒性反转功能生效。
3、rip协议优先级(可选)。
[Huawei-rip-10]preference 2当多个路由协议发现目的地相同的路由时,通过配置RIP 的协议优先级来改变路由协议的优先顺序。
4、配置接口的附近度量值4.1、配置接口接收RIP路由更新报文时要给对应路由增加的度量值(可选)。
[Huawei-GigabitEthernet0/0/2]rip metricout 5[Huawei-GigabitEthernet0/0/2]rip metricout acl-name test 10(度量值)是指在rip路由原来的度量值基础上增加的度量值(跳数)。
通过调整rip接口的附加度量值来影响路由的选择(值越小越优先)配置该功能后,当该接口收到一条路由时,rip将接口接收权值附加到该路由上,再加入路由表中。
所以,增加一个接口的的接收rip权值,该接口收到的rip路由权值也会相应增加。
acl-name命令用于指定用于接收路由信息过滤的acl号(仅支持基本acl)或名称或地址前缀(ip-prefix)列表名,用于对要接收的rip路由的目的IP地址过滤4.2、配置接口发送RIP路由更新报文时要给对应路由增加的度量值(可选)[Huawei-GigabitEthernet0/0/2]rip metricin ip-prefix test 1 rip metricin用于在接收到路由后,给其增加一个附加度量值,再加入路由表中,使得路由表中的度量值发生变化。
运行该命令会影响到本地设备和其他设备的路由选择。
rip metricout用于自身路由的发布,发布时增加一个附加的度量值,但路由表中的度量值不会发生变化。
运行该命令不会影响本地设备的路由选择,但是会影响其他设备的路由选择。
5、配置进行负载分担的最大等价路由条数(可选)[Huawei-rip-10]maximum load-balancing 2通过配置RIP最大等价路由条数,可以调整进行负载分担的路由数目。
6、配置当前设备生成一条缺省路由或将路由表中存在的缺省路由发送给邻居路由器。
(可选-即配置发布缺省路由) [Huawei-rip-1]default-route originate ?cost 指定缺省路由的度量值match 当当前路由表存在缺省路由或其他路由协议时,则向邻居发布该缺省路由[avoid-learning] 当前路由中存在缺省路由时,则不引入其他缺省路由route-policy Apply the specified route policy to filter routePlease press ENTER to execute command在路由表中,缺省路由以到网络0.0.0.0(掩码也为0.0.0.0)的路由形式出现。
当报文的目的地址不能与路由表的任何目的地址相匹配时,设备将选取缺省路由转发该报文。
7、禁止接口发送更新报文通过配置禁止接口发送更新报文,可以防止路由环路。
禁止接口发送更新报文有两种实现方式:在RIP进程下配置接口为抑制状态在接口视图下禁止接口发送RIP报文其中在RIP进程下配置接口为抑制状态的优先级要高于在接口视图下禁止接口发送RIP报文。
7.1、在RIP进程视图下配置[Huawei-rip-1]silent-interface ?GigabitEthernet GigabitEthernet interface #禁止一个接口发送更新报文all All the interfacesdisable Override silent-interface configuration and make the interface active该命令可以与peer ip-address命令协同使用,使抑制的接口仍可向指定的邻居路由器发布路由7.2、在接口视图下配置[Huawei-GigabitEthernet0/0/2]undo rip output8、引入外部路由信息(可选)8.1、配置引入路由的默认开销(可选)[Huawei-rip-1]default-cost 2如果在引入路由时没有指定度量值,则使用缺省度量值。
8.2、设置需要引入的外部路由[Huawei-rip-1]import-route ?bgp Border Gateway Protocol (BGP) routesdirect Direct routesisis Intermediate System to Intermediate System (ISIS) routesospf Open Shortest Path First (OSPF) routesrip Routing Information Protocol (RIP) routesstatic Static routesunr User Network Route[permit-ibgp] 指定公网实例下的rip进程可以引入IBGP 路由[Huawei-rip-2]import-route ospf ?INTEGER1-65535 Process ID # 引入路由的进程号cost Cost of the import routeroute-policy Apply the specified route policy to filter routePlease press ENTER to execute commandRIP进程引入IBGP路由容易造成路由环路,请配置该功能前仔细确认。