Results 1 to 4 of 4

Thread: Display IP after boot, before login.

  1. #1
    Join Date
    Nov 2009

    Display IP after boot, before login.

    Hi all,

    I use ubuntu server as a virtualbox instance, bridged networking enabled.
    It would be helpfull if the server would display the IP with which I can connect to it after boot. In that way I don't have to login as root and run ifconfig.

    How can this be done?

  2. #2
    James78's Avatar
    James78 is offline Extra Foam Sugar Free Ubuntu
    Join Date
    Sep 2008

    Re: Display IP after boot, before login.

    I believe you can get the desired effect by going into /etc/update-motd.d/ and adding a shell script to output your IP.

    .. Are you trying to list the IP address of a virtual machine instance on the main host, or just on the guest on login? Listing it in the main host will probably be pretty difficult (I believe it's still possible though, especially for VBox), and as for listing it in the virtual machine, well.. Ubuntu Server already shows the interface IP on a default install. Could you explain a little more what exactly you're trying to achieve?
    Last edited by James78; November 26th, 2010 at 09:15 AM.

  3. #3
    Join Date
    Feb 2011

    Question Re: Display IP after boot, before login.


    I guess erlendoos point was to show the IP in the virtual machine.

    I have this same desire and edited the 00-header in /etc/update-motd.d/ but the info inside it is showing after loggin.

    What I (maybe we) want is to have the IP in the login screen, after boot. My screen is:

    Ubuntu 10.04.2 LTS servername tty1
    servername login: _
    What I want would be something like:

    Ubuntu 10.04.2 LTS servername tty1
    inet addr:  Bcast:  Mask:
    servername login: _
    I'm using the command ifconfig to get that line with IP details, and it works, but only after the login.

    Is there a way to show it before the login, as in the second code block?


  4. #4
    Join Date
    Oct 2011

    Re: Display IP after boot, before login.

    I found the solution to the problem on displaying the IP address before the login prompt.

    The following post has the answer:
    Last edited by lsiu; October 19th, 2011 at 12:49 PM. Reason: Found the solution

Tags for this Thread


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts