Establish BGP Session
Bare Metal uses Border Gateway Protocol (BGP) to exchange routes between your CIDR Block network and your local network. If you have your own Autonomous System (ASN) and public IP range, enable our Global BGP and then configure a BGP peer for your local router to achieve a better network performance.
Prerequisites
To successfully creating a Global BGP session, you need to have:
A public ASN: You have a registered public ASN. See Authorize ASN for details;
Available BYOIPs: Bring Your Own IP Addresses (BYOIP) must be registered and the registered organization name should match your account name on Console;
Available Bare Metal Instance: See Create a Bare Metal Instance for details;
Available CIDR Block IP and correctly assigned: See Create and assign a CIDR Block IP for details.
Procedures
![](https://docs.console.zenlayer.com/~gitbook/image?url=https%3A%2F%2F3201622183-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F9X3FDdkCL2HzhbPpPMFt%252Fuploads%252FYxF779rJwQY6oj14tjRN%252Fimage.png%3Falt%3Dmedia%26token%3D94aad3b9-e283-41eb-9a41-76f68f7fad46&width=768&dpr=4&quality=100&sign=56560a8b&sv=1)
On the upper left corner of zenConsole, go to Products > Global BGP > BGP Session > Establish BGP Session.
Select your desired location to establish BGP session. Only show specified zones with existing CIDR blocks here. If no desired zones, go to create new CIDR block in BGP Enabled zones.
Select your authorized ASN.
Configure BGP peer IP. Choose CIDR block IPs of your Bare Metal instances as the peer IPs. The gateway of this CIDR block will automatically be configured as the router IP for the BGP peer.
(Optional) Add MD5 authentication for your BGP session. If you enable MD5 authentication, ensure an identical key on both local router and peer router.
More settings - Label your BGP session - Select a resource group for your BGP session - Add a note for your BGP session
Result
After the BGP session is established, you will find it in BGP Session list.
![](https://docs.console.zenlayer.com/~gitbook/image?url=https%3A%2F%2F3201622183-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F9X3FDdkCL2HzhbPpPMFt%252Fuploads%252FpDGvdleyw5m0vwfMlx55%252Fimage.png%3Falt%3Dmedia%26token%3Db01d453c-ba48-43c3-a8c3-2d4d9e9cf6eb&width=768&dpr=4&quality=100&sign=558198a3&sv=1)
Details
Click the BGP session name to view the details.
![](https://docs.console.zenlayer.com/~gitbook/image?url=https%3A%2F%2F3201622183-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F9X3FDdkCL2HzhbPpPMFt%252Fuploads%252Fe2kks1HdkVd3Fm2xnGmD%252Fimage.png%3Falt%3Dmedia%26token%3De41e8f97-a0d7-4588-a45f-7a4001679ed2&width=768&dpr=4&quality=100&sign=be0cc22d&sv=1)
Add BYOIP
![](https://docs.console.zenlayer.com/~gitbook/image?url=https%3A%2F%2F3201622183-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F9X3FDdkCL2HzhbPpPMFt%252Fuploads%252FExhMxXQyuJfVp06B91VI%252Fimage.png%3Falt%3Dmedia%26token%3Db1a488c3-f64a-4970-a470-770d9f89765a&width=768&dpr=4&quality=100&sign=4d9f077d&sv=1)
You can advertise BYOIPs to the BGP session and make these IPs reachable for the BGP peer. See Advertise BYOIP for more details.
Delete
![](https://docs.console.zenlayer.com/~gitbook/image?url=https%3A%2F%2F3201622183-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F9X3FDdkCL2HzhbPpPMFt%252Fuploads%252FhlqfbvOFT8P7o7RzFdRD%252Fimage.png%3Falt%3Dmedia%26token%3Df73fb4d5-f7b2-4e81-a5df-f2227dda83dd&width=768&dpr=4&quality=100&sign=9fd0832d&sv=1)
You can delete the BGP session without any BYOIP advertised. You need to configure all the peer IPs if you want to enable this BGP session again.
Add Peer IP
![](https://docs.console.zenlayer.com/~gitbook/image?url=https%3A%2F%2F3201622183-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F9X3FDdkCL2HzhbPpPMFt%252Fuploads%252FoEyqfNYofEMRVzv7jL8H%252Fimage.png%3Falt%3Dmedia%26token%3D089fa4f9-5111-4b36-99ea-bb57187e4e19&width=768&dpr=4&quality=100&sign=1e35fe88&sv=1)
You can select CIDR block IPs that have been assigned to your bare metal instances as the peer IP, and add them to your BGP session.
Remove Peer IP
You can remove peer IP from the BGP session and add it back if you need.
Update Note
Update the information you want to note if you need.
More Actions
In the BGP Session list, click Actions to add peer IP, add BYOIP or delete BGP session. See Details for specific steps.
What to Do Next
After establishing your BGP session on zenConsole, to enable BGP interconnect, you need to configure BGP on your router. See Configure BGP on Your Router for more details.
Last updated