I have output like this
ifconfig | grep "inet addr"
inet addr:*.18.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet addr:*.17.0.1 Bcast:0.0.0.0 Mask:255.255.0.0
inet addr:*.168.0.12 Bcast:192.168.0.255 Mask:255.255.255.0
inet addr:127.0.0.1 Mask:255.0.0.0
This is what I got
ifconfig | awk '/Link encap:/ {print $1}'
br-498e85899682
docker0
enp3s0
lo
Why do I have four IP addresses?
0 Answers