Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 477
  • Last Modified:

New VLAN on Two Cisco 2960's

Hello All,


I want to create a VLAN that encompasses four ports, two on each of my brand new Cisco 2960 switches.

I have already created the same VLAN on both switches and assigned it to ports 21 and 22 on both:

vlan database
vlan 10 name studio

on interface 21 and 22 I issued:

switchport access vlan 10

When I show vlan I see vlan 10 and ports 21 and 22 assigned on each switch.

At this point two computers hooked up to ports 21 and 22 should see each other correct?  I cannot get a ping response though. That is issue one. Maybe a computer problem as one of them may be flaky but I want to confirm that the config above is correct.

The second part is trunking between the two switches and how vlan info is carried on that. At this point I have two interfaces 23 and 23 trunked to the other switch.  When I do a show interface trunk it shows the two interfaces, they are both trunking, have 802.1q active , have the default vlan 1 as native and say they are trunking all vlans. I set them up with this basic command on each interface, nothing more:

switchport mode trunk

Is this sufficient to allow vlan 10 on both switches to communicate?


Thanks in advance.
0
Primedius
Asked:
Primedius
  • 3
  • 3
1 Solution
 
Ken BooneNetwork ConsultantCommented:
Yes - but on the 2960 switches you don't need to go into vlan database to set up the vlans anymore.

config t
vlan 10
name studio

That all it should take.

Issue the command show vlan to make sure the vlans exist on each switch

Do a show interface status command and make sure all of the ports you are using are in a connected or trunked state.
0
 
PrimediusAuthor Commented:
So my setup is sound?

Ok, I will test again shortly.
0
 
Ken BooneNetwork ConsultantCommented:
One thing to add..

You might be testing too quickly..

On your access ports for the PCs add this command:

spanning-tree portfast

This allows the ports to skip the first 2 stages of spanning tree on the port.  These stages take 30 secs and no traffic can be sent out the port during that time.  Add those commands to the access port.

But yes your config is sound.
0
 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

 
PrimediusAuthor Commented:
So I add this command to  access ports 21 and 22 on both switches which are part of this vlan?

Not the trunk?
0
 
Ken BooneNetwork ConsultantCommented:
that is correct.. that means those two ports should come right up.  Which means 2 PCs within the same switch on that vlan should be able to communicate.  If they can't you have a definite PC problem.

Then the trunk port will take 30 seconds to come up due to spanning-tree.  Once they are up you should be able to ping across the 2 switches on that vlan
0
 
PrimediusAuthor Commented:
Works like  charm.  Thanks for your help.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now