Configuring the external network interface

  1. Assign an IP address to interface GigabitEthernet 1/0/1.

    Select the IPv4 address configuration method according to the service provider: DHCP is selected in this example.

    • If you select PPPoE, enter the PPPoE account and password provided by the service provider.

    • If you select DHCP, the DHCP server automatically assigns the public IP addresses for accessing the WAN.

    • If you select manual assignment, enter the IP address, subnet mask, and gateway address of the WAN.

    # Assign an IP address to interface GigabitEthernet 1/0/1.

    <FW> system-view

    [FW] interface gigabitethernet 1/0/1

    [FW-GigabitEthernet1/0/1] ip address dhcp-alloc

    [FW-GigabitEthernet1/0/1] quit

  2. Add interface GigabitEthernet 1/0/1 to security zone WAN.

    [FW] security-zone name WAN

    [FW-security-zone-WAN] import interface gigabitethernet 1/0/1

    [FW-security-zone-WAN] quit