cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2408
Views
0
Helpful
32
Replies

Vlan Problem

cbaze
Level 1
Level 1

I have 2 Cisco CBS350 switches. They are connected by fiber. I am trying to setup a VLAN (20) on port 1 of each switch to isolate the 2 machines so they can only see each other. I have create VLAN 20 on each switch. I have setup each fiber port as Trunked with with access to both VLANS ( 1U, 20T ). I then setup port 1 on each switch as access to VLAN 20 ( 20U ). These 2 machines will not see each other. 

32 Replies 32

Here is an update. I could not get default interface xxxx to work. Is said % Unrecognized command.

 

I configured a older SX550X switch and connected to switch 1 via Fiber cable. Hooked the 2 pcs up and I could ping just fine. 

I did the same this with the SX550 to switch 2 and worked perfect. I would think that means both switches are configured correctly. I then hooked up switch 1 to switch 2 - not working. The only 2 differences is that the 2 switches are both CBS350's and the fiber between the 2 is single mode. 

wow...it does not have the command default interface then. No problem. 

Try to setup IP address on the vlan and ping from one to another, just to make sure you can communicate.

Switch 1

int vlan 30

ip add 192.168.30.1 255.255.255.0

Switch 2

int vlan 30

ip add 192.168.30.2 255.255.255.0

 

Then from switch 2 try to ping switch 1.

PC Behind switch 1 can ping 192.168.30.1 but not 2. PC Behind switch 2 can ping 192.168.30.2 but not .1

and switch 1 can not ping switch 2 ? if yes ,the problem is on the link between switches.

Are the configurartion for the trunk port like this?

!
interface TenGigabitEthernet1/0/22
switchport mode trunk
switchport trunk allowed vlan 1,30
!

Switches cannot ping. Vlan 1 is fine.

Here is the config:

Switch 1
!
interface TenGigabitEthernet1/0/22
switchport mode trunk
switchport trunk allowed vlan 1,30
!

Switch 2
!
interface TenGigabitEthernet1/0/1
spanning-tree link-type point-to-point
switchport mode trunk
switchport trunk allowed vlan 1,30
macro description switch
!next command is internal.
macro auto smartport dynamic_type switch
!

When you say vlan 1 is fine, do you mean, you can ping one switch to another using vlan 1? if yes, no problem with trunk then.

But if you can not ping also using vlan 1, then I would try to remove some config on the below interfaces

Switch 2
!
interface TenGigabitEthernet1/0/1
 no spanning-tree link-type point-to-point
switchport mode trunk
switchport trunk allowed vlan 1,30
no macro description switch
!next command is internal.
no macro auto smartport dynamic_type switch
!

Yes everything connected to VLAN1 communicates just fine. Only VLAN 30 does not work between switches. 

alright, we have a tag problem then. Vlan 1 is not tagged and that´s why it works.

Can you try to remove those line I put "no" on it ?

Do you know can these be removed by port? I am not seeing that.

It should be

conf t

interface TenGigabitEthernet1/0/1
no spanning-tree link-type point-to-point
no macro description switch
no macro auto smartport dynamic_type switch

Here is what is gives:

IT-CBS350-24T#config t
IT-CBS350-24T(config)#interface TenGigabitEthernet1/0/1
IT-CBS350-24T(config-if)#no spanning-tree link-type point-to-point
% Wrong number of parameters or invalid range, size or characters entered
IT-CBS350-24T(config-if)#no macro description switch
% Wrong number of parameters or invalid range, size or characters entered
IT-CBS350-24T(config-if)#

The command it different.

witchxxxxxx(config)# interface TenGigabitEthernet1/0/1
switchxxxxxx(config-if)# no spanning-tree spanning-tree link-type

I have it down to this

!
interface TenGigabitEthernet1/0/1
switchport mode trunk
switchport trunk allowed vlan 1,30
macro auto smartport type switch $native_vlan 1
!

Remove this one more and test please

interface TenGigabitEthernet1/0/1

no macro auto

OK. It is working now! Thank you for you held and patience!! 

 

Review Cisco Networking for a $25 gift card