Updated on 2024-01-16 GMT+08:00

Configuring a Virtual Gateway Attachment in Enterprise Router

Scenarios

This section describes how to attach a Direct Connect connection to the enterprise router and configure a route.

Procedure

  1. Create a virtual gateway and attach it to an enterprise router.

    1. On the Direct Connect console, create a virtual gateway.

      For details, see Step 2: Create a Virtual Gateway.

    2. On the enterprise router console, check whether the virtual gateway attachment exists.

      For details, see Viewing Details About an Attachment.

      If the status of the virtual gateway attachment is Normal, the attachment has been added.

      Default Route Table Association and Default Route Table Propagation are enabled when you create the enterprise router. After the virtual gateway is attached to the enterprise router, the system will automatically:
      • Associate the virtual gateway attachment with the default route table of the enterprise router.
      • Propagate the virtual gateway attachment to the default route table of the enterprise router. The routes to the on-premises data center are propagated to the route table.

        You can view routes to the on-premises data center in the route table of the enterprise router only after creating a virtual interface by performing 2.

  2. Create a virtual interface.

    Create a virtual interface to connect the virtual gateway with the on-premises data center. For details, see Step 3: Create a Virtual Interface.

    For details about virtual interface planning, see Table 6.

  3. Configure routes on the on-premises network device to point to Huawei Cloud.

    The following uses Huawei network devices as an example to describe how to configure a BGP route.

    bgp 64510

    peer 10.0.0.1 as-number 64512

    peer 10.0.0.1 password simple 12345678

    network 10.1.123.0 255.255.255.0

    Table 1 BGP route

    Command

    Description

    bgp 64510

    Enable BGP.

    64510 is the ASN used by the on-premises data center.

    peer 10.0.0.1 as-number 64512

    Create a BGP peer.
    • 10.0.0.1 is the gateway on Huawei Cloud.
    • 64512 is the ASN used by Huawei Cloud. The value must be 64512.

    peer 10.0.0.1 password simple 12345678

    Perform MD5 authentication on BGP messages when a TCP connection is established between BGP peers.

    12345678 is the BGP MD5 authentication password.

    network 10.1.123.0 255.255.255.0

    Add routes in the IP route table to the BGP route table.

    • 10.1.123.0 is the subnet used by the on-premises data center.
    • 255.255.255.0 is the subnet mask of the on-premises network.