Ads 468x60px

Monday, July 11, 2011

VLAN Technology - 2

In this section, we will discuss about remaining VLAN types in continuation in last post VLAN technology.

MAC-based VLAN

The MAC-based VLAN divides VLAN ID for packets according to the source MAC address of the received packets. The untag packets received in the port are process as follows according to different configuration:
  • If the source MAC and the MAC address of MAC-based VLAN are consistent, and the In port of the packets is allocated to the VLAN of the corresponding VLAN ID, the packet is allocated to the VLAN ID corresponding to the MAC VLAN.
  • If the packets have no MAC set by the matched MAC VLAN, the packets are divided to the default VLAN ID of the port.


IP subnet-based VLAN

The IP subnet-based VLAN divides VLAN ID for packets according to the source IP address of the received packets. The untag packets received in the port are process as follows according to different configuration:

  • If the source IP address is in the network segment of IP subnet-based VLAN, and the In port of the packets is allocated to the VLAN of the corresponding VLAN ID, the packet is allocated to the VLAN ID corresponding to the network segment.
  • If the packets have no network segment set by the matched IP subnet VLAN, the packets are divided to the default VLAN ID of the port.


Protocol-based VLAN

The protocol-based VLAN divides VLAN ID for packets according to the encapsulation format and protocol type of the received packets. The protocol VLAN defines the protocol template. The protocol template is composed of the frame encapsulation format and the protocol type. The same port can be configured with multiple protocol templates. When the protocol VLAN is enabled in the port, the port is configured with protocol template, the protocol VLAN process the received untag packets as follows according to different configuration.

  • If the packet matches the protocol template, and the In port of the packet is allocated to the VLAN of the corresponding VLAN ID, the packet is allocated to VLAN ID corresponding to the port configuration protocol template.
  • If the packets have no matched protocol template, the packets are divided to the default VLAN ID of the port. 
Till now we have seen, types of VLANs. Now we will have a example for each type of VLAN configuration. 


Port-Based VLAN Example

Configuring VLAN for Access Port

Command
Description
switch#configure terminal
Users enter the global configuration mode from the privilege user mode .
switch(config)#port 0/1
Enter port 0/1 configuration status
switch(config-port-0/1)#port mode access
Configure the type of a port as Access
(The default type is Access)
switch(config-port-0/1)#port access vlan 10
Add the port into VLAN 10.

 Configuring VLAN of a Trunk Port

Command
Description
switch#configure terminal
Users enter the global configuration mode from the privilege user mode
switch(config)#port 0/1
Enter port 0/1 configuration status
switch(config-port-0/1)#port mode trunk
Configure the type of the port as Trunk
switch(config-port-0/1)#port trunk allowed vlan 10 - 20
The port permits VLAN 10–20 to pass
switch(config-port-0/1)#port trunk pvid vlan 30
Configure the default VLAN of the port
switch(config-port-0/1)#vlan dot1q tag pvid
Configure the default VLAN packets of a Trunk port to be sent with Tag

Configuring VLAN of Hyrbid Port

Command
Description
switch#configure terminal
Users enter the global configuration mode from the privilege user mode
switch(config)#port 0/1
Enter port 0/1 configuration status
switch(config-port-0/1)#port mode hybrid
Configure the type of the port as Hybrid.
switch(config-port-0/1)# port hybrid untagged vlan 10
The port is added to VLAN 10. The VLAN packets are sent without tag
switch(config-port-0/1)#port hybrid tagged  vlan 30
The port is added to VLAN30. The VLAN packets are sent with tag.
switch(config-port-0/1)# port hybrid pvid vlan 20
Configure the default VLAN of the port

MAC-Based VLAN Example

Command
Description
switch#configure terminal
Users enter the global configuration mode from the privilege user mode
switch(config)# mac-vlan mac-address 1.1.1 vlan 10
Configure the items in the MAC VLAN table, to assign the Untagged of the corresponding MAC into the VLAN.
switch(config)#port 0/1
Enter port 0/1 configuration status
switch(config-port-0/1)# mac-vlan enable
Configure the port to enable the MAC VLAN function

IP Subnet-Based VLAN Example

Command
Description
switch#configure terminal
Users enter the global configuration mode from the privilege user mode
switch(config)# ip-subnet-vlan ipv4 100.100.100.100 mask 255.255.255.0 vlan 10
Configure the items in IP subnet VLAN table, to assign the Untagged of the corresponding network segment to the VLAN.
switch(config)#port 0/1
Enter port 0/1 configuration status
switch(config-port-0/1)# ip-subnet-vlan enable
Configure the port enabling IP subnet VLAN function

Protocol-Based VLAN Example

Command
Description
switch#configure terminal
Users enter the global configuration mode from the privilege user mode
switch(config)#protocol-vlan profile 1 frame-type ETHERII ether-type 0x8200
Configure the protocol template
switch(config)#port 0/1
Enter port 0/1 configuration status
switch(config-port-0/1)# protocol-vlan enable
Configure the port to enable the protocol VLAN function
switch(config-port-0/1)#protocol-vlan profile 1 vlan 10
Configure the port to match the corresponding VLAN of the protocol template

