Specifications
Configuring VLANs
March 15, 2011 Page 17 of 20
Example Configuration
ThefollowingshowsanexampleN‐SeriesdeviceconfigurationusingthestepsinProcedure 4.
ThisexampleconfiguresapolicythatensuresthatIPtrafficreceivedonthespecifiedingressports
willbemappedtoVLAN2,whileallothertypesoftrafficwillbemappedtoVLAN3.
1. TwoVLANsare
created:VLAN2andVLAN3.
2. Ports1through5ontheGigabitEthernetmoduleinslot4areconfiguredasegressportsfor
theVLANswhileports8through10ontheGigabitEthernetmoduleinslot5areconfigured
asingressportsthatwilldothepolicyclassification.
3. Policy
profilenumber1iscreatedthatenablesPVIDoverrideanddefinesthedefaultbehavior
(classifytoVLAN3)ifnoneoftheclassificationrulescreatedfortheprofilearematched.
4. Administrativerulesarecreatedthatapplypolicyprofilenumber1toallframesreceivedon
theingressportsge.5.8through10.
5. Classificationrulesarecreatedforpolicyprofilenumber1thatassignIPframestoVLAN2.
TherulesidentifyIPframesbyusingtheetherprotocolparameter,whichclassifiesonthe
TypefieldintheheadersofLayer2EthernetIIframes,andtheprotocoldataof0x0800(IP
type),0x0806
(ARPtype),and0x 8035(RARPtype).
Switch1(su)->set vlan create 2, 3
Switch1(su)->set vlan egress 2 ge.4.1-2
Switch1(su)->set vlan egress 3 ge.4.3-5
Switch1(su)->set port ingress-filter ge.5.8-10 disable
Switch1(su)->set policy profile 1 name protocol_based_vlan pvid-status enable
pvid 3
Switch1(su)->set policy rule admin-profile port ge.5.8 port-string ge.5.8
admin-pid 1
Switch1(su)->set policy rule admin-profile port ge.5.9 port-string ge.5.9
admin-pid 1
Switch1(su)->set policy rule admin-profile port ge.5.10 port-string ge.5.10
admin-pid 1
Switch1(su)->set policy rule 1 ether 0x0800 mask 16 vlan 2
Switch1(su)->set policy rule 1 ether 0x0806 mask 16 vlan 2
Switch1(su)->set policy rule 1 ether 0x8035 mask 16 vlan 2
Monitoring VLANs
Table 2describestheshowcommandsthatdisplayinformationaboutVLANconfigurations.Refer
toyourdevice’sCLIdocumentationforadescriptionoftheoutputofeachshowcommand.
7. Configure the classification rules that will define
the protocol to filter on and the VLAN ID to which
matching frames will be assigned.
set policy rule profile-index
{protocol data [mask mask]} [vlan
vlan]
Procedure 4 Configuring Protocol-Based VLAN Classification (continued)
Step Task Command(s)
Table 2 Displaying VLAN Information
Task Command
Display all existing VLANs. show vlan