I usually just do this
example:
[root@alpha /]# ifconfig eth0 10.0.0.2 netmask 255.255.255.0
and
[root@alpha /]# route add default gw 10.0.0.1
linux will figure the rest out for you and add the route for your interface.
the result is this
[root@alpha /]# ifconfig
eth0 Link encap:Ethernet HWaddr xx:xx:xx:xx:xx:xx
inet addr:10.0.0.2 Bcast:10.0.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:149634 errors:0 dropped:0 overruns:0 frame:0
TX packets:179902 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:5 Base address:0xdc00
and
[root@alpha /]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
10.0.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 10.0.0.1 0.0.0.0 UG 0 0 0 eth0
However to answer the question....................
windows will caugh up the info you need
C:\WINDOWS>ipconfig
Windows IP Configuration
0 Ethernet adapter :
IP Address. . . . . . . . . : 10.0.0.2
Subnet Mask . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . : 10.0.0.1
well ok I lied this does not say anything about network...
but if you look at the ip and the netmask you can figure it out.
the 255 means use the number in that location of the ip because it is the network the 0 in the netmask means use a number over 0 ... the broadcast would be ending in 255
10.0.0.0 is the network here. broadcast 10.0.0.255
if you get something like ip 192.168.0.129 mask 255.255.255.128
then the network would be 192.168.0.128 etc...
most networks will end with 0 unless the are subnetted.
Don't forget about DNS unless you want to memorize a lot of ip addresses.
[root@alpha /]# cat /etc/resolv.conf
domain myserver.xyz.home.com
nameserver 32.47.124.34
nameserver 32.47.124.35
search myserver.xyz.home.com
