Você está na página 1de 4

ProCurve VLAN Configuration

For those who are not familar with VLANs, please see basic VLAN configuration. The instructions below demonstrate how to configure (2) VLANs with a tag (trun ) port to pass the VLANs between each switch. The diagram below show the topolog! for this e"ample#

As !ou can see, $ ha%e a de%ice connected to a port on each switch in the same VLAN. The idea here is to ha%e the same VLAN on both switches and allow both de%ices communicate o%er that VLAN. N&T'# when going from switch to switch a crosso%er cable is usuall! re(uired. )owe%er, the )* *rocur%e perform auto +,$-+,$./ which eliminates the need for one. First, we will login %ia the console port to configure the switch. 0ee below#
ProCurve Switch 2810-48G# conf t ProCurve Switch 2810-48G(config)# vlan 100 ProCurve Switch 2810-48G(config)# en# ProCurve Switch 2810-48G# $how vlan Statu$ an# Counter$ - V !" %nformation &a'imum V !"$ to $u((ort ) 8 Primar* V !" ) +,-!. /0V !" &anagement V !" ) 802112 V !" %+ "ame Statu$ -------------- ------------ -----------1 +,-!. /0V !" Port-4a$e# 100 V !"100 Port-4a$e# ProCurve Switch 2810-48G# $how run name V !"100

Voice ----"o "o

3um4o ----"o "o

5unning configuration) 6 37022! Configuration ,#itor6 Create# on relea$e #"111108

ho$tname 9ProCurve Switch 2810-48G9 $nm(-$erver communit* 9(u4lic9 .nre$tricte# vlan 1 name 9+,-!. /0V !"9 untagge# 1-48 i( a##re$$ #hc(-4oot( e'it vlan 100 name 9V !"1009 e'it

As !ou can see, we created a VLAN with a VLAN name, displa!ed all the VLANs currentl! configured, and %iewed the running configuration. This configuration will not be sa%ed if the switch is rebooted until !ou issue a 1wr mem1 command. Ne"t, we will add a second VLAN and tag the arbitrar! ports to trun them through. *orts designated as 1untagged1 belong to a specific VLAN and will onl! be able to communicate with other ports on the same VLAN. *orts designated as 1tagged1 ports belong to multiple VLANs and will be able to communicate with multiple VLANs. 0ee the configuration below#
ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve ProCurve Switch Switch Switch Switch Switch Switch Switch Switch Switch Switch Switch Switch Switch 2810-48G# conf t 2810-48G(config)# vlan 100 2810-48G(vlan-100)# untagge# 1-11 2810-48G(vlan-100)# tagge# 24 2810-48G(vlan-100)# e'it 2810-48G(config)# conf t 2810-48G(config)# vlan 200 name 9V !"2009 2810-48G(config)# vlan 200 2810-48G(vlan-200)# untagge# 1:-18 2810-48G(vlan-200)# tagge# 24 2810-48G(vlan-200)# e'it 2810-48G(config)# $h ru 2810-48G# $h ru

5unning configuration) 6 37022! Configuration ,#itor6 Create# on relea$e #"111108 ho$tname 9ProCurve Switch 2810-48G9 $nm(-$erver communit* 9(u4lic9 .nre$tricte# vlan 1 name 9+,-!. /0V !"9 untagge# 12;1<-48 i( a##re$$ #hc(-4oot( no untagge# 1-11;1:-18 e'it vlan 100 name 9V !"1009 untagge# 1-11 no i( a##re$$ tagge# 24 e'it vlan 200 name 9V !"2009 untagge# 1:-18

no i( a##re$$ tagge# 24 e'it ProCurve Switch 2810-48G# wr mem ProCurve Switch 2810-48G# $h vlan Statu$ an# Counter$ - V !" %nformation &a'imum V !"$ to $u((ort ) 8 Primar* V !" ) +,-!. /0V !" &anagement V !" ) 802112 V !" %+ "ame Statu$ -------------- ------------ -----------1 +,-!. /0V !" Port-4a$e# 100 V !"100 Port-4a$e# 200 V !"200 Port-4a$e#

Voice ----"o "o "o

3um4o ----"o "o "o

2emember, no $* addresses ha%e been configured for the switch or an! VLANs which reside on this switch. The e"amples and configuration abo%e allowed de%ices on port 34 of each switch (members of VLAN 255) to communicate. 6! plugging into different VLANs (VLAN 355 and VLAN 255) the de%ices were unable to communicate. A 1wr mem1 command was issued here to ensure the configuration was sa%ed if the switch is rebooted. To configure an $* address for VLANs 355 and 255, see below#
ProCurve Switch 2810-48G# conf t ProCurve Switch 2810-48G(config)# vlan 100 ProCurve Switch 2810-48G(vlan-100)# i( a##re$$ 1011=11=1200 2==12==12==10 ProCurve Switch 2810-48G(vlan-100)# e'it ProCurve Switch 2810-48G(config)# vlan 200 ProCurve Switch 2810-48G(vlan-200)# i( a##re$$ 1011=1181200 2==12==12==10 ProCurve Switch 2810-48G(vlan-200)# $h vlan Statu$ an# Counter$ - V !" %nformation &a'imum V !"$ to $u((ort ) 8 Primar* V !" ) +,-!. /0V !" &anagement V !" ) 802112 V !" %+ "ame Statu$ Voice 3um4o -------------- ------------ ------------ ----- ----1 +,-!. /0V !" Port-4a$e# "o "o 100 V !"100 Port-4a$e# "o "o 200 V !"200 Port-4a$e# "o "o ProCurve Switch 2810-48G(vlan-200)# $h ru 5unning configuration) 6 37022! Configuration ,#itor6 Create# on relea$e #"111108 ho$tname 9ProCurve Switch 2810-48G9 $nm(-$erver communit* 9(u4lic9 .nre$tricte# vlan 1 name 9+,-!. /0V !"9 untagge# 12;1<-48 i( a##re$$ #hc(-4oot(

no untagge# 1-11;1:-18 e'it vlan 100 name 9V !"1009 untagge# 1-11 i( a##re$$ 1011=11=1200 2==12==12==10 tagge# 24 e'it vlan 200 name 9V !"2009 untagge# 1:-18 i( a##re$$ 1011=1181200 2==12==12==10 tagge# 24 e'it ProCurve Switch 2810-48G(vlan-200)#

&nce the $* addresses are set on each VLAN, de%ices in those VLANs will be able to ping the $* address of the VLAN as long as the! ha%e the same networ and subnet scheme.

Você também pode gostar