08-18-2015 12:13 PM - edited 03-08-2019 01:24 AM
I'm trying to build the following topology in GNS3 using HSRP (the switches are unmanaged):
I created this topology without enabling R3's f0/1 and R4's f0/0 interfaces and it works, but I'm confused about what IP addresses I should assign these 2 interfaces. A router can't have 2 interfaces in the same segment right? How is this usually handled? I always see diagrams like this, but I'm confused about how the addressing in this kind of setup would work.
Solved! Go to Solution.
08-18-2015 05:15 PM
Hi,
In addition to other friends' responses here, the topologies you are often seeing use different devices: In place of routers, there are multilayer switches capable of both routing and switching, and in place of Sw2 and Sw1, there are managed access layer switches, usually not configured for routing themselves. The multilayer switches would indeed be connected to the access layer switches in a redundant fashion, however, the links are not routed but rather switched - they belong to the same VLAN or they are all trunks - and they do not have their own IP addresses. Therefore, the problem of a router having multiple routed interfaces in the same network never occurs. A multilayer switch would have just a single routed interface called interface Vlan vlan-id configured for a particular VLAN, and that's it.
Best regards,
Peter
08-18-2015 02:33 PM
A router can have multiple addresses in the same subnet.
Start digging in on the following :
First Hop Redundancy Protocol (FHRP)
http://www.cisco.com/c/en/us/products/ios-nx-os-software/first-hop-redundancy-protocol-fhrp/index.html
that should get you sufficient links to various FHRP's available.
08-18-2015 03:21 PM
i should have been more explicit. as in the example above.
08-18-2015 02:42 PM
A router cannot have multiple addresses in the same subnet, it will rejected, however, if you are trying to setup FHRP, you will need to create virtual gateway, that gateway should be configured in the interface level that has to have an address in the same subnet of physical interface or sub-interface. Hope this helps.
08-18-2015 05:15 PM
Hi,
In addition to other friends' responses here, the topologies you are often seeing use different devices: In place of routers, there are multilayer switches capable of both routing and switching, and in place of Sw2 and Sw1, there are managed access layer switches, usually not configured for routing themselves. The multilayer switches would indeed be connected to the access layer switches in a redundant fashion, however, the links are not routed but rather switched - they belong to the same VLAN or they are all trunks - and they do not have their own IP addresses. Therefore, the problem of a router having multiple routed interfaces in the same network never occurs. A multilayer switch would have just a single routed interface called interface Vlan vlan-id configured for a particular VLAN, and that's it.
Best regards,
Peter
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