VLAN

 

Introduction

 

A virtual LAN, commonly known as a VLAN, is a group of hosts with a common set of requirements that communicate as if they were attached to the same broadcast domain, regardless of their physical location. A VLAN has the same attributes as a physical LAN, but it allows for end stations to be grouped together even if they are not located on the same network switch. Network reconfiguration can be done through software instead of physically relocating devices.

 

 

Network Diagram

 

Configuration

 

To assign an ip address to an ethernet interface.

Okapi(config)# interface FastEthernet 0 . 2
Okapi(config-if-eth)# ip address 192.168.1.2/16
Okapi(config-if-eth)# no shut

 

To create a VLAN device with VLAN-ID of 2 on the eth0 device

Okapi(config)# interface FastEthernet 0 . 2
Okapi(config-subif-eth)# ip address 172.16.155.1/16