Adding a manual route to 169.254.169.254

Before an instance can reach the metadata service in the DHCP namespace at 169.254.169.254, a route must be configured to use the DHCP namespace interface as the next hop rather than at the default gateway of the instance.

Observe the IP addresses within the following DHCP namespace:

169.254.169.254/16 has been automatically configured as a secondary address on the interface inside the namespace. To reach 169.254.169.254 from an instance in the 192.168.206.0/24 network, the following ip route command can be used within the guest instance that sets 192.168.206.2 as the next hop:

# ip route add 169.254.169.254/32 ...

Get Learning OpenStack Networking - Third Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.