![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | 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 !! |
|
|
||||
| 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 05:12 PM |
| how to? launch command with string of command line options | TinCanFury | Shell Programming and Scripting | 5 | 04-28-2008 03:06 PM |
| inconsistent ls command display at the command prompt & running as a cron job | rajranibl | Linux | 5 | 07-30-2007 05: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 01: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 06:44 PM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#8
|
|||
|
|||
|
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? |
| Forum Sponsor | ||
|
|
|
#9
|
|||
|
|||
|
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?)
|
|
#10
|
||||
|
||||
|
Quote:
Quote:
Any of the IP addresses shown in netstat/ifconfig can be used to access the system as long as that IP is accessible from the rest of the network. |
|
#11
|
|||
|
|||
|
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 |
|||
| Google The UNIX and Linux Forums |