Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Situation Awareness
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive

Configuring an Enterprise Router

Updated on 2024-12-31 GMT+08:00

This section describes how to associate a firewall with an enterprise router and configure traffic diversion.

How to Configure

The process of configuring an enterprise router is as follows.

Figure 1 Process of configuring an enterprise router

Prerequisites

A firewall has been created.

Constraints

  • Default Route Table Association, Default Route Table Propagation, and Auto Accept Shared Attachments must be disabled.
  • Only the professional edition supports inter-VPC firewall protection.

Procedure

  1. Log in to the management console.
  2. Click in the upper left corner of the management console and select a region or project.
  3. In the navigation pane on the left, click and choose Security & Compliance > Cloud Firewall. The Dashboard page will be displayed.
  4. (Optional) Switch to another firewall instance: Select a firewall from the drop-down list in the upper left corner of the page.
  5. In the navigation pane, choose Assets > Inter-VPC Border Firewalls.
  6. Click Configure Enterprise Router. On the displayed page, add attachments to an enterprise router. For details about the attachment types that can be added, see Attachment Overview.

    Assume you want to protect two VPCs. (At least two VPC attachments are required to connect the two VPCs to the enterprise router.) For details, see Adding VPC Attachments to an Enterprise Router.

    NOTE:
    • Add at least three connections, for example, the firewall connection cfw-er-auto (automatically generated after the firewall is created), the VPC1 connection vpc-1, and the VPC2 connection vpc-2.
    • To use the enterprise router of account A to protect VPCs under account B, share the router with account B, and add an attachment in account B. For details, see Creating a Sharing. Subsequent configurations should still be performed on account A.

  7. Create two route tables to connect to the firewall and the VPC to be protected, respectively.

    Click the Route Tables tab. Click Create Route Table.

    Create a route table, as shown in Figure 2. For more information, see Route table parameters.

    Figure 2 Creating a route table
    Table 1 Route table parameters

    Parameter

    Description

    Example Value

    Name

    Route table name.

    It must meet the following requirements:
    • Must contain 1 to 64 characters.
    • Can contain letters, digits, underscores (_), hyphens (-), and periods (.).

    er-rlb-4cd1

    Description

    Route table description

    -

    Tag

    During the route table creation, you can tag the route table resources. Tags identify cloud resources for purposes of easy categorization and quick search.

    For details about tags, see Tag Overview.

    -

  8. Configure the association and routing.

    1. Select the route table to be connected to the VPC. Click the Associations tab and click Create Association.
      For more information, see Association parameters.
      Figure 3 Creating an association
      Table 2 Association parameters

      Parameter

      Description

      Example Value

      Attachment Type

      Select VPC.

      VPC

      Attachment

      Select an item from the Attachment drop-down list.

      er-attach-01

    2. Create a route for the route table. Click the Routes tab and click Create Route. You can create one or more routes as needed.

      Create a route table, as shown in Figure 4. For more information, see Route parameters.

      Figure 4 Creating a route
      Table 3 Route parameters

      Parameter

      Description

      Example Value

      Destination

      Set the destination address.

      It can be a VPC CIDR block or subnet CIDR block.

      NOTE:

      If your ECS is bound to an EIP, you need to specify the network segment when configuring the route. The value 0.0.0.0/0 is not allowed.

      192.168.2.0/24

      Attachment Type

      Select VPC.

      VPC

      Next Hop

      Select the VPC attachment of the firewall.

      er-Inspection

  9. Configure the association and propagation.

    1. Select the route table to be connected to the firewall. Click the Associations tab and click Create Association.

      For more information, see Association parameters.

      Figure 5 Creating an association
      Table 4 Association parameters

      Parameter

      Description

      Example Value

      Attachment Type

      Select VPC.

      VPC

      Attachment

      Select an item from the Attachment drop-down list.

      er-Inspection

    2. Create a propagation for the route table. Click the Propagations tab and click Create Propagation.

      For more information, see Propagation parameters.

      Figure 6 Creating a propagation
      Table 5 Propagation parameters

      Parameter

      Description

      Example Value

      Attachment Type

      Select VPC.

      VPC

      Attachment

      Select an item from the Attachment drop-down list.

      er-attach-02

      NOTE:
      • After a propagation is created, its route information will be extracted to the route table of the enterprise router, and a propagation route will be generated. In the same route table, the destinations of different propagation routes may be the same, and cannot be modified or deleted.
      • You can add static routes for the attachments in a route table. The destinations of static routes in a table must be unique, and can be modified or deleted.
      • If a static route and a propagation route in the same route table happen to use the same destination, the static route takes effect first.

Verifying Configurations

Prerequisites

  • You have completed configuration.
  • Each of the two VPCs has an ECS.

Method

Ping ECSs in the VPC from each other to check whether they can properly communication if there is no traffic passing through the firewall.

Troubleshooting

  1. Check whether the two route tables of the enterprise router are correctly configured. For details, see 8 and 9.
  2. Check whether the default route table of the VPC directs routes to the enterprise router.

    Procedure

    1. In the service list, click Virtual Private Cloud under Networking. In the navigation pane, choose Route Tables. In the Name/ID column, click the route table name of the VPC to be protected.

    2. Check whether there is a route whose Next Hop Type is Enterprise Router. If there are no such routes, click Add Route. The following table describes the parameters.

    Table 6 Route parameters

    Parameter

    Description

    Example Value

    Destination

    Destination CIDR block.

    A route destination must be unique, and cannot overlap with any subnets in the VPC.

    NOTE:

    The value cannot conflict with existing routes or subnet CIDR blocks in the VPC.

    192.168.0.0/16

    Next Hop Type

    Select Enterprise Router from the drop-down list.

    Enterprise Router

    Next Hop

    Select a resource for the next hop.

    Only the resources of the next hop type you selected are displayed in the drop-down list.

    er-01

    Description

    (Optional) Supplementary information about the route.

    NOTE:

    Enter up to 255 characters. Angle brackets (< or >) are not allowed.

    -

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback