NETGEAR 7000 Series Managed Switch Administration Guide Version 7.2

Example #2: Assign Ports to VLAN2

This sequence shows how to assign ports to VLAN2, specify that frames will always be transmitted tagged from all member ports, and that untagged frames will be rejected on receipt.

(Netgear Switch) #config

(Netgear Switch) (Config)#interface range 1/0/1-1/0/2

(Netgear Switch) (conf-if-range-1/0/1-1/0/2)#vlan participation include 2 (Netgear Switch) (conf-if-range-1/0/1-1/0/2)#vlan acceptframe vlanonly (Netgear Switch) (conf-if-range-1/0/1-1/0/2)#vlan pvid 2

(Netgear Switch) (conf-if-range-1/0/1-1/0/2)#exit (Netgear Switch) (Config)#vlan port tagging all 2 (Netgear Switch) (Config)#

Example #3: Assign Ports to VLAN3

This example shows how to assign the ports that will belong to VLAN 3, and to specify that untagged frames will be accepted on port 1/0/4.

Note that port 1/0/2 belongs to both VLANs and that port 1/0/1 can never belong to VLAN 3.

(Netgear Switch) (Config)#interface range 1/0/2-1/0/4

(Netgear Switch) (conf-if-range-1/0/2-1/0/4)#vlan participation include 3 (Netgear Switch) (conf-if-range-1/0/2-1/0/4)#exit

(Netgear Switch) (Config)#interface 1/0/4

(Netgear Switch) (Interface 1/0/4)#vlan acceptframe all (Netgear Switch) (Interface 1/0/4)#exit

(Netgear Switch) (Config)#exit

Example #4: Assign VLAN3 as the Default VLAN

This example shows how to assign VLAN 3 as the default VLAN for port 1/0/2.

(Netgear Switch) #config

(Netgear Switch) (Config)#interface 1/0/2 (Netgear Switch) (Interface 1/0/2)#vlan pvid 3 (Netgear Switch) (Interface 1/0/2)#exit (Netgear Switch) (Config)#exit

Virtual LANs

5-3

v1.0, May 2008

Page 45
Image 45
NETGEAR 7000 Series manual Example #2 Assign Ports to VLAN2, Example #3 Assign Ports to VLAN3