Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Community Member

Two Routers on One Switch

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

Everyone's tags (2)
8 REPLIES
VIP Super Bronze

Two Routers on One Switch

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?

Community Member

Two Routers on One 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.

VIP Super Bronze

Two Routers on One 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

Community Member

Two Routers on One Switch

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

VIP Super Bronze

Two Routers on One Switch

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

Community Member

Two Routers on One Switch

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?

VIP Super Bronze

Two Routers on One Switch

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

Purple

Re: Two Routers on One Switch

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

17091
Views
0
Helpful
8
Replies
CreatePlease to create content