In some cases, you may actually have 3 or 4 IPs.
You'll always have the loopback address, which is labeled as lo. If
you do a ifconfig lo as root, you should see something like this.
[root@r2d2 /root]# ifconfig lo
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:95616 errors:0 dropped:0 overruns:0 frame:0
TX packets:95616 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:11291973 (10.7 Mb) TX bytes:11291973 (10.7 Mb)
You should be able to ssh, and telnet to that address, even though you
should stop using telnet.
[root@r2d2 /root]# ssh 127.0.0.1
[EMAIL PROTECTED]'s password:
Last login: Tue Nov 6 16:19:48 2001 from silicon.aa.ans.net
[root@r2d2 /root]#
If you have a NIC installed and configured, you'll have that IP address
as well.
[root@chewbacca /root]# ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:50:BA:44:11:F2
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:50600 errors:0 dropped:0 overruns:0 frame:0
TX packets:82191 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:42555987 (40.5 Mb) TX bytes:14060451 (13.4 Mb)
Interrupt:7 Base address:0xd000
When you're dialed up, you'll have something for ppp that looks a lot
like the eth0 just it has information for your PPP connection.
If you have more then one NIC in the machine, you'll have a eth0, a
eth1, your ppp, and your lo.
Each one of them is a network device. You will be able to telnet/ssh
to that IP address.
In Windows, if you are dialed up, you have that IP address. If you
then have a NIC that an internal address, you will have two IP address.
You just won't see it for the most part.
tdh
--
--------------------------------------------------------------------
T. Holmes | UNIXTECHS.org | [EMAIL PROTECTED] | UIN: 17021091
--------------------------------------------------------------------
|
| Hi!
|
| I use 56K dialup. And in kppp/Details, I have a "Local" and "Remote" IP.
| By telneting into both IPs, it seems that the "Local" IP is actually my
| computer...
|
| So why do I have 2 IPs? What does it achieve?
|
| Windows doesn't do this, I think.
|
| Thanks,
| pesarif
|
| Want to buy your Pack or Services from MandrakeSoft?
| Go to http://www.mandrakestore.com
-----------------------------Uptime -------------------------------
5:57PM up 20 days, 6:37, 4 users, load averages: 0.00, 0.03, 0.00
-------------------------------------------------------------------
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com