hit counter script

Cisco 300 Series Cli Manual page 499

Small business 300 series managed switches command line interface guide release 1.3
Hide thumbs Also See for 300 Series:
Table of Contents

Advertisement

Virtual Local Area Network (VLAN) Commands
78-21075-01 Command Line Interface Reference Guide
switchxxxxxx(config-if)#
switchxxxxxx(config-if)#
switchxxxxxx
#show vlan
Vlan
Name
----
----------------- --------------------------- ------------ -------------
1
1
Example 2—The following example shows a case where a macro is defined that
adds ports to VLANs. Some of the ports are forbidden members in some of the
VLANs. The example shows that the system notifies the user that it cannot add the
forbidden ports, but does not fail the macro and it continues to a normal end.
switchxxxxxx
# configure
switchxxxxxx
(config)# vlan database
switchxxxxxx
(config-vlan)# vlan 2-5
switchxxxxxx
(config-vlan)# exit
switchxxxxxx
(config)#interface range 151-2
switchxxxxxx
(config-if-range)# switchport forbidden vlan add 2-3
switchxxxxxx
(config-if-range)#exit
switch345780(config)#
switch345780(config)# macro name Trunk_VLAN
Enter macro commands one per line. End with the character '@'.
switchport mode trunk
switchport trunk allowed vlan add $1stVLAN-$2ndVLAN
@
switchxxxxxx
(config)# interface range 151-4
switchxxxxxx
(config-if-range)# macro apply Trunk_VLAN $1stVLAN 2 $2ndVLAN 5
An interface cannot become a member of a forbidden VLAN <System notifies user
that an illegal action has been requested but continues executing the macro>
switchxxxxxx
(config-if-range)# end
switchxxxxxx
#show vlan
switchport mode access
switchport access vlan
Ports
gi1-28,Po1-8
2
Type
Authorization
Default
Required
32
499

Advertisement

Table of Contents
loading

Table of Contents

Save PDF