Enabling instances on different Networks to communicate
In order to make use of the OpenStack IP Routing capabilities, a Router needs to be associated with the desired subnetworks. Once this step is completed, the data traffic from one VM in a Subnet will be able to communicate with another VM in another Subnet.
This recipe shows you how to associate subnetworks to a Router. While VMs will be able to communicate with one another, the VMs will not yet have access to the Internet.
Getting ready
First, we will create two Networks and a Router and then we will associate the two Networks (or the corresponding Subnet) to the Router. We will also create one VM in each of the Networks.
For this recipe, we will use the following information to create the Networks:
Network Name |
Subnet Name |
Network Address Range |
VM Instance |
---|---|---|---|
Cookbook-Network-1 |
Cookbook-Subnet-1 |
20.20.20.0/28 |
Network-1-VM |
Cookbook-Network-2 |
Cookbook-Subnet-2 |
30.30.30.0/28 |
Network-2-VM |
How to do it…
The following steps will show...