ubuntu ip addr code example Example 1: ip address ubuntu ip address show Example 2: install ip addr on ubuntu apt-get update apt-get install -y iproute2