03-05-2012 02:57 PM - edited 03-07-2019 05:21 AM
Can I have two different routers (different subnets) on one cisco 3500XL switch and still be able to communicate between the two? If so how can I do it?
Thanks
03-05-2012 03:15 PM
Are you talking about 2 physically separate routers connecting to a 3500XL switch or you mean you need to have 2 vlans each on a different subnet on the same 3500XL switch?
03-05-2012 03:22 PM
Well I have two routers 192.168.2.1 and 192.168.1.1, I would like to connect each router to the switch along with devices from each subnet but keep each subnet seperate....is that possible or do I need another switch.
03-05-2012 03:33 PM
Yes, that is possible. You create 2 vlans on the 3500 switch. Lets say you create vlan 100 and 200, then add port lets say 10 to vlan 100 and port 20 to vlan 200. Now you have one PC connected to port 10 and one PC connected to port 20.
You also have 2 links (ports 23 and 24) port 23 connectes to router-1 and port 24 connects to router-2. You also add port 23 to vlan 100 and port 24 to vlan 200. Now on each interface on the router connected to each port configure one subnet. On router-1 192.168.1.1/24 and router-2 192,168,2.1/24. Don't forget to assign PC-1 an ip address in the range of 192.168.1.2/24 and PC-2 192.168.2.2/2'
HTH
03-05-2012 03:48 PM
Cool, thanks...one last question...still new to this, can you give me a sample of the way the config would be for creating the vlans? Just one line, I should be able to figure it out from there.
Thanks
03-05-2012 04:17 PM
On the switch all you should need is 2 layer-2 vlans as follows:
vlan 100
name test-100
vlan 200
name test-200
Then add the proper ports to each vlan.
HTH
03-05-2012 04:29 PM
I get this when trying to set the vlan's:
3500XL-Switch(config)#vlan 100
^
% Invalid input detected at '^' marker.
I'm using version 12.0
All I need to do is log in and issue:
vlan 100
name (whatever I want to call it)
Then do:
interface FastEthernet0/XX
vlan XXX
Correct?
03-05-2012 04:35 PM
Do you have full access to the switch?
follow this link to configure the vlans and add the interfaces to them. No need to configure any IP
HTH
03-05-2012 05:45 PM
the 3500 is ancient so you have to create the layer 2 vlans this way.
switch#vlan database
vlan 100 , enter
vlan 200, enter
exit
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide