Updated on 2024-11-08 GMT+08:00

Collecting ECS Network Information

Scenarios

Before configuring policy-based routes for an ECS with multiple network interfaces, you need to collect network information about the ECS.
  • Table 1 lists the information to be collected for a Linux ECS using IPv4.
    Table 1 Linux ECS using IPv4

    ECS

    Primary Network Interface

    Extended Network Interface

    How to Obtain

    Source

    • IP address: 10.0.0.115
    • Subnet: 10.0.0.0/24
    • Subnet gateway: 10.0.0.1
    • IP address: 10.0.1.183
    • Subnet: 10.0.1.0/24
    • Subnet gateway: 10.0.1.1

    Destination

    IP address: 10.0.2.12

    N/A

  • Table 2 lists the information to be collected for a Linux ECS using IPv6.
    Table 2 Linux ECS using IPv6

    ECS

    Primary Network Interface

    Extended Network Interface

    How to Obtain

    Source

    • IPv4 address: 10.0.0.102
    • IPv6 address: 2407:c080:1200:1dd8:859c:e5d5:8b3d:a2d9
    • IPv6 subnet: 2407:c080:1200:1dd8::/64
    • IPv6 subnet gateway: 2407:c080:1200:1dd8::1
    • IPv4 address: 10.0.1.191
    • IPv6 address: 2407:c080:1200:1a9c:7cc0:63b5:8e65:4dd8
    • IPv6 subnet: 2407:c080:1200:1a9c::/64
    • IPv6 subnet gateway: 2407:c080:1200:1a9c::1

    Destination

    • IPv4 address: 10.0.2.3
    • IPv6 address: 2407:c080:1200:1dd9:16a7:fe7a:8f71:7044

    N/A

  • Table 3 lists the information to be collected for a Windows ECS using IPv4.
    Table 3 Windows ECS using IPv4

    ECS

    Primary Network Interface

    Extended Network Interface

    How to Obtain

    Source

    • IP address: 10.0.0.59
    • Subnet gateway: 10.0.0.1
    • IP address: 10.0.1.104
    • Subnet gateway: 10.0.1.1

    Destination

    IP address: 10.0.2.12

    N/A

  • Table 4 lists the information to be collected for a Windows ECS using IPv6.
    Table 4 Windows ECS using IPv6

    ECS

    Primary Network Interface

    Extended Network Interface

    How to Obtain

    Source

    IP address: 2407:c080:802:aba:6788:fb94:d71f:8deb

    IP address: 2407:c080:802:be6:71c8:42e0:d44e:eeb4

    Obtaining ECS Network Interface Addresses

    Destination

    IP address: 2407:c080:802:be7:c2e6:d99c:b685:c6c8

    N/A

The above information is only for your reference.

Obtaining ECS Network Interface Addresses

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  1. Click Service List and choose Compute > Elastic Cloud Server.
  2. In the ECS list, click the target ECS name.

    The Summary tab page of the ECS is displayed.

  3. In the NICs area, view the IP addresses of the primary and extended network interfaces.

    You can view the IPv4 and IPv6 addresses of network interfaces.

    Figure 1 IPv4 and IPv6 addresses of network interfaces

Obtaining Subnet CIDR Blocks and Gateway Addresses

  1. Log in to the management console.
  1. Click in the upper left corner and select the desired region and project.
  1. Click Service List and choose Compute > Elastic Cloud Server.
  2. In the ECS list, click the target ECS name.

    The Summary tab page of the ECS is displayed.

  3. In the ECS Information area, click the name of its VPC.

    The Virtual Private Cloud page is displayed.

  4. Locate the target VPC and click the number in the Subnets column.

    The Subnets page is displayed.

  5. In the subnet list, view the CIDR blocks of the subnets.

    You can view the IPv4 and IPv6 CIDR blocks of subnets.

    Figure 2 IPv4 and IPv6 CIDR blocks of subnets
  6. In the subnet list, click the subnet name.

    The Summary page is displayed.

  7. Click the IP Addresses tab and view the gateway addresses of the subnet.

    You can view the IPv4 and IPv6 addresses of a gateway.

    Figure 3 IPv4 and IPv6 addresses of a gateway