Assigning ports to a vlan – ATL Telecom R1-SW Ethernet Switch User Manual
Page 128
R1-SW24L2B User’s Manual
7-4
To delete a VLAN, use the no vlan command in Global configuration mode. The following
example deletes the VLAN whose id is
2
:
(config)# no vlan id 2
(config)#
Assigning Ports to a VLAN
You should add ports that belong to the same broadcast domain to a VLAN after defining a
VLAN. When ports are assigned to a VLAN, a broadcast domain with assigned ports is created.
If you add ports belonging to the default VLAN to other VLAN, the ports are deleted from the
default VLAN and are added to other VLAN.
To assign ports a VLAN, perform this task in Global configuration mode:
Table 7-3 Assigning ports to a VLAN
Commands
Task
vlan
{id
| name
port
1. Assign the specified ports to the VLAN.
y
y
y
y
end
2. Return to Privileged mode.
show vlan
[id
name
3. Verify the VLAN configuration.
y
y
The following example adds the
ports 2/1
to the VLAN whose id is
2
:
(config)# vlan id 2 port fastethernet 1/1
(config)# end
# show vlan id 2
VLAN Name
Status Slot/Ports
---- ---------------- --------
------------------------------------
2 test
active 1/1
VLAN Interface MTU STP Private Promisc port
---- ------------ ------ --------
-------- ------------
2 disable 1500 enable disable
None
#