Vlan configuration example, Cli examples, Example #1: create two vlans – NETGEAR 7000 Series Managed Switch User Manual

Page 44

Advertising
background image

NETGEAR 7000 Series Managed Switch Administration Guide Version 7.2

5-2

Virtual LANs

v1.0, May 2008

VLAN Configuration Example

The diagram in this section shows a switch with four ports configured to handle the traffic for two
VLANs. port 1/0/2 handles traffic for both VLANs, while port 1/0/1 is a member of VLAN 2 only,
and ports 1/0/3 and 1/0/4 are members of VLAN 3 only. The script following the diagram shows
the commands you would use to configure the switch as shown in the diagram.

CLI Examples

The following examples show how to create VLANs, assign ports to the VLANs, and assign a
VLAN as the default VLAN to a port.

Example #1: Create Two VLANs

Use the following commands to create two VLANs and to assign the VLAN IDs while leaving the
names blank.

Figure 5-1

(Netgear Switch) #vlan database

(Netgear Switch) (Vlan)#vlan 2

(Netgear Switch) (Vlan)#vlan 3

(Netgear Switch) (Vlan)#exit

Advertising