Use first gateway address from netstat -- backport from master

Change-Id: I5f2197132f3adfbdfeba834d93f58c31fd4db90e
Merge "Use first gateway address from netstat -- backport from master" into R2.0