cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
503
Views
0
Helpful
3
Replies

assigning switch ports to switch in cisco.

ahmadqayyum7
Level 1
Level 1

In the diagram below how will I assign switch ports to Switch 1?

trunk.png

3 Replies 3

Reza Sharifi
Hall of Fame
Hall of Fame

If you want the ports as access ports:

 

# interface fastethernet [interface number]

# switchport mode access

# switchport access vlan [vlan number]

 

If you want the ports as trunk ports:

# interface fastethernet [interface number]

# switchport mode trunk

# switchport trunk allowed vlan [vlan numbers]

HTH

 

one more thing. when configuring trunking mode will i give the same interface ranges on all switches?

Hi  @ahmadqayyum7 ,

 

 

When you configure an interface as a trunk, you can leave by default to allow the passage of all the vlan:

 

Switch(config)#interface f0/1

Switch(config-if)#switchport mode trunk

 

or select what vlan you will allow:

 

Switch(config)#interface f0/1

Switch(config-if)#switchport mode trunk

Switch(config-if)#switchport trunk allowed vlan <vlan range>

 

Obviously, the allowed vlan range must be the same at both ends of the link.

 

Regards

Review Cisco Networking products for a $25 gift card