×

Warning message

  • Cisco Support Forums is in Read Only mode while the site is being migrated.
  • Cisco Support Forums is in Read Only mode while the site is being migrated.

2 3750 ip base switch intervlan routing between vlans

Unanswered Question
Oct 7th, 2014
User Badges:

Hello,

I have 2 3750-e ipbase switches on a port channel trunk encap 1.q i want to configure 2 vlans on each one and have them talk to eachother how can i make it work
like switch 1
vlan 10
interface 192.168.1.10 255.255.255.0
vlan20
no ip
switch 2
vlan 10
no ip
vlan20
interface 192.168.2.10 255.255.255.0

computer connected to switch 2 with ip 192.168.2.200 cannot ping 192.168.1.10

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Reza Sharifi Tue, 10/07/2014 - 15:01
User Badges:
  • Super Bronze, 10000 points or more
  • Cisco Designated VIP,

    2017 LAN

Hi,

You first need to decide what switch is going to do the routing between the vlans for you.

Your config above shows that one switch has an SVI for vlan 10 and the other has an SVI for vlan 20.

If you want switch-1 to route between vlans, then you need to configure both SVIs on that switch.

Example:

switch-1

vlan 10

name test-vlan-10

exit

inter vlan 10

ip add 192.168.1.10 255.255.255.0

no sh

exit

switch-1

vlan 20

name test-vlan-20

inter vlan 20

ip add 192.168.2.10 255.255.255.0

no sh

now you need to add the trunk to the interface connecting to switch-2

example:

switch-1

interface gi0/1

switcport

switchport mode trunk

switchport trunk enc dot.q

 

Do the same for switch-2

interface gi0/1

switcport

switchport mode trunk

switchport trunk enc dot.q

 

HTH

 

 

 

Jess Probasco Tue, 10/07/2014 - 20:15
User Badges:

You also need to make sure you have the "ip routing" command on the switch with the 2 SVI's

rfrancis11 Wed, 10/08/2014 - 06:43
User Badges:

on switch 2 do i have to also make the vlan's?? but with no ip address? and map the ports i want to the appropriate vlan? like so:

switch-2

vlan 10

name test-vlan-10

exit

switch-2

vlan 20

name test-vlan-20

exit

int gigabitethernet1/0/1

switchport mode access

switchport access vlan 10

exit

int gigabitethernet1/0/2

switchport mode access

switchport access vlan 20

exit

 

Thanks again!!

Jess Probasco Wed, 10/08/2014 - 14:38
User Badges:

Yes if you are not using VTP client/server mode between the two switches or if you have the VTP mode set to transparent you will need to create the VLAN's like above in order to assign the switch ports to that VLAN like above.

 

 

 

Actions

This Discussion