Re: [Vserver] How to discover the "real" IP Address?

2006-07-09 Thread Boniforti Flavio

All IP adresses you see are real IP adresses of the host. Choose any.


That's not my case, because the host systems have just *one* NIC, on
which *all* IP addresses are bound. And as I know the hostnames of the
host systems, and the corresponding IP, I need to discover on *which*
of the two host systems my VServer resides.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to discover the "real" IP Address?

2006-07-09 Thread Bodo Eggert
On Fri, 7 Jul 2006, Boniforti Flavio wrote:

> Hello list,
> I've got a question (and I'm a newbie, too!): as I'm logged as "root"
> on one of several Virtual Servers on a machine (each Virtual Server
> having its own IP address), how can I check and discover the "real"
> hosts IP Address and hostname?

All IP adresses you see are real IP adresses of the host. Choose any.
-- 
Top 100 things you don't want the sysadmin to say:
66. What do you mean you needed that directory?
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to discover the "real" IP Address?

2006-07-08 Thread Michael S. Zick
On Sat July 8 2006 07:11, Boniforti Flavio wrote:
> 2006/7/8, Guenther Fuchs <[EMAIL PROTECTED]>:
> 
> > So you meant to discover, on which machine you reside, when not having
> > main host access but knowing some of their details, right?
> 
> Genau! :-)
> 
> > BF> Now, I tried following approach:
> > BF> pinging localhost gives me 0.0 ms times
> > BF> pinging SERVER1 gives me 0.0 ms times
> > BF> pinging SERVER2 gives me times form 0.1 to 0.4...
> >
> > BF> Is it correct if I assume (without any definite certainty) that my
> > BF> VServer resides on SERVER1?
> >
> > This assumption looks correct to me, although it's not certain. Look
> > into ARP tables and MAC adresses for more certainity.
> 
> Well, looking at ARP tables I can't get anything about the "real" IPs
> of the hosts. Is it correct, when I assume that *all* the IPs bound to
> the real interface have THE SAME MAC Address? If yes, is there any way
> to get the MAC address from "outside"?
>

man arping

> ___
> Vserver mailing list
> Vserver@list.linux-vserver.org
> http://list.linux-vserver.org/mailman/listinfo/vserver
> 
> 
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to discover the "real" IP Address?

2006-07-08 Thread Boniforti Flavio

2006/7/8, Guenther Fuchs <[EMAIL PROTECTED]>:


So you meant to discover, on which machine you reside, when not having
main host access but knowing some of their details, right?


Genau! :-)


BF> Now, I tried following approach:
BF> pinging localhost gives me 0.0 ms times
BF> pinging SERVER1 gives me 0.0 ms times
BF> pinging SERVER2 gives me times form 0.1 to 0.4...

BF> Is it correct if I assume (without any definite certainty) that my
BF> VServer resides on SERVER1?

This assumption looks correct to me, although it's not certain. Look
into ARP tables and MAC adresses for more certainity.


Well, looking at ARP tables I can't get anything about the "real" IPs
of the hosts. Is it correct, when I assume that *all* the IPs bound to
the real interface have THE SAME MAC Address? If yes, is there any way
to get the MAC address from "outside"?
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to discover the "real" IP Address?

2006-07-08 Thread Guenther Fuchs
Hi there,

on Saturday, July 8, 2006 at 3:54:58 AM there was posted:

BF> 2006/7/7, Guenther Fuchs <[EMAIL PROTECTED]>:
GF> As for security reasons: I don't think it's (easily) possible -
GF> and furthermore, I don't think, it _should_ be (easily) possible.

BF> OK, let's say I know the hostname of TWO Servers (real ones) which
BF> both host a bunch of VServers.
BF> I therefore am able to know their IPs, right?

So you meant to discover, on which machine you reside, when not having
main host access but knowing some of their details, right?

