[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: How do I get the IP address?
- From: John Summerfield <summer OS2 ami com au>
- To: redhat-list redhat com
- Subject: Re: How do I get the IP address?
- Date: Mon, 1 Feb 1999 06:58:46 +0800 (WST)
On Fri, 29 Jan 1999, Brent Sims wrote:
> Greetings,
>
> Is there a command which will give me the IP address of a machine
> I'm logged onto? Or perhaps some way to determine what it is without
> having superuser access.
Hosts don't have IP addresses. Network interfaces too. Here's how to find
them from the commandline, and the result on one of my machines:
[summer emu summer]$ /sbin/ifconfig
lo Link encap:Local Loopback
inet addr:127.0.0.1 Bcast:127.255.255.255 Mask:255.0.0.0
UP BROADCAST LOOPBACK RUNNING MTU:3584 Metric:1
RX packets:69481 errors:0 dropped:0 overruns:0
TX packets:69481 errors:0 dropped:0 overruns:0
eth0 Link encap:Ethernet HWaddr 00:C0:F0:20:25:83
inet addr:192.168.0.2 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:2829 dropped:0 overruns:0
Interrupt:9 Base address:0x6100
eth0:0 Link encap:Ethernet HWaddr 00:C0:F0:20:25:83
inet addr:192.168.0.22 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
eth1 Link encap:Ethernet HWaddr 00:E0:29:07:13:95
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:1681876 errors:0 dropped:0 overruns:0
TX packets:2079261 errors:0 dropped:0 overruns:0
Interrupt:10 Base address:0x6000
eth1:0 Link encap:Ethernet HWaddr 00:E0:29:07:13:95
inet addr:192.168.1.22 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
eth1:1 Link encap:Ethernet HWaddr 00:E0:29:07:13:95
inet addr:192.168.1.23 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
eth1:2 Link encap:Ethernet HWaddr 00:E0:29:07:13:95
inet addr:192.168.1.24 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
eth1:3 Link encap:Ethernet HWaddr 00:E0:29:07:13:95
inet addr:192.168.1.25 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0
TX packets:0 errors:0 dropped:0 overruns:0
[summer emu summer]$
A few minutes ago it had this one too:
[summer emu summer]$ /sbin/ifconfig ppp0
ppp0 Link encap:Point-to-Point Protocol
inet addr:203.55.31.114 P-t-P:203.55.31.37 Mask:255.255.255.0
POINTOPOINT MTU:1500 Metric:1
RX packets:19771 errors:607 dropped:607 overruns:0
TX packets:16856 errors:0 dropped:0 overruns:0
[summer emu summer]$
Sometimes interfaces gave more than one IP address;-)
--
Cheers
John Summerfield
http://os2.ami.com.au/os2/ for OS/2 support.
Configuration, networking, combined IBM ftpsites index.
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]