FRRouting / frr

The FRRouting Protocol Suite
https://frrouting.org/
Other
3.35k stars 1.26k forks source link

FRR 8.2 version ospf with gre,when gre_0 interface down and up,route cant update automatic #16767

Open siasjack opened 1 month ago

siasjack commented 1 month ago

Description

gre p2p interface,ip is 10.1.1.2 and 10.1.13,it is base on eth4(wan interface) start frr ospf proto,care route's br-lan and gre_0 interface R1: br-lan 192.168.11.0/24 gre_0 10.1.1.2

R2: br-lan 192.168.12.0/24 gre_0 10.1.1.3

event: when i plug out wan wire,gre_0 interface will del ,ifconfig cant find gre_0 then route -n, cant find other route's br-lan route info,that is right then i plugin wan wire,gre_0 will up after few seconds, but ospf cant re update the other route's route info,and cant find neighbor in cmd show ip ospf neighbor

FRR version 8.2 run env :openwrt 1907

Version

FRRouting 8.2 (OpenWrt).
Copyright 1996-2005 Kunihiro Ishiguro, et al.
configured with:
    '--target=aarch64-openwrt-linux' '--host=aarch64-openwrt-linux' '--build=x86_64-pc-linux-gnu' '--program-prefix=' '--program-suffix=' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--libexecdir=/usr/lib' '--sysconfdir=/etc' '--datadir=/usr/share' '--localstatedir=/var' '--mandir=/usr/man' '--infodir=/usr/info' '--disable-nls' '--with-clippy=/compile/smawave/IPQ6018_12.2.CS/staging_dir/hostpkg/bin/clippy' '--prefix=/usr' '--enable-shared' '--disable-static' '--enable-user=network' '--enable-group=network' '--disable-ospfclient' '--disable-doc' '--disable-backtrace' '--localstatedir=/var/run/frr' '--sysconfdir=/etc/frr/' '--disable-babeld' '--disable-bfdd' '--enable-bgpd' '--disable-eigrpd' '--disable-fabricd' '--disable-isisd' '--disable-ldpd' '--enable-nhrpd' '--enable-ospfd' '--disable-ospf6d' '--disable-pathd' '--disable-pbrd' '--disable-pimd' '--enable-ripd' '--disable-ripngd' '--disable-staticd' '--disable-vrrpd' '--enable-vtysh' '--enable-zebra' 'build_alias=x86_64-pc-linux-gnu' 'host_alias=aarch64-openwrt-linux' 'target_alias=aarch64-openwrt-linux' 'AR=aarch64-openwrt-linux-musl-gcc-ar' 'LD=aarch64-openwrt-linux-musl-ld' 'OBJCOPY=aarch64-openwrt-linux-musl-objcopy' 'OBJDUMP=aarch64-openwrt-linux-musl-objdump' 'RANLIB=aarch64-openwrt-linux-musl-gcc-ranlib' 'STRIP=aarch64-openwrt-linux-musl-strip' 'PKG_CONFIG=/compile/smawave/IPQ6018_12.2.CS/staging_dir/host/bin/pkg-config' 'PKG_CONFIG_PATH=/compile/smawave/IPQ6018_12.2.CS/staging_dir/target-aarch64/usr/lib/pkgconfig:/compile/smawave/IPQ6018_12.2.CS/staging_dir/target-aarch64/usr/share/pkgconfig' 'PKG_CONFIG_LIBDIR=/compile/smawave/IPQ6018_12.2.CS/staging_dir/target-aarch64/usr/lib/pkgconfig:/compile/smawave/IPQ6018_12.2.CS/staging_dir/target-aarch64/usr/share/pkgconfig' 'CC=aarch64-openwrt-linux-musl-gcc' 'CXX=aarch64-openwrt-linux-musl-g++'

How to reproduce

when i plug out wan wire,gre_0 interface will del ,ifconfig cant find gre_0 
then `route -n`, cant find other route's br-lan route info,that is right 
then i plugin wan wire,gre_0 will up after few seconds,
but ospf cant re update the other route's route info,and cant find neighbor in cmd `show ip ospf neighbor` 

Expected behavior

ospf and frr can regenerate other route's info

Actual behavior

after gre_0 restart,frr cant find ospf neighbor ,and cant generate other route's info

Additional context

No response

Checklist

ton31337 commented 1 month ago

Could you try more recent versions?

siasjack commented 1 month ago

Could you try more recent versions?

thanks for your reply, i will have a try latest version

siasjack commented 1 month ago

Could you try more recent versions?

HEY i am trying compile FRR 10.1 version in openwrt sdk it's require protobuf protobuf-c libyang etc and they are used by northbund api , it;s useless in my system how can disable depends protobuf libyang etc...