Exclude dynamic WAN IP from RIP advertisement
Hi there,
I have two FTGs where I wanted to exclude a WAN IP when redistribute connected networks, FGT1 works just fine, FGT2 doesn't:
FGT1:
config router rip config network edit 1 set prefix 192.168.100.0 255.255.255.0 next end config redistribute "connected" set status enable set metric 10 set routemap "RIP" end config interface edit "wan2" set receive-version 2 set send-version 2 next end endconfig router route-map edit "RIP" config rule edit 1 set action deny set match-interface "wan1" next edit 2 next end next end edit "wan1" set vdom "root" set mode dhcp set allowaccess ping fgfm set type physical set alias "StarLink" set lldp-reception enable set monitor-bandwidth enable set role wan set snmp-index 1 next
Whatever I get on wan1 interface is being excluded from RIP.
FGT2:
config router rip set default-metric 15 config network edit 1 set prefix 192.168.9.0 255.255.255.0 next end config redistribute "connected" set status enable set metric 1 set routemap "RIP" end config redistribute "static" set metric 3 end config interface edit "LAN" set receive-version 2 set send-version 2 next end endconfig router route-map edit "RIP" config rule edit 1 set action deny set match-interface "UFB" next edit 2 next end next end
edit "wan1" set vdom "root" set allowaccess ping set type physical set alias "MyUFB" set device-identification enable set snmp-index 1 next edit "UFB" set vdom "root" set mode pppoe set allowaccess ping set role wan set snmp-index 10 set username "user" set password ENC password set interface "wan1" set vlanid 10 next
So, I tried to include wan1 as a match-interface together with "UFB" interface but still no luck. As of today my only way is to manually add IP addresses to the route-map list but this will stop working next time it renews the pppoe DHCP lease.
Any suggestions would be much appreciated.
Thanks.
