Add IP Address to /etc/issue
Applies to Fedora 32 and higher
Execute :
systemctl edit getty@
and add the following lines:
[Service]
ExecStartPre=echo "\\S" > /etc/issue ; echo "Kernel \\r on an \\m (\\l)" >> /etc/issue ; /usr/sbin/ifconfig | /usr/bin/grep inet | /usr/bin/head -n 1 | /usr/bin/awk {'print $2'} >> /etc/issue
Then execute:
systemctl daemon-reload && systemctl restart getty@tty1
Note – if when you execute “systemctl edit getty@” and nano is your editor and you want to change it to vim, see Change default editor to vim for systemctl edit
Additional items you can add to the /etc/issue file:
b Insert the baudrate of the current line.
d Insert the current date.
s Insert the system name, the name of the operating system.
l Insert the name of the current tty line.
m Insert the architecture identifier of the machine, e.g., i686.
n Insert the nodename of the machine, also known as the hostname.
o Insert the domainname of the machine.
r Insert the release number of the kernel, e.g., 2.6.11.12.
t Insert the current time.
u Insert the number of current users logged in.
U Insert the string "1 user" or "<n> users" where <n> is the
number of current users logged in.
v Insert the version of the OS, e.g., the build-date etc.