Skip to content

Commit

Permalink
Add back CIDR notation for non-natural blocks. Includes multi-address
Browse files Browse the repository at this point in the history
configs.

Signed-off-by: Dan Schaper <[email protected]>
  • Loading branch information
dschaper committed Jan 19, 2017
1 parent 2981f3c commit 8605254
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion automated install/basic-install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ find_IPv4_information() {
# Find IP used to route to outside world
route=$(ip route get 8.8.8.8)
IPv4dev=$(awk '{for (i=1; i<=NF; i++) if ($i~/dev/) print $(i+1)}' <<< "${route}")
IPV4_ADDRESS=$(awk '{print $7}' <<< "${route}")
IPv4bare=$(awk '{print $7}' <<< "${route}")
IPV4_ADDRESS=$(ip -o -f inet addr show | grep "${IPv4bare}" | awk '{print $4}' | awk 'END {print}')
IPv4gw=$(awk '{print $3}' <<< "${route}")

}
Expand Down

0 comments on commit 8605254

Please sign in to comment.