VLAN – Connect Multiple VLANs on the Same L3 Switch

ciscolayer3switchvlan

Introduction

The steps described in this manual have been applied in order to enable the connection between multiple VLANs which reside on the same switch.

Two VLANs have been configured.

VLAN 1:

ip address 10.1.2.1 255.255.255.0

VLAN 2:

ip address 10.1.3.1 255.255.255.0

Ports:

interface GigabitEthernet0/1
 switchport access vlan 1
!
interface GigabitEthernet0/2
 switchport access vlan 1
!
interface GigabitEthernet0/3
 switchport access vlan 2
!

Network Adapter System 1:

10.30.50.71/24

Network Adapter System 2:

10.30.50.72/24

Both systems are able to access each other if the ethernet cables are connected to ports which reside to VLAN 1.

If one of the ethernet cables has been moved to a port which belongs to VLAN 2, the systems are not able to access each other any more.

Will interVLAN solve this issue? What kind of commands are available to facilitate troubleshooting this issue?

Question

How to connect Multiple VLANs which reside on the same L3 Switch?

Best Answer

The default gateway on your systems is incorrect. The systems on VLAN 1 must have their default gateway set to 10.1.2.1, the address of the VLAN 1 interface.

Likewise, the systems on VLAN 2 should have their default gateway set to 10.1.3.1, the interface for VLAN 2

There is nothing you need to change on the switch.