We found a great site for different Network Information in Bash scripts. Very useful when you create scripts. Here it is:

Sometimes when writing your bash scripts, you may need some information about the network, such as the IP addresses, both IPv4 and IPv6, broadcast addresses, netmasks and such. There are two very basic ways of getting the necessary information in Linux systems, you should either choose the ip addr show method, and parse what’s coming […]

Source: Getting Network Information in Bash Scripts – Plugged.in