# How do I route between two local VLANs using SVIs on CX 6300?

Exam: HPE6-A86 — HPE Network Switching Associate Exam
Knowledge domain: Install, configure, set up, and validate wired network solutions.
Updated: 2026-11-25T03:40:01.656234+00:00
HTML: https://learningpathx.com/faq/HPE6-A86/hpe6-a86-cx-6300-inter-vlan-routing-svi-gateways.html

## Also asked as

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

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](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/HTML/fundamentals_6300-6400/Content/Chp_IfaceCfg/Iface_cmds/int-vla-10.htm) · [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 Layer-2 Bridging Guide for CX 6300/6400](https://arubanetworking.hpe.com/techdocs/AOS-CX/10.13/PDF/l2_bridging_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)
