2 ports on router using same subnet?

JEDI

Lifer
Sep 25, 2001
29,391
2,736
126
I have 2 switches and 1 router (26xx).

I want to connect both switches to the router, and if 1 switch fails then the traffic automatically goes through the other switch.

I read that you can't have 2 ports on one router using the same subnet? If this is true, how can I (easily) implement the above?

THX
 

tjmaxz

Junior Member
Oct 8, 2002
19
0
0
I'm assuming you are talking about a Cisco router. I'm not sure why you would want to do that, because if one switch fails, don't you have to manually reconnect all the cables to the 2nd switch? If you have 2 NIC cards on the PC and each connected to a different switch, wouldn't you have assigned them into different subnets anyways?
 

Kadarin

Lifer
Nov 23, 2001
44,296
15
81
Isn't it possible on the Cisco to configure a vlan and create a virtual interface to route packets outside of that vlan? If your switches support spanning-tree, that would be one way of doing it.
 

JEDI

Lifer
Sep 25, 2001
29,391
2,736
126
but to do spanning tree, won;t the 2 ports on the router need to be bridged?
 

ScottMac

Moderator<br>Networking<br>Elite member
Mar 19, 2001
5,471
2
0
You cannot have the same network address (or subnet address) on two ports (or if you do, you can't route between them and it FUBARs the routing tables). In a Cisco, you can do Integrated Route-Bridge (IRB) - the two (or more) interfaces are bridged, then the bridged pair route to the rest of the ports of the router.

Spanning tree has nothing to do with it.

Good Luck

Scott
 

spidey07

No Lifer
Aug 4, 2000
65,469
5
76
Its not something you would want to do. In order for them to be on the same subnet you would do some bridging as Scott said.

The only other thing I can think of is maybe HSRP on the two interfaces, although I don't know if that is really possible since both ethernet ports are on the same router.

Maybe describe what your requirements are and we can come up with a solution. If one switch fails then that whole network is down anyway. For real redundancy you'd use two routers with HSRP between them. That way if a switch fails the other router takes over as the default gateway for any clients.
 

Kadarin

Lifer
Nov 23, 2001
44,296
15
81
Originally posted by: ScottMac
You cannot have the same network address (or subnet address) on two ports (or if you do, you can't route between them and it FUBARs the routing tables). In a Cisco, you can do Integrated Route-Bridge (IRB) - the two (or more) interfaces are bridged, then the bridged pair route to the rest of the ports of the router.

Spanning tree has nothing to do with it.

Good Luck

Scott

I'm used to Foundry equipment here.. say for example where you'd create a Layer 2 vlan containing e1 and e2, and create a virtual interface ve1 for that vlan. Switch 1 links to e1 and switch 2 connects to e2. Switch 1 and 2 are also connected to each other. Use spanning tree to block the redundant port and provide failover. Can you not do this on the Cisco box? What am I missing?
 
sale-70-410-exam    | Exam-200-125-pdf    | we-sale-70-410-exam    | hot-sale-70-410-exam    | Latest-exam-700-603-Dumps    | Dumps-98-363-exams-date    | Certs-200-125-date    | Dumps-300-075-exams-date    | hot-sale-book-C8010-726-book    | Hot-Sale-200-310-Exam    | Exam-Description-200-310-dumps?    | hot-sale-book-200-125-book    | Latest-Updated-300-209-Exam    | Dumps-210-260-exams-date    | Download-200-125-Exam-PDF    | Exam-Description-300-101-dumps    | Certs-300-101-date    | Hot-Sale-300-075-Exam    | Latest-exam-200-125-Dumps    | Exam-Description-200-125-dumps    | Latest-Updated-300-075-Exam    | hot-sale-book-210-260-book    | Dumps-200-901-exams-date    | Certs-200-901-date    | Latest-exam-1Z0-062-Dumps    | Hot-Sale-1Z0-062-Exam    | Certs-CSSLP-date    | 100%-Pass-70-383-Exams    | Latest-JN0-360-real-exam-questions    | 100%-Pass-4A0-100-Real-Exam-Questions    | Dumps-300-135-exams-date    | Passed-200-105-Tech-Exams    | Latest-Updated-200-310-Exam    | Download-300-070-Exam-PDF    | Hot-Sale-JN0-360-Exam    | 100%-Pass-JN0-360-Exams    | 100%-Pass-JN0-360-Real-Exam-Questions    | Dumps-JN0-360-exams-date    | Exam-Description-1Z0-876-dumps    | Latest-exam-1Z0-876-Dumps    | Dumps-HPE0-Y53-exams-date    | 2017-Latest-HPE0-Y53-Exam    | 100%-Pass-HPE0-Y53-Real-Exam-Questions    | Pass-4A0-100-Exam    | Latest-4A0-100-Questions    | Dumps-98-365-exams-date    | 2017-Latest-98-365-Exam    | 100%-Pass-VCS-254-Exams    | 2017-Latest-VCS-273-Exam    | Dumps-200-355-exams-date    | 2017-Latest-300-320-Exam    | Pass-300-101-Exam    | 100%-Pass-300-115-Exams    |
http://www.portvapes.co.uk/    | http://www.portvapes.co.uk/    |