As far as I know, the ip default-gateway is used in non-ip routing mode; the ip route 0.0.0.0/0 is used in routing mode.
With routing mode enabled, I think you can remove the ip default-gateway as it is not used. It won't hurt either, but may be confusing when someone reads the config, so probably better to take it out.
------------------------------
Herman Robers
------------------------
If you have urgent issues, always contact your Aruba partner, distributor, or Aruba TAC Support. Check
https://www.arubanetworks.com/support-services/contact-support/ for how to contact Aruba TAC. Any opinions expressed here are solely my own and not necessarily that of Hewlett Packard Enterprise or Aruba Networks.
In case your problem is solved, please invest the time to post a follow-up with the information on how you solved it. Others can benefit from that.
------------------------------
Original Message:
Sent: Sep 21, 2022 12:51 PM
From: chuck foo
Subject: IP Route and IP Default Gateway configured on same switch
Hi,
Is it an issue to have an IP route and IP DGW setup on the same switch?
I have layer 3 routing setup with RIP enabled. Will there be a conflict, and do in need to remove the DGW?
Ip default-gateway 10.0.0.1
ip route 0.0.0.0 0.0.0.0 10.0.0.1
ip routing
snmp-server community "public" unrestricted
oobm
ip address dhcp-bootp
exit
router rip
redistribute connected
enable
exit