Default gateway: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m interwiki:sv
Sfoehner (talk | contribs)
m 3rd person singular of "to use"
Line 3: Line 3:
In enterprises, the gateway is the computer that routes the traffic from a workstation to the outside network that is serving the Web pages. In homes, the gateway is the ISP that connects the user to the internet.
In enterprises, the gateway is the computer that routes the traffic from a workstation to the outside network that is serving the Web pages. In homes, the gateway is the ISP that connects the user to the internet.


In enterprises, the gateway node often acts as a proxy server and a firewall. The gateway is also associated with both a router, which use headers and forwarding tables to determine where packets are sent, and a switch, which provides the actual path for the packet in and out of the gateway.
In enterprises, the gateway node often acts as a proxy server and a firewall. The gateway is also associated with both a router, which uses headers and forwarding tables to determine where packets are sent, and a switch, which provides the actual path for the packet in and out of the gateway.


==Usage==
==Usage==

Revision as of 13:25, 19 July 2005

A default gateway is a node on a computer network that serves as an access point to another network.

In enterprises, the gateway is the computer that routes the traffic from a workstation to the outside network that is serving the Web pages. In homes, the gateway is the ISP that connects the user to the internet.

In enterprises, the gateway node often acts as a proxy server and a firewall. The gateway is also associated with both a router, which uses headers and forwarding tables to determine where packets are sent, and a switch, which provides the actual path for the packet in and out of the gateway.

Usage

A default gateway is used by a host when an IP packet's destination address belongs to someplace outside the local subnet (thus requiring more than one hop of Ethernet communication). The default gateway address is usually an interface belonging to the LAN's border router.

Example

An office network is composed of four hosts and a router:

Hosts addresses:

  • 192.168.4.3
  • 192.168.4.4
  • 192.168.4.6
  • 192.168.4.55

Router (this side) address:

  • 192.168.4.1

The network's subnet mask is:

  • 255.255.255.0

Thus the network ranges from addresses 192.168.4.0 to 192.168.4.255.

The office's hosts will send packets addressed to IPs within this range directly, by resolving the destination IP address into a MAC address through an ARP sequence (if not already known through the host's ARP cache) and then enveloping the IP packet into a level 2 (MAC) packet addressed to the destination host.

Packets addressed outside of this range, in the example a packet addressed to 192.168.12.3 would fall in such a category, are instead sent to the default gateway address, in this case to 192.168.4.1, which is resolved into a MAC address as usual. Note that the destination IP address will stay 192.168.12.3, it is just the next-hop physical address that is used, in this case it will be the router's interface physical address.

External Links