1)
http://en.wikipedia.org/wiki/Link-local_address
In a computer network, a link-local address is a network address that is valid only for communications within the network segment (link) or the broadcast domain that the host is connected to.
Link-local addresses are usually not guaranteed to be unique beyond a single network segment. Routers therefore do not forward packets with link-local addresses.
Link-local addresses for IPv4 are defined in the address block 169.254.0.0/16, in CIDR notation.
In IPv6, they are assigned with the fe80::/10 prefix
2)
In OpenStack + OpenContrail setup, when a VM is created the Compute node generates a 169.254.x.x link local address.
It's similar to a loopback address and is only accessible on the local machine and cannot be accessed over the network.
3)
Run the command "#route -n" in compute node to see the allocated link local addresses for the VMs you created
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.3 0.0.0.0 255.255.255.255 UH 0 0 0 vhost0
169.254.0.4 0.0.0.0 255.255.255.255 UH 0 0 0 vhost0
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 vhost0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
saju@ubuntu:~$
4)
You can ping or ssh to the VMs using this link local address.After that you can ping or ssh to another VM using its private IP.
#ping 169.254.0.3
#ping 169.254.0.4
#ssh cirros@169.254.0.3
#ssh cirros@169.254.0.4
http://en.wikipedia.org/wiki/Link-local_address
In a computer network, a link-local address is a network address that is valid only for communications within the network segment (link) or the broadcast domain that the host is connected to.
Link-local addresses are usually not guaranteed to be unique beyond a single network segment. Routers therefore do not forward packets with link-local addresses.
Link-local addresses for IPv4 are defined in the address block 169.254.0.0/16, in CIDR notation.
In IPv6, they are assigned with the fe80::/10 prefix
2)
In OpenStack + OpenContrail setup, when a VM is created the Compute node generates a 169.254.x.x link local address.
It's similar to a loopback address and is only accessible on the local machine and cannot be accessed over the network.
3)
Run the command "#route -n" in compute node to see the allocated link local addresses for the VMs you created
$ route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
169.254.0.3 0.0.0.0 255.255.255.255 UH 0 0 0 vhost0
169.254.0.4 0.0.0.0 255.255.255.255 UH 0 0 0 vhost0
192.168.56.0 0.0.0.0 255.255.255.0 U 0 0 0 vhost0
192.168.122.0 0.0.0.0 255.255.255.0 U 0 0 0 virbr0
saju@ubuntu:~$
4)
You can ping or ssh to the VMs using this link local address.After that you can ping or ssh to another VM using its private IP.
#ping 169.254.0.3
#ping 169.254.0.4
#ssh cirros@169.254.0.3
#ssh cirros@169.254.0.4
No comments:
Post a Comment