Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

InterVALN Routing in Switch 3850

Status
Not open for further replies.

paramjotsingh

Technical User
Sep 22, 2015
13
CA
I am trying to establish the link between the computer form different VLANS on separate switches. Computers are pinging to each other form different VLAN within the switch. But not able to communicate other VLAN on different switch. My scenario is as follows.

No Router in the environment. Trying to make it work through switches.

Switch 1 (Layer 3 Switch)

I created first VALN with ID 116 and assigned IP 10.1.16.254
Assigned port fa0/1.
PC1 is connected to fa0/1 and assigned to VLAN 116. IP of computer 10.1.16.1 (Gateway 10.1.16.254)

I created second VLAN with ID 131, IP 10.1.31.254
Assigned port fa0/2.
PC2 is connected to fa0/2 and assigned to VLAN 131. IP of computer 10.1.31.1 (Gateway 10.1.31.254)

Switch 2 (Layer 3 Switch)

I created third VALN with ID 132 and assigned IP 10.1.32.254
Assigned port fa0/1.
PC3 is connected to fa0/1 and assigned to VLAN 132. IP of computer 10.1.32.1 (Gateway 10.1.32.254)

I created fourth VALN with ID 230 and assigned IP 10.2.30.254
Assigned port fa0/2.
PC4 is connected to fa0/1 and assigned to VLAN 230. IP of computer 10.2.30.1 (Gateway 10.2.30.254)

--------------

PC1 and PC2 communicating each other and it is the same in case PC3 & PC 4

Now I want to make communication between the VLANS of both the switches. I tried using RIPv2 but didn't work. I also assigned ip 192.168.0.1 to g0/1 on switch 1 and 192.168.0.2 to g0/1 on switch 2 but this method also didn't work.

Could anybody help me in what type of command I am missing to make communication.

Thanks
 
Did to you tried enabling trunk?
Mainly it is used to carry trffic between switch
 
Yes. I tried trunking too by the following commands

switchport trunk encapsulation dot1q
switchport mode trunk

But didn't work out. Trunking is Layer 2 capability ?
 
For the future, switch configurations would be helpful. Having said that, I am assuming:
All subnets that you associated with VLANs are /24 (mask is 255.255.255.0) and I assume 192.168.0.1 and 192.168.0.2 belong to the same subnet as well.

1.
Sw1 connection to Sw2:
on each port add:
Code:
no switchport access
2.
On sw1:
Code:
ip route 10.1.32.0 255.255.255.0 192.168.0.2
ip route 10.2.30.0 255.255.255.0 192.168.0.2
3.
On Sw2:
Code:
ip route 10.1.16.0 255.255.255.0 192.168.0.1
ip route 10.1.31.0 255.255.255.0 192.168.0.1
 
Thanks for an update but I stacked the switches and able to create all the vlan in one entity and IP Routing did it's magic. But my next question is can I create same VLANs (IP and ID) on 3750-X switch and connect them through making two ports as Etherchannel on both the switches by assigning the IP and make Static Routes.

I need some more ports for the existing VLANs in Stack 3850 that is why I am planning to attach 3750-X to it.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top