You need to enable JavaScript to run this app.
Direct Connect

Direct Connect

Copy page
Download PDF
On-premises IDC reference configuration
Configuration examples for on-premises data centers with BGP
Copy page
Download PDF
Configuration examples for on-premises data centers with BGP
This topic provides the configuration examples for switches (such as Huawei and H3C) at the on-premises data center (IDC) side when using BGP routes.​
tip​
These examples are for reference only, providing a configuration approach. Please adapt the instructions to your specific operational environment.​
Huawei switch configuration​
​
# Configure physical interfaces​
interface <interface_type> <interface_name>​
undo portswitch​
description <description_info>​
undo shutdown​
commit​
​
​
# Configure Layer 3 sub-interfaces​
interface <interface_type> <interface_name>.<vlan>​
description <description_info>​
ip address <ipv4_address> <ipv4_mask>​
dot1q termination vid <vlan>​
commit​
​
​
# Configure EBGP ​
bgp <as_number>​
router-id <router_id>​
timer keepalive 10 hold 30​
group HUOSHAN_V4 external​
peer HUOSHAN_V4 as-number 137718​
peer HUOSHAN_V4 route-update-interval 0​
peer <bgp_peer_ip> group HUOSHAN_V4​
peer <bgp_peer_ip> password cipher <bgp_peer_password>​
peer <bgp_peer_ip> bfd enable //Optional: Enable BFD to protect EBGP. BFD takes effect only when both the VolcanoEngine side and on-premises IDC side enable it.​
peer <bgp_peer_ip> bfd min-tx-interval <value> min-rx-interval <value> detect-multiplier <value> // Optional configuration to set the detection interval and detection multiplier for BFD.​
#​
ipv4-family unicast​
maximum load-balancing 32​
peer HUOSHAN_V4 enable​
peer HUOSHAN_V4 route-policy FROM_HUOSHAN_V4 import​
peer HUOSHAN_V4 route-policy TO_HUOSHAN_v4 export​
peer HUOSHAN_V4 route-update-interval 0​
peer <bgp_peer_ip> enable​
peer <bgp_peer_ip> group HUOSHAN_V4​
commit​
#​
# Configure route learning from VolcanoEngine on the IDC side. By default, all routes advertised by VolcanoEngine are learned.​
route-policy FROM_HUOSHAN_V4 permit node 10​
# Configure routes from the IDC side to be advertised to VolcanoEngine; by default, all BGP routing is advertised to VolcanoEngine.​
route-policy TO_HUOSHAN_v4 permit node 10​
#​
​
# Optional: Configure routes learned from VolcanoEngine on the on-premises IDC side. Only learn large segments of routes published by VolcanoEngine and reject detailed routes.​
# For example: The on-premises IDC can learn routes from Volcano Engine such as 10.0.0.0/8, 10.1.0.1/32, and 10.2.0.2/32. After configuring the rejection of specific routes, the on-premises IDC will only learn the route 10.0.0.0/8.​
# ip ip-prefix FROM_HUOSHAN_V4 index 10 permit 10.0.0.0 8​
ip ip-prefix FROM_HUOSHAN_V4 index 10 permit <ip_address> <mask>​
#​
route-policy FROM_HUOSHAN_V4 permit node 10​
if-match ip-prefix FROM_HUOSHAN_V4​
#​
​
H3C switch configuration​
​
# Configure physical interfaces​
interface <interface_type> <interface_name>​
description <description_info>​
port link-mode route​
undo shutdown​
​
​
# Configure Layer 3 Sub-interfaces​
interface <interface_type> <interface_name>.<vlan>​
description <description_info>​
ip address <ipv4_address> <ipv4_mask>​
bfd min-transmit-interval <value> //Optional: Enable BFD​
bfd min-receive-interval <value> //Optional: Enable BFD​
bfd detect multiplier <value> //Optional: Enable BFD​
​
​
# Configure EBGP ​
bgp <as_number>​
router-id <router_id>​
timer keepalive 10 hold 30​
group HUOSHAN_V4 external​
peer HUOSHAN_V4 as-number 137718​
peer HUOSHAN_V4 route-update-interval 0​
peer <ipv4_address> group HS_V4​
peer <ipv4_address> password cipher <bgp_password>​
peer <ipv4_address> bfd //Optional: Enable BFD to protect EBGP. BFD takes effect only when both the VolcanoEngine side and the on-premises IDC side enable it.​
#​
address-family ipv4 unicast​
balance 32​
peer HUOSHAN_V4 enable​
peer HUOSHAN_V4 route-policy FROM_HUOSHAN_V4 import​
peer HUOSHAN_V4 route-policy TO_HUOSHAN_V4 export​
#​
# Configure route learning from VolcanoEngine on the IDC side. By default, all routes advertised by VolcanoEngine are learned.​
route-policy FROM_HUOSHAN_V4 permit node 10​
# Configure routes from the IDC side to be advertised to VolcanoEngine. By default, all BGP routes are advertised to VolcanoEngine.​
route-policy TO_HUOSHAN_V4 permit node 10​
#​
​
# Optional: On the on-premises IDC side, configure the routes learned from Volcano Engine. Only learn the large CIDR blocks advertised by VolcanoEngine; reject the specific routes.​
# Example: The local IDC can learn routes 10.0.0.0/8, 10.1.0.1/32, and 10.2.0.2/32 from VolcanoEngine. After configuring the rejection of specific routes, the local IDC will only learn the route 10.0.0.0/8.​
# ip prefix-list FROM_HS_V4 index 10 permit 10.0.0.0 8​
ip prefix-list FROM_HS_V4 index 10 permit <ip_address> <mask>​
#​
route-policy FROM_HUOSHAN_V4 permit node 10​
if-match ip address prefix-list FROM_HUOSHAN_V4​
#​
​
​
Last updated: 2026.08.24 11:30:49