Display IP addresses on the system console *before* the login prompt.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



I have a bunch of VBox Linux VMs (CentOS 6/7, Debian7/8/9, Ubuntu
(14.0/16.04, Alpine) that get dynamic IPs.  To get their respecitive
IP addresses I have to login and run 'ip addr'

I would like such info to be displayed on the VM console *before* the
login prompt.  Ideally an ASCII log + info (see below sig line).
Thus, I can get the info from the VM console without having to login.

I read up on /etc/issue but adding "\4{eth0}" to the existing string
does not work.

TIA for solutions/pointers

-- Arun Khan

<console display>

 _               _
| |__   ___  ___| |_ _ __   __ _ _ __ ___   ___
| '_ \ / _ \/ __| __| '_ \ / _` | '_ ` _ \ / _ \
| | | | (_) \__ \ |_| | | | (_| | | | | | |  __/
|_| |_|\___/|___/\__|_| |_|\__,_|_| |_| |_|\___|

lo: 127.0.0.1
eth0: 10.1.1.122
kernel: 4.10.0-33-generic x86_64

login:

</console display>
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos



[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]


  Powered by Linux