General discussion

Locked

default gateway

By fmanerchia ·
Hi all,
In a network with a subnet mask of 255.255.255.0, can the default gateway be anything other than the first 3 octets of the IP address ending in 1? For instance, if the IP of the router is 72.156.28.22, wouldn't the default gateway have to be 72.156.28.1? I have a situation where I have digital cameras at a remote site. I have the internal IP of the camera being forwarded through the router and I have been able to view these cameras remotely. Every so often, these cameras are not accessable. I can still get into the router's interface and ping the router's IP. When I go into the interface and check the status tab, it says that the IP is 72.156.28.22 , the SN mask is 255.255.255.0, and the DF gateway is 65.14.251.37. Does this make sense?
Thanks,
Frank

This conversation is currently closed to new comments.

3 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Collapse -

by XT John In reply to default gateway

The default gateway can be any IP, not having to end in 1 (the last octet). It is the IP of the router that will pass your LAN's data out to the World/Internet. In the case of a cable modem or DSL not using a static IP from the provider, this number can change randomly (especially after a power outage, or the 'lease' time on that IP has run out. The addressing of the nodes within your LAN are controlled by you, whether it's happening via DHCP or assigned by you statically. A router will translate your addresses, to the outside ports addresses using NATing, if yours is set that way. Depending on the routing equipment, there is a way to check what IP the router is using, if indeed it has been 'leased' by your provider. On a Cisco, you can type sh dhcp lease, on less complex routers, check the WAN information.

Collapse -

by fmanerchia In reply to default gateway

XT John,
If the external IP of the router is 72.156.28.22 (which is static), is the default gateway the DSL modem?
Thanks,
Frank

Collapse -

by XT John In reply to default gateway

Your router will have a connection to the cable/dsl modem. Then a connection to your LAN. The connection from your router, to your LAN is the Default Gateway. In a DHCP setting, this number is generally .1, though it doesn't have to be. Whatever IP you use, to connect to your router, using a WEB interface, or Telnet, is the Default Gateway; it's the address your LAN is pointing to, to be sent to the Internet/Outside.

Back to Networks Forum
3 total posts (Page 1 of 1)  

Related Discussions

Related Forums