Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 ?

share|improve this question

migrated from stackoverflow.com Dec 7 '12 at 17:11

This question came from our site for professional and enthusiast programmers.

1 Answer 1

up vote 3 down vote accepted

I think you're a bit mistaken, hope this helps.

You say for subnet 192.168.1.0/24, the default gateway is 192.168.1.1, it's one possibility. You can choose anything in the range of 192.168.1.1-255 as the default gateway.

A subnet is a logical grouping of connected network devices. Nodes on a subnet tend to be located in close physical proximity to each other on a LAN.

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.

Source: http://compnetworking.about.com/od/workingwithipaddresses/g/bldef_subnet.htm

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.