Study FAQ
How do I route between two local VLANs using SVIs on CX 6300?
Also asked as 2
- How do I create default gateways for two VLANs on a CX 6300 switch?
- How do CX 6300 VLAN interfaces let hosts in two directly connected VLANs communicate?
Answer
On CX 6300 running AOS-CX 10.13, create a switched virtual interface (SVI) with an IPv4 address for each VLAN and give hosts the SVI address in their own subnet as their default gateway. When both SVIs are operational in the same virtual routing and forwarding instance (VRF), their connected routes let the switch route between the VLANs. Communication also depends on the policies applied to those networks.
In an isolated two-VLAN example, first create VLANs 10 and 20 and assign their host ports as Layer 2 access ports for VLANs 10 and 20 respectively. From global configuration, set the two gateway addresses:
interface vlan 10
ip address 192.0.2.1/24
no shutdown
exit
interface vlan 20
ip address 198.51.100.1/24
no shutdown
A host at 192.0.2.10/24 in VLAN 10 uses 192.0.2.1. A host at 198.51.100.10/24 in VLAN 20 uses 198.51.100.1. The physical access ports still perform VLAN membership. The SVIs provide the Layer 3 endpoints. A static route between these directly connected subnets is unnecessary.
Check show vlan and show interface vlan 10 or show interface vlan 20 for membership and operational state. Verify both connected prefixes in show ip route. Test each host's own gateway first, then test permitted traffic between the hosts. An addressed SVI alone does not prove the host has a working access path.
AOS-CX 10.13 VLAN interface command on CX 6300/6400 · AOS-CX 10.13 IP Routing Guide for CX 6300 and listed series · AOS-CX 10.13 Layer-2 Bridging Guide for CX 6300/6400
Full explanation
HPE6-A86: Implementing Inter-VLAN and Static Routing
Study guide · HPE6-A86
Read the full explanation