How do you find the gateway address and subnet mask?

Answer:
1. Win XP Home and XP Pro

Click Start > Run > type in the acronym for Command:cmd

The 'DOS' box will open, type: ipconfig /all

(Note: there is a SPACE after the word ipconfig) The information displayed will be similar to the below if you have a single address and cable modem;

C:\Documents and Settings\xxxx>ipconfig /all

Windows IP Configuration

Host Name . . . . . . . . . . . . : machine
[local computer name] Primary Dns Suffix . . . . . . . :
[none, would reflect the IP's assignment or proxy] Node Type . . . . . . . . . . . . : Unknown
[usually 'mixed]
IP Routing Enabled. . . . . . . . : No
WINS Proxy Enabled. . . . . . . . : No
DNS Suffix Search List. . . . . . : hsd1.ma.comcast.net.
[IP's Domain Name System search list location]

Ethernet adapter Local Area Connection:
[Your physical adapter]

Connection-specific DNS Suffix . : hsd1.ma.comcast.net.
[usually the closet DNS available]
Description . . . . . . . . . . . : 3Com EtherLink XL 10/100 PCI TX NIC (3C905B-TX)
[Network Card]
Physical Address . . . . . . : 00-10-5A-13-53-F7
[binary stated address]
Dhcp Enabled. . . . . . . . . :Yes
[Dynamic Host Content Provider]
Autoconfiguration Enabled. . . :Yes
[well...yes]
IP Address. . . . . . . . . . . . : 65.12.23.123
[Your outbound IP address]
Subnet Mask. . . . . . . . . . . : 255.255.248.0
[how many 'smaller' networks are available]
Default Gateway. . . . . . . . : 66.31.48.1
[a.k.a. MX Mail eXchange Gateway]
DHCP Server. . . . . . . . . . : 68.87.71.8
[server that provides net content and dynamic routing]
DNS Servers . . . . . . . . . . . : 68.87.71.226
[Server list-to provide alternate routing and name servers]
68.87.73.242
68.87.64.146
Lease Obtained: Friday, April 17, 2009 12:34:21 PM
[When you were assigned your IP Address]
Lease Expires: Tuesday, April 21, 2009 12:34:21 PM
[Lease Expiry time if not renewed within 4 days]

Note: Type the word: exit > then hit the Enter key to close the DOS session.

2.Windows 2000
Click Start > Accesories > Command Prompt.
Type in: ipconfig /all
Similar information to that shown above will be displayed.

3.Windows 98 and ME.
Click Start > Run > type in:winipcfg
Select the PPP Adapter from the drop down box.
Similar information to that shown above will be displayed though in a more attractive format.

Note:

You can get Wntipcfg.exe, a GUI ipconfig, that is compatible with 2000 and XP systems. MS says: "This GUI tool gives you information about your IP configuration". See attached link.

Note: There are comments associated with this question. See the discussion page to add to the conversation.
First answer by Pappathanp. Last edit by Pappathanp. Contributor trust: 4 [recommend contributor recommended]. Question popularity: 254 [recommend question].