Help Center > > FAQs> Network Configurations> EIP FAQs> Can Multiple EIPs Be Bound to an ECS?

Can Multiple EIPs Be Bound to an ECS?

Updated at: May 06, 2020 GMT+08:00

Scenarios

An ECS can be bound with multiple EIPs, though this configuration is not recommended.

To bind multiple EIPs, you must manually configure routing policies. Exercise caution when you perform this operation.

Configuration Example

Table 1 lists ECS configurations.

Table 1 ECS configurations

Parameter

Configuration

Name

ecs_test

Image

Red Hat Enterprise Linux 6.5 64bit

EIP

2

Primary NIC

eth0

Secondary NIC

eth1

Example 1:

If you are required to access public network 11.11.11.0/24 through standby NIC eth1, perform the following operations to configure a routing policy:
  1. Log in to the ECS.
  2. Run the following command to configure a routing policy:

    ip route add 11.11.11.0/24 dev eth1 via 192.168.2.1

    In the preceding command, 192.168.2.1 is the gateway IP address of standby NIC eth1.

Example 2:

Based on example 1, if you are required to enable routing for default public network traffic through standby NIC eth1, perform the following operations to configure a routing policy:

  1. Log in to the ECS.
  2. Run the following command to delete the default route:

    ip route delete default

  3. Run the following command to configure a new default route:

    ip route add 0.0.0.0/0 dev eth1 via 192.168.2.1

    In the preceding command, 192.168.2.1 is the gateway IP address of standby NIC eth1.

Did you find this page helpful?

Submit successfully!

Thank you for your feedback. Your feedback helps make our documentation better.

Failed to submit the feedback. Please try again later.

Which of the following issues have you encountered?







Please complete at least one feedback item.

Content most length 200 character

Content is empty.

OK Cancel