A gateway is a routing device that passes traffic between different subnets and networks.
A computer will know some routes, but not the routes to every address on the Internet. A gateway will likewise not have this information, but will at least know the addresses of other gateways it can hand the traffic off to. Your default gateway is on the same subnet as your computer, and is the gateway your computer relies on when it doesn't know how to route traffic.
The default gateway is typically very similar to your IP address, in that many of the numbers may be the same. However, the default gateway is not your IP address. To see what default gateway you are using, follow the steps below for your operating system.
Windows
- In Windows 7, click
Start
. In the search box, typecmd
, and then pressEnter
.In Windows XP, from the
Start
menu, clickRun...
. In the "Open:" field, typecmd
, and then clickOK
. - This will open the command prompt. At the prompt, enter
ipconfig
. This will display your network information, including your default gateway.
Mac OS X
- From the Apple menu, select
System Preferences...
. - In System Preferences, from the
View
menu, selectNetwork
. - Select the appropriate port. For example, choose
Ethernet
for broadband connections,AirPort
for wireless, orInternal Modem
for dial-up. - Click
Advanced...
, and in the sheet that opens, click theTCP/IP
tab. The number next to "Router:" is your default gateway.
EXAMPLE:
Windows IP Configuration
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::4344:99e9:9999:88%87
IPv4 Address. . . . . . . . . . . : A.B.C.D
Subnet Mask . . . . . . . . . . . : 255.255.254.0
Default Gateway . . . . . . . . . : E.F.G.H
The ketters A-H represent the actual ip address numbers.
IPV6 address was modified as well.