09. FastConnect to ExpressRoute - CloudDarsh/OracleCloud GitHub Wiki
Here we will work on to create a network between OCI using Fast Connect service and Azure using Express Route.
Create a compartment
In OCI
In Azure
In azure we call it as ‘Resource Group’, Click on create and enter resource group name
Click on Review and Create and it will be created.
Create a Virtual Network
In OCI
In Azure
In Azure we call it as Virtual Network, Click on create and select resource group which we created above. and enter virtual network name and next.
Go into the IP address section and we have to create subnet in this.
Here we can see one subnet is created but in the above diagram we can see that we have to create a Virtual Network Gateway in Azure to setup the network, we require one more subnet. So we have to create one more dedicated subnet here
Now we can see both subnets are added, click on review and create.
Create a Instance
In OCI
In Azure
In Azure we call it as Virtual Machine, click on create
We have to select the resource group which we created above and select other details.
Now In the authentication type , we can select SSH or password, we will select password here and create username and password and click on next, select the disk as required.
Go to networking section, click on review and create.
Note : In the last we have to test the connection between OCI and Azure by pinging them , but in security list , ping is disabled by default so we have to enable it now ,
Go to the subnet on which the instance in hosted in OCI and go to its security list.
In the ingress rule, we have to add type as 8 , change the IP Protocol to ICMP and enter the CIDR of Virtual network of Azure, It will be created and show as echo which means ping is enabled.
Creating Dynamic Routing Gateway(DRG)
In OCI
Go inside VCN Customer Connectivity Dynamic Routing Gateway Create DRG
The source to this Dynamic Routing Gateway(DRG) is the VCN so we have to attach the VCN from where we have to send the network.
Inside DRG VCN Attachment Create Virtual Cloud Network Attachment
Virtual Network Gateway
In Azure
Here, we have to create ‘Virtual Network Gateway’, Click on create.
Click on review and create, it will take 45 mins to complete.
Now we have to go into OCI VCN’s Subnet Route table
Here we have to add DRG in the route rules.
Creating ExpressRoute
In Azure
Go to ExpressRoute Create ExpressRoute
Click on Next and fill below details,
Click on Review and Create.
After the ExpressRoute is created, we have to go inside and there we will get a service key, we have to copy it and save in notepad.
Creating FastConnect
In OCI
The destination of this DRG is FastConnect, so we have to go Inside DRG VCN Attachment Virtual circuit attachments. Click on Go to FastConnect.
Create FastConnect, select connection type as FastConnect Partner and Partner as Ms Azure Express Route.
Click on next, Here in the Configuration we require partner service key.
We have to paste the Partner Service Key which we copied from Azure above and click on create.
Now after that we have to go inside the DRG Virtual Circuit Attachment
Here we can see that FastConnect is attached.
So the DRG will send the network from source(OCI VCN) to FastConnect FastConnect will send the network to ExpressRoute ExpressRoute will send the network to azure Virtual Network Virtual Network gateway will send the network to its subnet Subnet will send the network to the azure server.
Now we will check in Azure ExpressRoute Details , we can see the primary and secondary IP will also be created,
Verifying the Connection
Now the configuration is completed, we have to verify the connection between both the servers(OCI and Azure) by pinging them, Go to Compute Instance Copy the public IP and login into the server
Also for Azure(ToOCIVM) Copy the public IP and login into the server
In OCI
We have to ping the private IP of the Azure VM, here we can see it’s not pinging.
In Azure
We have to ping the private IP of the OCI Compute, here we can see it’s not pinging.
Both the servers are not pinging, we can also verify that the FastConnect is Up
Here we have to add the route in Azure also for the end to end flow of traffic.
Go to Connections in Azure Create Connection.
Click on Next,
Here we have to select the virtual network gateway
We can see that the connection is created and status is succeeded.
Now again we have to ping and verify the connection between both the servers(OCI and Azure) by pinging them, In OCI –
In Azure –
We can see both the servers are pinging now, so the connection is created between both the servers(OCI and Azure).