Tuesday, April 21, 2015

Sample VLAN HP



ProCurve Switch 2810-48G# conf t
ProCurve Switch 2810-48G(config)# vlan  100
ProCurve Switch 2810-48G(vlan-100)# untagged 1-11
ProCurve Switch 2810-48G(vlan-100)# tagged 24
ProCurve Switch 2810-48G(vlan-100)# exit
ProCurve Switch 2810-48G(config)# conf  t
ProCurve Switch 2810-48G(config)# vlan 200 name "VLAN200"
ProCurve Switch 2810-48G(config)# vlan 200
ProCurve Switch 2810-48G(vlan-200)# untagged 13-16
ProCurve Switch 2810-48G(vlan-200)# tagged 24
ProCurve Switch 2810-48G(vlan-200)# exit
ProCurve Switch 2810-48G(config)# sh ru
ProCurve Switch 2810-48G# sh ru

Running configuration:
; J9022A Configuration Editor; Created on release #N.11.06
hostname "ProCurve Switch 2810-48G"
snmp-server community "public" Unrestricted
vlan 1
   name "DEFAULT_VLAN"
   untagged 12,17-48
   ip address dhcp-bootp
   no untagged 1-11,13-16
   exit
vlan 100
   name "VLAN100"
   untagged 1-11
   no ip address
   tagged 24
   exit
vlan 200
   name "VLAN200"
   untagged 13-16
   no ip address
   tagged 24
   exit
ProCurve Switch 2810-48G# wr mem
ProCurve Switch 2810-48G# sh vlan
 Status and Counters - VLAN Information
  Maximum VLANs to support : 8
  Primary VLAN : DEFAULT_VLAN
  Management VLAN :
  802.1Q VLAN ID Name         Status       Voice Jumbo
  -------------- ------------ ------------ ----- -----
  1              DEFAULT_VLAN Port-based   No    No
  100            VLAN100      Port-based   No    No
  200            VLAN200      Port-based   No    No

To configure an IP address for VLANs 100 and 200, see below:
ProCurve Switch 2810-48G# conf t
ProCurve Switch 2810-48G(config)# vlan 100
ProCurve Switch 2810-48G(vlan-100)# ip address 10.15.15.200 255.255.255.0
ProCurve Switch 2810-48G(vlan-100)# exit
ProCurve Switch 2810-48G(config)# vlan 200
ProCurve Switch 2810-48G(vlan-200)# ip address 10.15.16.200 255.255.255.0
ProCurve Switch 2810-48G(vlan-200)# sh vlan
 Status and Counters - VLAN Information
  Maximum VLANs to support : 8
  Primary VLAN : DEFAULT_VLAN
  Management VLAN :
  802.1Q VLAN ID Name         Status       Voice Jumbo
  -------------- ------------ ------------ ----- -----
  1              DEFAULT_VLAN Port-based   No    No
  100            VLAN100      Port-based   No    No
  200            VLAN200      Port-based   No    No
ProCurve Switch 2810-48G(vlan-200)# sh ru
Running configuration:
; J9022A Configuration Editor; Created on release #N.11.06
hostname "ProCurve Switch 2810-48G"
snmp-server community "public" Unrestricted
vlan 1
   name "DEFAULT_VLAN"
   untagged 12,17-48
   ip address dhcp-bootp
   no untagged 1-11,13-16
   exit
vlan 100
   name "VLAN100"
   untagged 1-11
   ip address 10.15.15.200 255.255.255.0
   tagged 24
   exit
vlan 200
   name "VLAN200"
   untagged 13-16
   ip address 10.15.16.200 255.255.255.0
   tagged 24
   exit
ProCurve Switch 2810-48G(vlan-200)#


ip route 192.168.5.0 255.255.255.0 10.254.254.1
ip route 192.168.6.0 255.255.255.0 10.254.254.1
ip route 0.0.0.0 0.0.0.0 192.168.4.1

No comments:

Post a Comment