EdgeMAX - conjunto para cima e configurar redes baseadas em RIP

Visão geral


Os leitores aprenderão como configurar roteadores com RIP habilitada.

Diagrama de rede ilustrando RIP configurado em três roteadores

 O exemplo a seguir descreve como configurar uma rede RIP com três roteadores. 

Configuração de R1

  • Configure o endereço IP.
ubnt@R1#set interfaces ethernet eth1 address 10.0.50.1/24
  • Configure RIP.
ubnt@R1#set protocols rip interface eth1

Configuração de R2

  • Configure o endereço IP.
ubnt@R2#set interfaces ethernet eth1 address 10.0.50.2/24ubnt@R2#set interfaces ethernet eth2 address 10.0.60.2/24
  • Configure RIP.
ubnt@R2#set protocols rip interface eth1ubnt@R2#set protocols rip interface eth2

Configuração de R3

  • Configure o endereço IP.
set interfaces ethernet eth0 address 10.0.60.3/24
  • Configure RIP.
set protocols rip interface eth0

Assim que isso estiver configurado, R1 aprende que essa 10.0.60.0/24 pode ser alcançado 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


Os comandos a seguir podem ser usados em conjunto com redes RIP e exibirão informações importantes:

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)