nixCraft Linux Forum

nixCraft

Linux Tech Support Forum

Linux find subnet mask commands

This is a discussion on Linux find subnet mask commands within the Linux software forums, part of the Linux Getting Started category; Hello, It is me again. I would like to know how do find out subnet mask and ip address information ...


Go Back   nixCraft Linux Forum > Linux Getting Started > Linux software

Register FAQ Members List Calendar Forgotten your password? Mark Forums Read
  #1 (permalink)  
Old 12-06-2006, 01:29 AM
Member
User
 
Join Date: Feb 2005
Posts: 66
Rep Power: 0
chiku
Default Linux find subnet mask commands

Hello,

It is me again.

I would like to know how do find out subnet mask and ip address information under Ubuntu Desktop system and Cent OS remote server.

Regards

Chiku

__________________
There's no place like 127.0.0.1
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 12-06-2006, 03:28 AM
monk's Avatar
Senior Member
User
 
Join Date: Jan 2005
Location: Tibet
My distro: Debian GNU/Linux
Posts: 482
Rep Power: 5
monk will become famous soon enough monk will become famous soon enough
Default

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
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
See what commands have been run on your Linux server sweta Getting started tutorials 5 04-30-2008 04:38 AM
OpenBSD get or display network card IP address Subnet mask information rockdalinux Getting started tutorials 0 06-15-2007 11:06 PM
list of IPs used in a subnet raghuram Networking, Firewalls and Security 1 02-21-2007 10:07 AM
Linux find and delete files cbzee Linux software 4 12-20-2006 01:01 PM
linux commands write protect attributes Linux software 0 01-17-2006 05:52 PM


All times are GMT +5.5. The time now is 09:05 PM.


Powered by vBulletin® Version 3.7.4 - Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36