cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
29945
Views
0
Helpful
8
Replies

Two Routers on One Switch

jwood1650
Level 1
Level 1

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

8 Replies 8

Reza Sharifi
Hall of Fame
Hall of Fame

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?

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.

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

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

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

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?

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

http://www.cisco.com/en/US/tech/tk389/tk689/technologies_configuration_example09186a008009478e.shtml#create1

HTH

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

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card