I am new to networking while reading Network+ Guide Networks books, I came into Subnets but, nowhere they mentioned how many gateways a subnet can have. For example for 192.168.1.0/24 the gateway is 192.168.1.1. Can I have 192.168.1.1 and 192.168.1.2 for this subnet ? In other words can I identify a subnet by its gateway ? or Is the gateway identical for the subne ?
migrated from stackoverflow.com Dec 7 '12 at 17:11
This question came from our site for professional and enthusiast programmers.
I think you're a bit mistaken, hope this helps.
You say for subnet
When a subnet is connected to the internet, most likely there is a router that links the LAN to the Internet. The default gateway is the IP address of the router interface connected to the LAN. Now let's say there are two routers in the LAN, both have an interface in the LAN with the same subnet and both are connected to the Internet. On a PC you can define which default gateway to use, seen as though both will send you to the Internet.