Retun parameters while creating BGP Group in Alibaba Cloud VPC - alibaba-cloud

BGP group is used for communication between the Virtual Border Router (VBR) and the local IDC in Alibaba cloud VPC. I create a BGP Group using below mentioned command:
https://vpc.aliyuncs.com/?Action=CreateBgpGroup
&RegionId=cn-beijing
&PeerAsn=2010
&RouterId=vbr-2zeff11o2sqhnp1u7ci93
&CommonParameters
But how can I get Return Parameters (i.e. RequestID & BgpGroupID)?

As per the documentation https://www.alibabacloud.com/help/doc-detail/63231.htm?spm=a2c63.p38356.b99.103.4c0559d8LKgNw6 you should have received a response in XML or JSON format.
What was your response?

Related

How to empty response issue from any machine in AWS IoT?

Asin the Screenshots I set up my whole AWS IoT Core Server as MQTT Broker but I am getting an empty response from my machine . any suggestions to solve this ??
This response is in Hex format as default need to decrypt(decode) this using Protocol buffers files.
I am expecting number of fields as response like success status , slot number
,rl_type
,rl_mode
,rl_conn
,rl_status
,rl_csq
,rl_rsrp
,rl_sinr ect.
AWS IoT Core now supports decoding protocol buffer directly within AWS IoT Rule Engine. Please have a look at the announcement here: https://aws.amazon.com/about-aws/whats-new/2022/12/aws-iot-core-rules-engine-google-protocol-buffer-messaging-format/

AWS: Why do we have to specify 2 BGP ASN when configuring a DX Gateway?

When creating a DX Gateway, we specify a BGP ASN. Another BGP ASN is required when specifying a VIF. Could someone explain why 2 BGP ASNs are required, and what purpose it solves?
Thanks.
As you already know that BGP session is established between 2 peers, therefore BGP ASN is required for both the peers.
While creating the Direct Connect Gateway (DXGW), you mentions Amazon side BGP ASN, however while you are creating a VIF, you mentions on-premise (customer N/W) BGP ASN.
While creating DXGW, it asks for Amazon side ASN
(The Autonomous System Number for the new Direct Connect gateway.)
While creating VIF, it asks for BGP ASN
(The Border Gateway Protocol Autonomous System Number of your on-premises router for the new virtual interface.)
Hoping that this clears out your query.

EipAddress allocation in Alibaba Cloud VPC

According to Alibaba Cloud EipAddress Allocation.
An available EIP is randomly allocated in the specified region after this API is called. EIP supports ICMP, TCP, and UDP protocols, but does not support IGMP and SCTP protocols.
I create an EipAddress on Alibaba Cloud VPC using below mentioned Request code:
https://vpc.aliyuncs.com/?Action=AllocateEipAddress
&RegionId=cn-beijing
&CommonParameters
How I can know which IP is assigned to my vpc.
If you want to know which IP address is created try this API call.
https://vpc.aliyuncs.com/?Action=DescribePublicIpAddress
&RegionId=cn-beijing
&<CommonParameters>
Here is sample response.
{
“RequestId”:” 365F4154-92F6-4AE4-92F8-7FF34B540710”,
“Code”:200,
“Success”:”true/false”,
“PublicIpAddress”:[
“110.11.1.0/24”
],
“RegionId”:”cn-beijing”,
“PageNumber”:1,
“PageSize”:100,
“TotalCount”:1000
}
From documentation https://www.alibabacloud.com/help/doc-detail/65592.htm?spm=a2c63.p38356.b99.76.667b30a6zlzLJZ
You can check which IP address is assigned by calling the following API Request:
Request:
https://vpc.aliyuncs.com/?Action=DescribePublicIpAddress
&RegionId=cn-beijing
Please replace your RegionID if you are using it in a different region.
The Action DescribePublicIpAddress is used to query the IP address range in a specified region.
Response:
{
“RequestId”:” 123425345345252”,
“Code”:200,
“Success”:”true”,
“PublicIpAddress”:[
“111.10.1.0/24”
],
“RegionId”:”cn-beijing”,
}

Public IP address for outgoing traffic AWS

I'm using a AWS EC2 instances on VPC with an Internet Gateway and I need to connect my companies network which only accept connections from specific IP addresses(Firewall). The Outbound Traffic of my IP Address is the Internet gateway's IP Address. I have tried using a NAT Gateway, but the NAT Gateway Still uses an Internet Gateway.Is it possible to have Elastic IP for all outgoing traffic on AWS?
If you have as a destination a set of static IP addresses (the ones of your company), I solved the same by doing the following (based on this post):
Create a new subnet to host the NAT Gateway.
Create the NAT Gateway in the above subnet, and assign a new Elastic IP. This one will be our outgoing IP for hitting external APIs.
Create a route table for the NAT subnet. All outbound traffic (0.0.0.0/0) should be routed through the NAT Gateway. Assign the created subnet to use the new route table.
Modify the main route table (the one that handles all our EC2 instances requests), and add the IP(s) of the external API, setting its target to the NAT Gateway.
This way you can route any request to your company IPs through the NAT Gateway. All other requests are routed through the default Internet Gateway.

How to connect to Elasticsearch server remotely using load balancer

There might be a post which I am looking for. I have very limited time and got requirement at the last moment. I need to push the code to QA and setup elasticsearch with admin team. Please respond me as soon as possible or share the link which has similar post!!.
I have scenario wherein I will have multiple elasticsearch servers, one is hosted on USA , another one in UK and one more server is hosted in India within the same network(companies network) which shares same cluster name. I can set multicast to false and unicast to provide host and IP address information to form a topology.
Now in my application I know that I have to use Transport cLient as follows,
Settings settings = ImmutableSettings.settingsBuilder()
.put("cluster.name", "myClusterName").build();
Client client = new TransportClient(settings)
.addTransportAddress(new InetSocketTransportAddress("host1", 9300))
.addTransportAddress(new InetSocketTransportAddress("host2", 9300));
Following are my concerns,
1) As per the above information, admin team will just provide the single ip address that is load balancer ip address and the loadbalancer will manage the request and response handling .I mean the loadbalance is responsible to redirect to the respective elasticsearch server . Here my question is, Is it okay to use Transport client to connect to the host with the portnumber as follows ,
new TransportClient(settings)
.addTransportAddress(new InetSocketTransportAddress("loadbalancer-ip-address", “loadbalance-port-number”)) ;
If loadbalancer will redirect the request to elastcisearch server what should be the configuration to loadbalancer like, we need to provde all the elasticsearch host or ipaddress details to it? so that at any given point of time , if there is any failure to the master elasticsearch server it will pick another master.
2) What is the best configuration for 4 nodes or elasticsearch servers like, shards , replicas and etc.
Each node will have one primary shard and 1 replicate ? which can be configured in elasticsearch.yml
Please replay me as soon as possible.
Thanks in advance.

Resources