Unsolved

This post is more than 5 years old

6 Posts

54280

May 23rd, 2013 03:00

vlan communication between 2 switches 5524

Hello

I am trying to setup a VLAN network between 2 switches 5524 connected with each other through the 10Gbit port:

- VLAN 2 with subnet 192.168.2.1 netmask 255.255.128.0 between port 12-17

- VLAN 3 with subnet 192.168.130.1 netmask 255.255.128.0 between port 18-23

I set the port SFP in trunk mode and all the port related to VLAN in access mode

I can't seem to ping devices when one is connected on 1 switch and the one machine connected on the other switch.

Here is parts of my configuration related to that:

Switch 1:

no spanning-tree
vlan database
vlan 2-3
exit
interface vlan 2
name VLAN2
ip address 192.168.2.1 255.255.128.0
ip dhcp relay enable
!
interface vlan 3
name VLAN3
ip address 192.168.130.1 255.255.128.0
ip dhcp relay enable
!
interface gigabitethernet1/0/12
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/13
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/14
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/15
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/16
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/17
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/18
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/19
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/20
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/21
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/22
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/23
qos cos 7
switchport access vlan 3
!
interface tengigabitethernet1/0/1
switchport mode trunk
!
 

Switch 2:

no spanning-tree
vlan database
vlan 2-3
exit
interface vlan 2
name VLAN2
ip address 192.168.2.128 255.255.128.0
!
interface vlan 3
name VLAN3
ip address 192.168.130.128 255.255.128.0
!
interface gigabitethernet1/0/12
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/13
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/14
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/15
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/16
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/17
qos cos 7
switchport access vlan 2
!
interface gigabitethernet1/0/18
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/19
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/20
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/21
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/22
qos cos 7
switchport access vlan 3
!
interface gigabitethernet1/0/23
qos cos 7
switchport access vlan 3
!
interface tengigabitethernet1/0/1
switchport mode trunk
 
Can you see the problem? Thank you for your help.

6 Posts

May 23rd, 2013 07:00

Hello

I tried to do so but the command is not taken into account.

For example when I type:

console(config)# interface tengigabitethernet 1/0/1

console(config-if)# switchport mode trunk

console(config-if)# switchport trunk allowed vlan add 2-3  (here cannot write tagged or untagged as it is in trunk mode)

console(config-if)#exit

Then i do a show running-config:

interface tengigabitethernet1/0/1

 switchport mode trunk

!

NO SIGN OF THE PARAMETER switchport trunk allowed vlan add 2-3

I tried then to do it in general mode but no success either.

Any suggestion??

To answer your question, right now I want VLAN to be separate.

I only need VLAN to communicate within itself: Devices connected on ports of VLAN2 of Switch 1 with other devices on ports VLAN2 of Switch 2

When/If I need VLAN 2 and 3 to communicate, I will use a router.

11 Posts

May 23rd, 2013 12:00

for your trunk port you should only need:

switchport mode trunk

switchport trunk allowed vlan add 2-3

11 Posts

May 23rd, 2013 12:00

or maybe try individual:

switchport trunk allowed vlan add 2

switchport trunk allowed vlan add 3

6 Posts

May 24th, 2013 02:00

I feel like the command "switchport trunk allowed vlan add 2-3" doesnt show because the trunk mode allows vlan 2 and 3 by default (it's the same as switchport mode access it is the default mode so even if I type it it doesnt show on the running-config.

The workstations are communicating just fine on VLAN1... but only vlan 1!! I am trying to see what is the difference between VLAN1 and the others.

The DHCP is disabled for now, I am entering the IP addresses manually, for example:

Station A : 192.168.2.2 (on Switch1)

Interface VLAN2 (on Switch 1): 192.168.2.1 netmask 255.255.128.0

Station B (on Switch2) : 192.168.2.129

Interface VLAN 2 (on Switch 2): 192.168.2.128 netmask 255.255.128.0

Later on, I will set up a DHCP with DHCP pools dividing the subnet in 2 or more if I add Switches

But I don't think I have set up any default gateway. Could that be the problem??

No Events found!

Top