Study FAQ
How do I configure IPv4 static routes over a CX 6300 transit link?
Also asked as 2
- 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?
Answer
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 · AOS-CX 10.13 Fundamentals Guide for CX 6300/6400
Full explanation
HPE6-A86: Implementing Inter-VLAN and Static Routing
Study guide · HPE6-A86
Read the full explanation