frr
frr copied to clipboard
When a dynamic route is declared through RIP, there is no equal-cost route and only one next hop
environment:Openwrt frr:version 7.2-dev
The topology diagram is as follows:
Both sides learn routes through RIP, but R2 has only one next hop Configuration is as follows:
R1: router rip network wan network lan0 network br-lan1
R2: router rip network wan network lan0
R2's route:
Ti-C2281# show ip rip status
Routing Protocol is "rip"
Sending updates every 30 seconds with +/-50%, next due in 7 seconds
Timeout after 180 seconds, garbage collect after 120 seconds
Outgoing update filter list for all interface is not set
Incoming update filter list for all interface is not set
Default redistribution metric is 1
Redistributing:
Default version control: send version 2, receive any version
Interface Send Recv Key-chain
lan0 2 1 2
wan 2 1 2
Routing for Networks:
wan
lan0
Routing Information Sources:
Gateway BadPackets BadRoutes Distance Last Update
10.0.0.1 0 0 120 00:00:23
10.1.0.1 0 0 120 00:00:23
Distance: (default is 120)
Ti-C2281#
Ti-C2281# show ip route
Codes: K - kernel route, C - connected, S - static, R - RIP,
O - OSPF, I - IS-IS, B - BGP, E - EIGRP, N - NHRP,
T - Table, v - VNC, V - VNC-Direct, A - Babel, D - SHARP,
F - PBR, f - OpenFabric,
> - selected route, * - FIB route, q - queued route, r - rejected route
C>* 10.0.0.0/24 is directly connected, lan0, 00:31:41 C>* 10.1.0.0/24 is directly connected, wan, 00:48:16 R>* 172.16.1.0/24 [120/2] via 10.0.0.1, lan0, 00:30:03
show ip rip
as well as show ver
please
Ti-C2281# show version FRRouting 7.2-dev (Ti-C2281). Copyright 1996-2005 Kunihiro Ishiguro, et al. configured with: '--host=aarch64-openwrt-linux' '--build=x86_64-pc-linux-gnu' 'HOST_CFLAGS=-O2 -I/root/nmxx-openwrt-1806601/staging_dir/host/include -I/root/nmxx-openwrt-1806601/staging_dir/hostpkg/include -I/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/host/include' 'HOST_LDFLAGS=-L/root/nmxx-openwrt-1806601/staging_dir/host/lib -L/root/nmxx-openwrt-1806601/staging_dir/hostpkg/lib -L/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/host/lib' 'BUILD_CPPFLAGS=' 'BUILD_CFLAGS=-Os -pipe -mcpu=cortex-a53 -fno-caller-saves -fno-plt -fhonour-copts -Wno-error=unused-but-set-variable -Wno-error=unused-result -iremap/root/nmxx-openwrt-1806601/build_dir/target-aarch64_cortex-a53_musl/frr-ce746edebb88320af871d6e4bc42a8022f7c1da5:frr-ce746edebb88320af871d6e4bc42a8022f7c1da5 -Wformat -Werror=format-security -fstack-protector -D_FORTIFY_SOURCE=1 -Wl,-z,now -Wl,-z,relro' 'BUILD_LDFLAGS=-L/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/usr/lib -L/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/lib -L/root/nmxx-openwrt-1806601/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/usr/lib -L/root/nmxx-openwrt-1806601/staging_dir/toolchain-aarch64_cortex-a53_gcc-7.3.0_musl/lib -znow -zrelro' '--prefix=/usr' '--enable-shared' '--disable-static' '--enable-user=network' '--enable-group=network' '--enable-multipath=16' '--disable-capabilities' '--disable-ospfclient' '--disable-doc' '--with-vtysh-pager=cat' '--localstatedir=/var/run/frr' '--sysconfdir=/etc/frr/' '--disable-babeld' '--disable-bfdd' '--enable-bgpd' '--disable-eigrpd' '--disable-fabricd' '--enable-isisd' '--disable-ldpd' '--disable-nhrpd' '--enable-ospfd' '--disable-ospf6d' '--disable-pbrd' '--disable-pimd' '--enable-staticd' '--enable-ripd' '--disable-ripngd' '--disable-vrrpd' '--enable-vtysh' '--enable-zebra' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=aarch64-openwrt-linux' 'PKG_CONFIG=/root/nmxx-openwrt-1806601/staging_dir/host/bin/pkg-config' 'PKG_CONFIG_PATH=/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/pkgconfig:/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/usr/share/pkgconfig' 'PKG_CONFIG_LIBDIR=/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/usr/lib/pkgconfig:/root/nmxx-openwrt-1806601/staging_dir/target-aarch64_cortex-a53_musl/usr/share/pkgconfig' Ti-C2281# show ip rip Codes: R - RIP, C - connected, S - Static, O - OSPF, B - BGP Sub-codes: (n) - normal, (s) - static, (d) - default, (r) - redistribute, (i) - interface
Network Next Hop Metric From Tag Time
C(i) 10.0.0.0/24 0.0.0.0 1 self 0 C(i) 10.1.0.0/24 0.0.0.0 1 self 0 R(n) 172.16.1.0/24 10.1.0.1 2 10.1.0.1 0 02:47
This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose
label in order to avoid having this issue closed.
This issue will be automatically closed in the specified period unless there is further activity.
This issue is stale because it has been open 180 days with no activity. Comment or remove the autoclose
label in order to avoid having this issue closed.
This issue will be automatically closed in the specified period unless there is further activity.