ip-address of virtual linux machine

Discussion in 'Parallels Desktop for Mac' started by karmar, Jun 4, 2007.

  1. karmar

    karmar Bit poster

    Messages:
    3
    Hi,

    What is the "standard" ip-address of my virtual machine (hostname -i does not give me a valid ip-address). I am using openSuse on parallels desktop and want to ssh from my mac to the linux machine. Firewalls etc. is open for ssh.


    Thanks in advance,
    Martin
     
  2. Leauki

    Leauki Hunter

    Messages:
    157
    Ask Linux: "ifconfig"

    Why would "hostname -i" give you an IP address?
     
  3. karmar

    karmar Bit poster

    Messages:
    3
    I don't have ifconfig installed. Why shouldn't hostname -i work? I am using that all the time on my cluster, see man hostname:


    -i, --ip-address
    Display the IP address(es) of the host.
     
  4. itsdapead

    itsdapead Hunter

    Messages:
    177
    Because "hostname" probably relies on there being an entry for your hostname on the DNS server or the local /etc/hosts file.

    You need ifconfig which tells you the IP addresses of your network interfaces - not necessarily the same thing as the IP assigned to your host name. It almost certainly is installed but only available to root or by using "sudo".

    The actual address range you get depends on whether you are using host-only, shared or bridged networking.
     
  5. karmar

    karmar Bit poster

    Messages:
    3
    Thanks for your help.
     

Share This Page