19 lines
669 B
Plaintext
19 lines
669 B
Plaintext
|
|
#!/bin/sh
|
||
|
|
|
||
|
|
###############################################################
|
||
|
|
# Script : 19-ipaddresses
|
||
|
|
# Author : Andre
|
||
|
|
# Date : 16/07/2024
|
||
|
|
# Description: displays ipv4 and ipv6 addresses
|
||
|
|
# Args : none
|
||
|
|
###############################################################
|
||
|
|
|
||
|
|
printf "\n"
|
||
|
|
|
||
|
|
printf "IPv4 addresses\n"
|
||
|
|
printf "===============================================================================\n"
|
||
|
|
ip -h -br -f inet a
|
||
|
|
printf "===============================================================================\n"
|
||
|
|
printf "IPv6 addresses\n"
|
||
|
|
ip -h -br -f inet6 a
|
||
|
|
printf "===============================================================================\n"
|