Results 1 to 2 of 2

Thread: Assign a range of ports to a vlan

  1. #1
    Join Date
    Jul 2004
    Posts
    2,250
    Rep Power
    0

    Default Assign a range of ports to a vlan

    The commands below has one port at a time but how do i configure multiple ports. I tried interface FA0/1-FA0/12 but im getting errors with that command.

    Switch# configure terminal

    Switch(config)# interface fastethernet0/1

    Switch(config-if)# switchport mode access

    Switch(config-if)# switchport access vlan 2

    Switch(config-if)# end
    The price of anything is the amount of life you exchange for it.
    Henry David Thoreau

  2. #2
    Join Date
    Jun 2003
    Posts
    3,988
    Rep Power
    0

    Default

    I posted it here with your other question
    http://www.techjamaica.com/forums/sh...ad.php?t=50891

    interface range fastethernet 0/X - Y //where X = 1 post and why = last port in sequence. Make sure there is a space between the hyphen and the numbers

    If ports are not contiguous, you can use commas, eg

    interface range fastethernet 0/1, f0/3, f0/7, f0/14

    *NOTE: interface range doesn't work with all switches
    Last edited by zRo ToLeRaNcE; Oct 23, 2007 at 03:11 PM.
    The trouble with learning from experience
    is that the test comes first and
    the lesson afterwards

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •