# Configure physical interfaces
interface <interface_type> <interface_name>
description <description_info>
# Configure Layer 3 sub-interfaces
interface <interface_type> <interface_name>.<vlan>
description <description_info>
ip address <ipv4_address> <ipv4_mask>
dot1q termination vid <vlan>
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.
maximum load-balancing 32
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
# 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