BF> Now, I tried following approach:
BF> pinging localhost gives me 0.0 ms times
BF> pinging SERVER1 gives me 0.0 ms times
BF> pinging SERVER2 gives me times form 0.1 to 0.4...

BF> Is it correct if I assume (without any definite certainty) that my
BF> VServer resides on SERVER1?

This assumption looks correct to me, although it's not certain. Look
into ARP tables and MAC adresses for more certainity.

-- 
regards 'n greez,

Guenther Fuchs
(aka "muh" and "powerfox")

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to discover the "real" IP Address?

2006-07-07 Thread Boniforti Flavio

2006/7/7, Guenther Fuchs <[EMAIL PROTECTED]>:

As for security reasons: I don't think it's (easily) possible - and
furthermore, I don't think, it _should_ be (easily) possible.


OK, let's say I know the hostname of TWO Servers (real ones) which
both host a bunch of VServers.
I therefore am able to know their IPs, right?

Now, I tried following approach:
pinging localhost gives me 0.0 ms times
pinging SERVER1 gives me 0.0 ms times
pinging SERVER2 gives me times form 0.1 to 0.4...

Is it correct if I assume (without any definite certainty) that my
VServer resides on SERVER1?
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to discover the "real" IP Address?

2006-07-07 Thread Guenther Fuchs
Hi there,

on Friday, July 7, 2006 at 9:27:31 PM there was posted:

BF> I've got a question (and I'm a newbie, too!): as I'm logged as "root"
BF> on one of several Virtual Servers on a machine (each Virtual Server
BF> having its own IP address), how can I check and discover the "real"
BF> hosts IP Address and hostname?

As for security reasons: I don't think it's (easily) possible - and
furthermore, I don't think, it _should_ be (easily) possible.

-- 
regards 'n greez,

Guenther Fuchs
(aka "muh" and "powerfox")

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


Re: [Vserver] How to discover the "real" IP Address?

2006-07-07 Thread Baltasar Cevc

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi Flavio,


how can I check and discover the "real"
hosts IP Address and hostname?

What do you mean by "real"?
There should not be any direct way to discover the host (the main linux
distro, which has access to all the vservers and can administer them)
from inside a guest (one of the vservers); if you want to know the guest
IP, use "ip addr show" (ifconfig will not work as expected, it's 
deprecated

anyway).

You can get the system hostname using "hostname"; the network hostname 
(which

is the same as far as I know) can also be displayed using "uname -n".
If you are interested in the hostname associated with that IP (which is 
what's
important to network services), use "host " if you have the 
bind

DNS tools installed (which should be the case in most distributions).

Hope that helps,
Baltasar

((( Baltasar Cevc


) World wide web:
  * http://www.openairkino.net/ (a project for the local youth; German 
only)

  * http://technik.juz-kirchheim.de/ (programming and admin projects)
  * http://baltasar.cevc-topp.de/ (private homepage)
) Phone:
  +49 176 232 20 822
)
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (Darwin)

iD8DBQFErrwXp2YsmzTbIwYRAts0AJsEZeWZoX1xRAfNvrO3y/NRCoWbigCfbaEG
omrWDq+ksSIW1XyYnFSqXnw=
=SnLF
-END PGP SIGNATURE-

___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] How to discover the "real" IP Address?

2006-07-07 Thread Boniforti Flavio

Hello list,
I've got a question (and I'm a newbie, too!): as I'm logged as "root"
on one of several Virtual Servers on a machine (each Virtual Server
having its own IP address), how can I check and discover the "real"
hosts IP Address and hostname?

Regards
Flavio.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


[Vserver] How to discover the "real" IP Address?

2006-07-07 Thread Boniforti Flavio

Hello list,
I've got a question (and I'm a newbie, too!): as I'm logged as "root"
on one of several Virtual Servers on a machine (each Virtual Server
having its own IP address), how can I check and discover the "real"
hosts IP Address and hostname?

Regards
Flavio.
___
Vserver mailing list
Vserver@list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver