Wired Intelligent Edge

 View Only
Expand all | Collapse all

AOS (ip default-gateway X.X.X.X) vs AOS-CX (ip route 0.0.0.0/0)

This thread has been viewed 19 times
  • 1.  AOS (ip default-gateway X.X.X.X) vs AOS-CX (ip route 0.0.0.0/0)

    Posted Jul 26, 2021 09:59 AM
    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
    ------------------------------


  • 2.  RE: AOS (ip default-gateway X.X.X.X) vs AOS-CX (ip route 0.0.0.0/0)

    Posted Jul 27, 2021 05:00 AM
    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.0
    S* 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/ Age
    Type Metric
    ---------------------------------------------------------------------------------------------------------
    0.0.0.0/0 10.1.1.254 vlan1 - S [1/0] 00m:02w:04d

    If 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
    ------------------------------