Hope this post can help you with better understanding of VLAN technology and types of VLAN and related configuration. 
This configuration is tested on Maipu switches.

For any feedback, Plz comment with Name and Mail Id. New users can use Name/URL option.

11 comments:

Unknown said...

QF0721
christian louboutin shoes
uggs outlet
chanel outlet
tommy hilfiger outlet
coach outlet store
five fingers shoes
lakers jersey
toms outlet
juicy couture outlet
soccer shoes
supra shoes
lebron 12 shoes
mlb jerseys
49ers jersey
ray ban sunglasses outlet,ray ban sunglasses,ray ban,rayban,ray bans,ray ban outlet,ray-ban,raybans,ray ban wayfarer,ray-ban sunglasses,raybans.com,rayban sunglasses,cheap ray ban
north face jackets,north face,the north face,northface,north face outlet,north face jackets clearance,the north face
tory burch sandals
christian louboutin uk
coach outlet online
chicago bears jerseys
san antonio spurs jerseys
colts jerseys
nike free run uk
michael kors uk

Unknown said...

burberry bags
burberry handbags
burberry tote
gucci bags
hermes birkin
cheap coach purses
cheap gucci belts
coach tote bags
chanel bags prices
chanel wallet on a chain
michael kors bags on sale
michael kors cluthch
gucci clutch
hermes handbags
chanel clutch bag
longchamp bags
coach handbags sale
louis vuitton shoulder bag
gucci handbags
mcm purses
gucci bag
coach outlet store online
louis vuitton travel bag
louis vuitton watllets
coach crossbody
burberry handbag
michael kors handbags on sale
burberry purses
gucci backpack
gucci diaper bag

xumeiqing said...

151215meiqing
christian louboutin outlet
gucci handbags
coach outlet
uggs on sale
uggs clearance
christian louboutin outlet
canada goose outlet
cheap ugg boots
air jordan retro
louis vuitton outlet
jordan 11
louis vuitton
cheap oakley sunglasses
true religion jeans
cheap oakleys
prada outlet
michael kors uk
canada goose outlet
christian louboutin
michael kors outlet clearance
retro jordans
coach outlet
louis vuitton outlet
concords 11
michael kors outlet
ugg australia
uggs on sale
michael kors outlet
ugg outlet
louis vuitton outlet
adidas originals
hollister uk
celine
adidas superstar
uggs on sale
nike trainers
louis vuitton handbags
ray ban outlet
cheap uggs
uggs outlet

Unknown said...

2016-1-8 leilei
longchamp outlet
michael kors outlet
kate spade outlet
nike running shoes
michael kors
michael kors outlet
longchamp pas cher
nike uk
coach outlet online
michael kors handbags
jordan retro 4
nike air max 95
louis vuitton
louis vuitton purses
nike roshe run
ugg boots
micahel kors
ralph lauren
canada goose jackets
coach factory outlet online
north face outlet
michael kors outlet
sac longchamp
louis vuitton outlet
adidas superstars
louis vuitton outlet
hermes outlet
ugg boots
true religion
coach outlet online
michael kors outlet online
nike air max
louboutin shoes
fake oakleys
nike outlet store
ray ban sunglasses
louis vuitton outlet onlne
coach outlet online
air jordan shoes
tiffany jewelry

chen wish said...

nfl mlb nba nhl snapbacks
asics shoes
air max 90
air max 2017
air max 2016
free flyknit 5.0
lunarglide shoes
kobe bryant shoes
james jordan shoes
hypervenom soccer shoes

Unknown said...

true religion outlet
michael kors handbags clearance
ugg boots outlet
louboutin sale
canada goose sale
ugg on sale
polo ralph lauren pas cher
coach factory outlet online
cheap jerseys
louboutin outlet
zhi20170105

Unknown said...

the north face jackets
kd shoes
louis vuitton
ferragamo shoes
michael kors handbags
canada goose jackets
true religion jeans
reebok trainers
uggs outlet
ugg outlet
20170214lck

Unknown said...

rolex watches,rolex watches,swiss watches,watches for men,watches for women,omega watches,replica watches,rolex watches for sale,rolex replica,rolex watch,cartier watches,rolex submariner,fake rolex,rolex replica watches,replica rolex
swarovski jewelry
cartier watches for sale
hollister
mulberry outlet
oakley sunglasses
michael kors outlet
louis vuitton
coach outlet online
ray ban sunglasses
20170317caihuali

adidas nmd said...

polo outlet
polo ralph lauren
louis vuitton pas cher
titans jersey
saints jerseys
san francisco 49ers jerseys
oakley sunglasses
polo ralph lauren
true religion jeans
ralph lauren outlet

Unknown said...

adidas yeezy 350 boost
Nike Kyrie 4 Celtics
nike kyrie S1Hybrid
Air Jordan 1 Custom Black
new jordans for kids
air jordan 4 GS
Air Jordan 11 Black
Air Jordan 31 Low
adidas crazy explosive 2017
pandora charms sale clearance
cc20180620

Benson said...

gucci belt
ferragamo belts
kd shoes
coach outlet online
yeezy boost 350
coach handbags
yeezy boost 500
moncler jackets
jordan shoes
nike huarache

Post a Comment

Related Posts Plugin for WordPress, Blogger...