Link to home
Start Free TrialLog in
Avatar of mokkan
mokkan

asked on

Switch Port Activation procedure

Hello,

I need to activate or configure around 14 ports on our project.  One for vlan 10 and one for Vlan20.  What are the things I need to prepare and   What are the commands I need to use .  The switch is  Cisco 3940.

Thanks in advance
Avatar of Predrag Jovic
Predrag Jovic
Flag of Poland image

Assign ports 1/0/1 to 1/0/7 to VLAN 10
Assign ports 1/0/8 to 1/0/14 to VLAN 20
(i am not sure how ports are marked on 3940 Gi1/0/1 or some other way, but issue show interface status should show you numbers)

interface range gi1/0/1 - 7
 switchport mode access
 switchport access vlan 10
!
interface range gi1/0/8 - 14
 switchport mode access
 switchport access vlan 20

Open in new window

On the chance the ports are not contiguous...

interface g1/0/1
 switchport mode access
 switchport access vlan 10
 no shutdown ! in case it's been disabled

interface g1/0/3
 switchport mode access
 switchport access vlan 10
 no shutdown

Open in new window

or
interface range g1/0/1 , g1/0/3 ,  g1/0/5
 switchport mode access
 switchport access vlan 10
 no shutdown 

Open in new window

This question needs an answer!
Become an EE member today
7 DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform.
View membership options
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.