Help Center/ Huawei HiLens/ User Guide/ Registering HiLens Kit Devices/ Configure Networking/ Wireless Network (External Network) and Wired Network (Internal Network)
Updated on 2023-03-27 GMT+08:00

Wireless Network (External Network) and Wired Network (Internal Network)

This section describes how to use a wireless network (Wi-Fi) to connect to an external network and use a wired network to connect to the internal network of a company or school.

Method 1: Configure the wireless network, and then configure the wired network. Add the deleted default routing entries of the wireless network IP address.

Method 2: Configure the wired network, and then configure the wireless network. Add the deleted default routing entries of the wired network IP address.

This section uses method 1 to describe how to configure networking using both wireless and wired modes for a HiLens Kit device.

Preparations

  1. Use a network cable to connect the HiLens Kit device to the local PC.
  2. Enter https://XXX.XXX.XXX.XXX in the address box of a browser and press Enter to open the login page of the HiLens intelligent edge system.

    XXX.XXX.XXX.XXX is the default IP address of the device. For details about the default parameters, see Default Parameters.

  3. Enter the username and password. For details about the default parameters, see Default Parameters.
  4. Use the default IP address to log in to the HiLens Kit device through SSH and go to the CLI with the administrator permission (develop). For details, see Logging In to a HiLens Kit Device Using SSH.

    If the IP address assigned to the internal network of a company or school needs to be bound to the MAC address of the connected HiLens Kit device, fix the MAC address of the wired network port (eth0) on the device.

    1. Run the ifconfig command on the CLI with the administrator (develop) permissions to view the MAC address of the connected port on the HiLens Kit device.
      As shown in Figure 1, the content in the red box is the target MAC address.
      Figure 1 Viewing the MAC address
    2. On the CLI, open the vi /etc/rc.d/rc.local file and add the following content to the file:

      Ifconfig eth0 down

      Ifconfig eth0 hw ether xx:xx:xx:xx:xx:xx (xx:xx:xx:xx:xx:xx indicates the MAC address.)

      Ifconfig eth0 up

    3. Restart the device for the modification to take effect.

Step 1: Configuring the Wireless Network

Use the wireless network to connect to the external network and dynamically obtain the IP address of the wireless network. To connect to a router through a wireless network, enter the network's password first.

  • Procedure

    For details about the requirements and procedure for configuring the wireless network, see Wireless Network Configuration (SSH).

  • Network Verification
    1. On the CLI, run the ifconfig command to view the IP address of the HiLens Kit device.

      For example, in the following figure, the IP address of the wireless network is 192.168.137.26, and wlan0 is the wireless network port.

      Figure 2 Device IP address
    2. Run the route command to check routing entries.

      Assume that the wireless network IP address is 192.168.137.26 and the allocated default gateway is 192.168.137.1.

      Figure 3 Routing entry information-1
    3. Run the following command to check whether the wireless network is successfully connected:

      ping 8.8.8.8

      If the device is connected successfully, the following information is displayed:
      Figure 4 Wireless connection prompt-1

Step 2: Configuring the Wired Network

  • Procedure

    If you use a wired network to connect to the internal network of a company or school, you need to add an internal network IP address on the wired network port. If domain name resolution is required, configure the corresponding DNS.

    1. Enter https://XXX.XXX.XXX.XXX in the address box of a browser and press Enter to open the login page of the HiLens intelligent edge system.

      XXX.XXX.XXX.XXX is the default IP address of the device. For details about the default parameters, see Default Parameters.

    2. Enter the username and password. For details about the default parameters, see Default Parameters.
    3. Choose Management > Network > Wired Network.

      The Wired Network page is displayed.

      Figure 5 Wired network configuration
    4. Under Configure IP Address, click Add. In the displayed dialog box, enter the internal IP address information according to Table 1 and click OK.
    5. Under Configure IP Address, click Save.
      Table 1 New IP address parameters

      Parameter

      Description

      Function

      Usage of the IP address.

      The value contains 1 to 32 characters, including letters, digits, and underscores (_).

      IP Address

      IPv4 address to be changed.

      The IP address must be in the same network segment as the router IP address.

      Default Gateway

      Default gateway corresponding to the new IP address.

      NOTE:

      Ensure that the default gateway is globally unique.

      Figure 6 Adding an IP address
    6. Configure the DNS address for the internal network. The DNS configuration method varies depending on whether the HiLens Kit system firmware has been upgraded.
      • The HiLens Kit system firmware has been upgraded.

        The HiLens Kit system firmware version has been upgraded to 2.2.200.011. For details, see Upgrading the HiLens Kit System Firmware Version. You can configure DNS as follows:

        1. On the Management > Network > Wired Network page of the intelligent edge system, click Add under Configure DNS Address.
          The Add DNS Address dialog box is displayed.
          Figure 7 Adding DNS address
        2. In the dialog box that is displayed, enter the DNS address of the internal network of a company or school, and click OK.
        3. Under Configure DNS Address, click Save.
      • The HiLens Kit system firmware has not been upgraded.

        Remotely configure DNS using SSH.

        Open the vi /etc/resolv.conf file in PuTTY and add the DNS address.

        nameserver x.x.x.x (x.x.x.x indicates the newly added DNS address.)

        Save the file and exit.

  • Network Verification
    1. Use the default IP address to log in to the HiLens Kit device using SSH. For details, see Logging In to a HiLens Kit Device Using SSH.
    2. Run the ifconfig command to view the IP address of the device.

      For example, in the following figure, the IP address of the wired network is 10.78.14.58, eth0 is the wired network port, and eth0:1 is the newly added IP address.

      Figure 8 Device IP address
    3. Run the route command to check routing entries.

      For example, if the IP address of the wired network is 10.78.14.58 and the allocated default gateway is 192.168.137.1, the default routing information corresponding to the IP address allocated in Step 1: Configuring the Wireless Network is missing. As a result, the external network cannot be accessed.

      Figure 9 Routing entry information

Step 3: Adding Routing Entries

Manually add the default routing entries corresponding to the IP address allocated in Step 1: Configuring the Wireless Network.

  • Procedure
    1. Use the default IP address to log in to the HiLens Kit device through SSH and go to the CLI with the administrator permission (develop). For details, see Logging In to a HiLens Kit Device Using SSH.
    2. Run the corresponding command on the CLI to add the default routing entries.

      For example, the default gateway corresponding to the IP address allocated in Step 1: Configuring the Wireless Network is 192.168.137.1.

      route add default gw 192.168.137.1

    3. Remove the network cable from the PC and disconnect the network between the PC and HiLens Kit device. Then, use the network cable to connect the HiLens Kit device to the internal network.
  • Network Verification
    1. On the PC in the internal network, use the new internal network IP address (10.78.14.58 in this example) to log in to the HiLens Kit device through SSH. For details, see Logging In to a HiLens Kit Device Using SSH.
    2. Run the ping command to check whether the wired network (external network) and wireless network (internal network) are successfully connected.

      If the device is connected successfully, the following information is displayed:

      Figure 10 Wired connection prompt
      Figure 11 Wireless connection prompt