Updated on 2022-09-01 GMT+08:00

Collecting ECS Network Information

Scenarios

Before configuring policy-based routes for a multi-NIC ECS, 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 NIC

    Extension NIC

    How to Obtain

    Source

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

    Destination

    NIC 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 NIC

    Extension NIC

    How to Obtain

    Source

    • IPv4 NIC address: 192.168.0.58
    • IPv6 NIC address: 2407:c080:802:aba:ac57:214e:125d:ab3e
    • IPv4 NIC address: 192.168.1.237
    • IPv6 NIC address: 2407:c080:802:be6:c741:db0f:4dbb:21db

    Obtaining ECS NIC Addresses

    Destination

    IPv6 NIC address: 2407:c080:802:be7:60ab:e557:c60c:6b7d

    N/A

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

    ECS

    Primary NIC

    Extension NIC

    How to Obtain

    Source

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

    Destination

    NIC 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 NIC

    Extension NIC

    How to Obtain

    Source

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

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

    Obtaining ECS NIC Addresses

    Destination

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

    N/A

Obtaining ECS NIC 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 extension NICs.

    IPv4 and IPv6 addresses of NICs

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 VPC hyperlink.

    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.

    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.

    IPv4 and IPv6 addresses of a gateway