![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help Required: Command to find IP address and command executed of a user | loggedout | Security | 2 | 08-06-2008 08:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 06:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | SuSE | 5 | 07-30-2007 08:26 AM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | HP-UX | 1 | 10-16-2006 04:16 PM |
| How to use more than one MPE command STREAM with Unix command in a single shell? | bosskr | Shell Programming and Scripting | 0 | 09-19-2006 09:44 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
both, netstat -in and ipconfig -a show multiple entries on some machines.
One some machnes they just display one entry apart from lo0. netstat -in Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo0 ............ hme0 .................. hme1 ................... How to identify,which is the current machine IP address out of hme0,hme1 etc? |
|
||||
|
But vvejendla, you can have multiple ip address depending on the network interfaces you have ? that is, you can have installed two nics on the same server either with different ip addresses, and both are the MACHINE ip addresses. In order to know the "ip address" of the machine, you would need the "interface" name you want to lookup. This is not only on unix, but on every other operating system out there. (am I right?)
|
|
||||
|
i have the following function in my .bashrc ( I'm running solaris)
getip () { /sbin/ifconfig eri0 | awk '/inet/ { print $2 } ' | sed -e s/addr:// } it prints just my ip |
| Sponsored Links | ||
|
|