EdgeMAX - Set up y configurar redes RIP

Resumen


Los lectores aprenderán a configurar routers con RIP activado.

Diagrama de red que ilustran RIP en los tres routers

 En el ejemplo siguiente se describe cómo configurar una red en RIP con tres routers. 

Configuración de R1

  • Configurar la dirección IP.
ubnt@R1#set interfaces ethernet eth1 address 10.0.50.1/24
  • Configurar RIP.
ubnt@R1#set protocols rip interface eth1

Configuración de R2

  • Configurar la dirección IP.
ubnt@R2#set interfaces ethernet eth1 address 10.0.50.2/24ubnt@R2#set interfaces ethernet eth2 address 10.0.60.2/24
  • Configurar RIP.
ubnt@R2#set protocols rip interface eth1ubnt@R2#set protocols rip interface eth2

Configuración de R3

  • Configurar la dirección IP.
set interfaces ethernet eth0 address 10.0.60.3/24
  • Configurar RIP.
set protocols rip interface eth0

Una vez configurado esto, R1 aprende que 10.0.60.0/24 se puede llegar por 10.0.50.2:

ubnt@R1:~$ show ip routeCodes: K - kernel route, C - connected, S - static, R - RIP, O - OSPF,I - ISIS, B - BGP, > - selected route, * - FIB routeS>* 0.0.0.0/0 [210/0] via 192.168.0.1, eth5C>* 10.0.50.0/24 is directly connected, eth1R>* 10.0.60.0/24 [120/2] via 10.0.50.2, eth1, 00:00:36C>* 127.0.0.0/8 is directly connected, loC>* 172.16.3.0/24 is directly connected, eth2C>* 192.168.0.0/23 is directly connected, eth5C>* 200.0.0.0/24 is directly connected, peth1
ubnt@R1:~$ ping 10.0.60.3PING 10.0.60.3 (10.0.60.3) 56(84) bytes of data.64 bytes from 10.0.60.3: icmp_req=1 ttl=63 time=7.52 ms64 bytes from 10.0.60.3: icmp_req=2 ttl=63 time=0.321 ms ^C--- 10.0.60.3 ping statistics ---2 packets transmitted, 2 received, 0% packet loss, time 1001msrtt min/avg/max/mdev = 0.321/3.922/7.524/3.602 ms
ubnt@R1:~$ traceroute 10.0.60.3traceroute to 10.0.60.3 (10.0.60.3), 30 hops max, 60 byte packets110.0.50.2 (10.0.50.2)0.250 ms0.233 ms0.239 ms210.0.60.3 (10.0.60.3)0.307 ms0.267 ms0.277 ms

Notas de la


Los siguientes comandos pueden utilizarse en conjunción con redes RIP y mostrarán información importante:

ubnt@R1:~$ show ip ripCodes: R - RIP, C - connected, S - Static, O - OSPF, B - BGPSub-codes:(n) - normal, (s) - static, (d) - default, (r) - redistribute,(i) - interfaceNetworkNext HopMetric FromTag TimeC(i) 10.0.50.0/240.0.0.01 self0R(n) 10.0.60.0/2410.0.50.22 10.0.50.20 02:28
ubnt@R1:~$ show ip rip statusRouting Protocol is "rip"Sending updates every 30 seconds with +/-50%, next due in 21 secondsTimeout after 180 seconds, garbage collect after 120 secondsOutgoing update filter list for all interface is not setIncoming update filter list for all interface is not setDefault redistribution metric is 1Redistributing:Default version control: send version 2, receive any versionInterfaceSendRecvKey-chaineth121 2Routing for Networks:eth1Routing Information Sources:GatewayBadPackets BadRoutesDistance Last Update10.0.50.20012000:00:13Distance: (default is 120)