It is exactly same thing, a default gateway command create a default route in the route table.
This is the result of show ip route in a Cisco switch with ip default-gateway :
Gateway of last resort is 10.1.1.254 to network 0.0.0.0S* 0.0.0.0/0 [0/0] via 10.1.1.254
The equivalent on aruba-cx with "ip route 0.0.0.0/0 x.x.x.x" :
Prefix Nexthop Interface VRF(egress) Origin/ Distance/ AgeType Metric---------------------------------------------------------------------------------------------------------0.0.0.0/0 10.1.1.254 vlan1 - S [1/0] 00m:02w:04dIf you don't specify a default gateway or default route, your switch will not accessible from another network. If you use the mgmt port you can configure a default route on the mgmt VRF.
------------------------------
Laurent from Brest / France
Network Engineer
------------------------------
Original Message:
Sent: Jul 26, 2021 09:58 AM
From: Wayne DuBose
Subject: AOS (ip default-gateway X.X.X.X) vs AOS-CX (ip route 0.0.0.0/0)
Is there anyway to turn routing off on a 6200f cx switch if it will only be used as a layer 2 access switch? On the 2930 running Aruba OS you were able to turn routing off and assign a default gateway (ip default-gateway x.x.x.x). Is the ip route 0.0.0.0/0 x.x.x.x command in Aruba cx the equivalent of the ip default-address x.x.x.x command in ArubaOS?
------------------------------
Wayne DuBose
------------------------------