![]() |
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 |
| IP Networking Learn TCP/IP, Internet Protocol, Routing, Routers, Network protocols in this UNIX and Linux forum. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| IP address of machine | harneet2004us | UNIX for Advanced & Expert Users | 3 | 04-16-2008 04:54 PM |
| Getting Unix machine IP address | asutoshch | Shell Programming and Scripting | 6 | 04-30-2006 08:14 AM |
| retrieve IP of local machine | mridula | High Level Programming | 1 | 01-23-2006 01:11 AM |
| How to get IP Address of machine? | Ahsan | High Level Programming | 7 | 10-24-2003 11:16 AM |
| Changing Machine IP address | kkinnon | UNIX for Advanced & Expert Users | 7 | 08-27-2002 02:17 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|||||
|
While Perderabo is right about the myriad of configurations a given box can have, on just about every Unix I've dealt with, 'ifconfig -a' will list the configuration, including IP address, for all your network interfaces. Dunno about the C function.
Also, it's certainly possible to configure a machine with no loopback interface. On BSD for example, just run 'ifconfig lo0 delete'. Of course, that'll probably break a lot of stuff ;-) |
|
|||||
|
Quote:
Code:
# # # uname -srm HP-UX B.11.11 9000/800 # ifconfig -a ifconfig: no such interface # Quote:
|
|
||||
|
"ipconfig -an"
|
| Sponsored Links | ||
|
|