I have always noticed an IP something "169.254.x.x" in my routing table even when I am not connected to any network in my Windows operating system.
In Linux, when I list my routing table.
$ ip route show
I get an entry like
169.254.0.0/16 dev eth0 scope link metric 1000
Can somebody explain me what is this IP address actually. Whether its something like the 127.0.0.0/8 family.
Edit: In ec2, each instance can get meta-data regarding their own by making HTTP requests to this IP.
$ curl -s http://169.254.169.254/user-data/
So can someone tell me to whom this IP address is actually assigned ?
$response = Invoke-WebRequest -Uri 'http://169.254.169.254/metadata/identity/oauth2/token?api-version=2018-02-01&resource=https://management.azure.com/' -Method GET -Headers @{Metadata="true"}