Use ifconfig command to configure a network interface as well as to display information such as ip address, netmask etc:
Code:
ifconfig -a
/sbin/ifconfig
/sbin/ifconfig eth0
ifconfig | less
Output see 2nd line, look for Word Mask:
Code:
eth0 Link encap:Ethernet HWaddr 00:30:48:5A:BF:46
inet addr:10.5.123.2 Bcast:10.5.123.63 Mask:255.255.255.192
inet6 addr: fe80::230:48ff:fe5a:bf46/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:124376 errors:0 dropped:0 overruns:0 frame:0
TX packets:465572 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:43916510 (41.8 MiB) TX bytes:265373418 (253.0 MiB)
Interrupt:177