Specifications

Configuring VLANs
March 15, 2011 Page 14 of 20
Example Configuration
ThefollowingshowsanexampleSSeriesdeviceconfigurationusingthestepsinProcedure 1.In
thisexample,VLAN100iscreatedandnamedVLANRED.Portsge.1.2,1.3and1.4areassignedto
VLAN100andaddedtoitsegresslist.VLAN100isthenconfiguredasaroutinginterfacewith
an
IPaddressof120.20.20.24.
Switch1(su)->set vlan create 100
Switch1(su)->set vlan name 100 VLANRED
Switch1(su)->set port vlan ge.1.2-4 100
The PVID is used to classify untagged frames as they
ingress into a given port. Would you like to add the selected
port(s) to this VLAN's untagged egress list and remove them
from all other VLANs untagged egress list (y/n) [n]?
NOTE: Choosing 'y' will not remove the port(s) from previously
configured tagged egress lists.
y
Switch1(su)->configure terminal
Switch1(su-config)->interface vlan 100
Switch1(su-config-intf-vlan.0.100)->ip address 120.20.20.1/24
Switch1(su-config-intf-vlan.0.100)->no shutdown
IfyouwanttoconfigureaporttodropincomingframesthatdonothaveaVLANIDthatmatches
aVLANIDontheport’segresslist,usethesetportingressfiltercommand.Forexample:
Switch1(su)->set port ingress-filter ge.1.2-4 enable
Ifyouwanttoconfigureaporttodiscardtaggedoruntaggedincomingframes,usethesetport
discardcommand.Forexample,toconfiguretheportstodroptaggedframesoningress:
Switch1(su)->set port discard ge.1.2-4 tagged
Creating a Secure Management VLAN
IfyouareconfiguringanEnterasysdeviceformultipleVLANs,itmaybedesirabletoconfigurea
managementonlyVLAN.ThisallowsastationconnectedtothemanagementVLANtomanage
thedevice.Italsomakesmanagementsecurebypreventingconfigurationthroughportsassigned
tootherVLANs.
11c. N-Series/S-series/K-Series configuration: configure terminal
interface vlan vlan_id
ip address ip-address ip-mask
no shutdown
Note: Each VLAN interface must be configured for routing separately using the interface
command shown above. To end configuration on one interface before configuring another, type
exit at the command prompt. Enabling interface configuration mode is required for completing
interface-specific configuration tasks.
Procedure 1 Static VLAN Configuration (continued)
Step Task Command(s)
Note: Refer to Procedure 1to determine which platform-specific commands may apply to your
device when following this example configuration.