Chapter 6: Layer 3 Routing — Static Routes, OSPF, and VRRP/Active-Gateway

Learning Objectives

6.1 Layer 3 Interface Types

AOS-CX is a fully routed switching platform — every Aruba CX 6000, 8000, and 10000 series switch can be a Layer 3 device on every port. Before any inter-VLAN forwarding works, the global feature must be on:

switch(config)# ip routing

Without ip routing, the switch will accept Layer 3 configuration on interfaces but will not forward packets between subnets.

SVI (Switched Virtual Interface)

An SVI — interface vlan <id> — is a logical L3 interface bound to a VLAN. It is the gateway for hosts in that VLAN. SVIs come up administratively down by default (no shutdown is mandatory) and require at least one forwarding member port for the VLAN to bring line-protocol up.

Routed Port

A physical port stripped of switching behavior with the routed keyword (or no switchport). Preferred over SVIs for transit links because it skips spanning-tree, has predictable up/down on cable failure, and avoids 802.1Q overhead.

Loopback

Always-up logical L3 interface; ideal for stable management address and OSPF/BGP router-id.

Table 6.1 — AOS-CX Layer 3 Interface Types

TypeCommandUse CaseUp When
SVIinterface vlan <id>VLAN gateway, inter-VLAN routingA member port forwarding AND no shutdown
Routed portrouted + ip addressP2P inter-switch / upstream linkCable up + no shutdown
Loopbackinterface loopback <n>Stable router-id, mgmtAlways
Sub-interfaceinterface 1/1/x.<vid>Router-on-a-stickParent up + encapsulation dot1Q
Pre-Reading Quiz — Section 1: L3 Interface Types

1. You configure interface vlan 10, assign an IP, and no shutdown, but the SVI stays line-protocol down. What is the most likely cause?

2. Which interface type is the most appropriate for a clean point-to-point link between two CX switches in a routed core?

3. Why is a loopback the conventional source for an OSPF router-id?

4. Without the ip routing global command, what happens to inter-VLAN traffic?

6.2 Static and Default Routing

Static routes are deterministic plumbing: ip route <prefix>/<len> <next-hop> [distance]. Default AD for a static is 1 (beats OSPF's 110). A "floating static" sets a high AD (e.g., 200) so the route only installs if the preferred dynamic source disappears.

Table 6.2 — Default Administrative Distance

SourceAD
Connected0
Static1
eBGP20
OSPF (intra/inter)110
iBGP200
Floating static (typical)200+

ECMP — Equal-Cost Multipath

Multiple equal-cost routes for the same prefix are all installed and flows are hashed across them (typical 5-tuple of src/dst IP, src/dst port, protocol). This is what makes leaf-spine fabrics work — every leaf has equal-cost paths to every other leaf via every spine, with no single bottleneck.

Animation 1 — ECMP Load Balancing in a Leaf-Spine Fabric
Spines (Area 0) — 4 equal-cost paths Spine-1 Spine-2 Spine-3 Spine-4 Leaf-1 Leaf-2 A B Each color = a unique flow (hashed by 5-tuple); all four paths carry traffic simultaneously.
Hover any node for context. Per-flow hashing keeps a single conversation on one path while spreading flows across all four spines.

Static-Route Decision Flow

flowchart TD A[Packet arrives] --> B{Longest match?} B -->|Yes| C{Multiple equal-cost paths?} C -->|Yes| D[Hash flow across paths - ECMP] C -->|No| E[Forward via single next-hop] B -->|No| F{Default 0.0.0.0/0 exists?} F -->|Yes| E F -->|No| G[Drop - ICMP unreachable if enabled]
Pre-Reading Quiz — Section 2: Static and Default Routing

5. Which administrative distance value is the AOS-CX default for a static route?

6. A switch has both a static ip route 10.10.0.0/16 ... 200 and an OSPF intra-area route to the same prefix. Which is installed in the routing table while OSPF is healthy?

7. What is the purpose of ECMP in a leaf-spine fabric?

8. Which command best installs a backup default route that should only be used when the OSPF-learned default disappears?

6.3 OSPFv2 on AOS-CX

OSPFv2 is a link-state IGP. Every router in an area builds an identical map of the area, then runs Dijkstra (SPF) to compute its routing table. Failures are detected via hello/dead timers and the area re-converges in seconds.

The AOS-CX trap: OSPF is enabled per interface with ip ospf <id> area <area>. There are no Cisco-style network statements under the OSPF process.

switch(config)# router ospf 1
switch(config-ospf-1)# router-id 1.1.1.1
switch(config-ospf-1)# area 0
switch(config-ospf-1)# exit
switch(config)# interface 1/1/1
switch(config-if)# ip address 10.0.1.1/30
switch(config-if)# ip ospf 1 area 0
switch(config-if)# ip ospf network point-to-point

Table 6.3 — OSPFv2 LSA Types

TypeNameOriginated ByScope
1Router LSAEvery OSPF routerWithin an area
2Network LSADR on multi-accessWithin an area
3Summary LSAABRInter-area
4ASBR SummaryABRHow to reach an ASBR
5AS-ExternalASBRThroughout AS (not stub/NSSA)
7NSSA ExternalASBR in NSSANSSA only — translated to Type 5 at ABR

Table 6.4 — Stub Area Variants

AreaType 3?Type 5?Type 7?
StandardYesYesNo
StubYesNo (default route only)No
Totally StubbyNo (default only)NoNo
NSSAYesNoYes
Totally NSSANoNoYes
Animation 2 — OSPF Neighbor Adjacency State Machine
Two routers — Down → Init → 2-Way → ExStart → Exchange → Loading → Full Down Init 2-Way ExStart Exchange Loading FULL no hello Hello recv 2-way Hello DBD master/slave DBD exchange LSR / LSU LSDB synced Hello Router A Router B Both routers must reach FULL for routes to be exchanged. Stuck in INIT/EXSTART = MTU/area/timer mismatch.
CSS-only fallback: state boxes light up sequentially (0.4s per step) without JS.

Passive Interfaces, Authentication, Timers

Mark user-facing SVIs ip ospf passive — the subnet is still advertised but no hellos are sent. MD5 authentication (ip ospf message-digest-key) prevents rogue neighbors. Default timers are hello 10s / dead 40s; tighten only when BFD is unavailable.

Pre-Reading Quiz — Section 3: OSPFv2

9. How is an interface added to OSPF process 1, area 0 on AOS-CX?

10. Which LSA type does an ABR generate to advertise inter-area prefixes into a non-originating area?

11. A point-to-point OSPF neighbor remains stuck in EXSTART. What is the most likely cause?

12. Which area type permits Type 7 LSAs (NSSA External) but blocks Type 5 LSAs?

6.4 First-Hop Redundancy: VRRP and VSX Active-Gateway

A host has one default gateway. Lose it and traffic stops. AOS-CX offers two FHRPs:

Table 6.5 — VRRP vs. VSX Active-Gateway

FeatureVRRPVSX Active-Gateway
ForwardingActive-standbyActive-active (both forward)
Config per VLANVRID, priority, VIP, timers, preemptOne line: active-gateway ip ... mac ...
Virtual MACMaster owns; transfers on failoverShared by both peers always
Protocol overheadMulticast hellos per VLAN per secondNone (uses VSX control channel)
ISL traversalBackup hairpins north-bound trafficNone — each peer routes locally
CompatibilityStandards-based, multi-vendorVSX only, mutually exclusive with VRRP per VLAN
Best fitNon-VSX, multi-vendor, standalone coresVSX pairs (campus dist, DC ToR)
Animation 3 — VRRP Master Failure & Backup Takeover
Phase indicator: 1. Steady state — Switch-1 = Master Switch-1 Pri 150 — MASTER vMAC 00:00:5E:00:01:0A Switch-2 Pri 100 — Backup listening VRRP adv 224.0.0.18 VIP 10.10.10.1 vMAC 00:00:5E:00:01:0A Host GW = 10.10.10.1 Gratuitous ARP Hosts never see vMAC change — only the switch answering for it changes.
Click Replay to walk through: steady state → master fails → backup advertises → gratuitous ARP → traffic redirected.

VSX Active-Gateway Configuration

Configured identically on both VSX peers — no priority, no preemption, no advertisement timer:

interface vlan 10
  ip address 10.10.10.2/24       ! unique per peer
  active-gateway ip 10.10.10.1 mac 02:00:00:00:01:00

Why Active-Gateway Wins in VSX

  1. Active-active forwarding — no ISL hairpin for north-bound L3 traffic.
  2. Configuration simplicity — one line per SVI vs six+ for VRRP.
  3. Zero protocol overhead — state syncs over the existing VSX control channel.
  4. Symmetric ECMP upstream — both peers source traffic for the VIP.

VRRP and active-gateway are mutually exclusive on the same VLAN. Pick one per SVI.

Key Takeaways

Pre-Reading Quiz — Section 4: First-Hop Redundancy

13. In a VSX pair carrying 30 SVIs, which FHRP minimizes ISL hairpin traffic and configuration?

14. Which of these statements about VRRP and VSX active-gateway is TRUE?

15. A VRRP master with priority 150 is tracking interface 1/1/1 with decrement 60. The peer has priority 100. What happens when 1/1/1 fails?

Your Progress

Answer Explanations