07-19-2005 12:18 AM - edited 03-05-2019 11:35 AM
Hi,
Is there anyway to assign VLAN into a group of ports in a Catalyst switch?
For example, if i want to assign port 1-3 to VLAN admin,
vlan 2 name admin
interface vlan 2
ip address 10.1.1.1 255.255.255.0
interface e0/1
switchport access vlan 2
interface e0/2
switchport access vlan 2
interface e0/3
switchport access vlan 2
Compare to other switches which I've configured (e.g. Extreme Networks)..
There are only few commands to be typed:
create vlan admin
config admin ipaddress 10.1.1.1 /24
config admin add port 1-3
Thanks.
07-19-2005 12:30 AM
Yes, however it depends on which model of switch you are running as the IOS range command is not supported on older switches:
e.g.
On CatOS you can issue the following which changes ports 2/1 to 2/24 inclusive into VLAN3
# set vlan 3 2/1-24
On IOS you can do similar by issuing:
# interface range fastethernet 2/1 - 24
# switchport access vlan 3
HTH
PJD
07-19-2005 02:09 AM
Thanks Paddy.
Just a note for Steven: take careful note of the spaces in the command interface range fastethernet 2/1 - 24
Kevin Dorrell
Luxembourg
07-19-2005 02:36 AM
More on this command: http://www.cisco.com/en/US/products/sw/iosswrel/ps1834/products_feature_guide09186a00800803ff.html.
Cheers,
Josef.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide