Help Center> Intelligent EdgeCloud> User Guide> Common Operations> Accessing the Internet Using an EIP Bound to an Extension NIC

Accessing the Internet Using an EIP Bound to an Extension NIC

  1. After you bind an EIP to an extension NIC, access the edge instance and run route to query the routing information.

    You can also run route --help to obtain the routing information.

    Figure 1 Viewing routing information

  2. Run ifconfig to view NIC information.

    Figure 2 Obtaining the NIC information

  3. Configure Internet access from the extension NIC based on your destination address.

    Configure access to a specified IP address range (for example, xx.xx.0.0/16) through the extension NIC.

    route add -net xx.xx.0.0 netmask 255.255.0.0 gw 192.168.17.1

    If you want to use the extension NIC to access the Internet by default, run the following command:

    This operation will interrupt network traffic. Exercise caution when performing this operation.

    1. Delete the default route of the primary NIC.

      route del 0.0.0.0 192.168.11.1 dev eth0

    2. Configure the default route for the extension NIC.

      route add default gw 192.168.17.1