How can I display eth0's IP address at the login screen on Precise Server?

Posted by Andrew Stebenne on Ask Ubuntu See other posts from Ask Ubuntu or by Andrew Stebenne
Published on 2012-11-14T23:16:07Z Indexed on 2012/11/14 23:18 UTC
Read the original article Hit count: 375

Filed under:
|

The server I administrate, inconveniently enough, has a dynamic IP address assigned by DHCP. The convenient counterbalance, though, is that it happens to be set up about two feet from where I sit. I know how to edit /etc/issue to show different values before the login prompt is delivered to the display, but I'd like to know if it's possible for /etc/issue to display the current IP address of eth0 (re-evaluated at boot time) so that I can see it and then ssh in without having to log in to run ifconfig.

© Ask Ubuntu or respective owner

Related posts about login

Related posts about ifconfig