# How do I configure IPv4 static routes over a CX 6300 transit link?

Exam: HPE6-A86 — HPE Network Switching Associate Exam
Knowledge domain: Install, configure, set up, and validate wired network solutions.
Updated: 2026-11-25T03:40:03.069231+00:00
HTML: https://learningpathx.com/faq/HPE6-A86/hpe6-a86-cx-6300-static-ipv4-routes-transit-return-path.html

## Also asked as

- Which IPv4 next hops should I use for static routes between two CX 6300 switches?
- How do I set a forward route and matching return routes across a routed CX 6300 link?

On CX 6300 running AOS-CX 10.13, set each static destination prefix to use the neighboring router's reachable transit IP address as its next hop. Add routes on the neighboring router for the return traffic as well. A static route on one switch only changes that switch's forwarding decision.

For two isolated switches in the default VRF, put both transit ports in Layer 3 mode with `routing` in interface context. Use `ip address 10.0.0.1/30` on A and `ip address 10.0.0.2/30` on B. Confirm the chosen ports and console path, prepare both ends while the transit is disconnected, then connect and enable the ports. This transit uses routed interfaces without VLAN trunk membership. Suppose A's local VLANs are `192.0.2.0/24` and `198.51.100.0/24`, and B already serves `203.0.113.0/24` on a routed interface.

In global configuration mode on A, enter:

```
ip route 203.0.113.0/24 10.0.0.2
```

On B, enter:

```
ip route 192.0.2.0/24 10.0.0.1
ip route 198.51.100.0/24 10.0.0.1
```

A's next hop for B's subnet is B's transit IP, while the remote host still uses its local gateway on `203.0.113.0/24`. Verify the active interfaces and the connected transit prefix, then use `show ip route` on each switch to check the selected destination and return routes. Test permitted traffic from the A-side hosts to the remote host and back. A ping sourced from a switch can use a different return route than a host on its VLAN.

[AOS-CX 10.13 IP Routing Guide for CX 6300 and listed series](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/PDF/ip_route_6300-6400-8100-83xx-9300-10000.pdf) · [AOS-CX 10.13 Fundamentals Guide for CX 6300/6400](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/PDF/fundamentals_6300-6400.pdf)

Source: [HPE6-A86: Implementing Inter-VLAN and Static Routing](https://learningpathx.com/news/hpe6-a86-implementing-inter-vlan-and-static-routing.html)
