Compute
Elastic Cloud Server
Huawei Cloud Flexus
Bare Metal Server
Auto Scaling
Image Management Service
Dedicated Host
FunctionGraph
Cloud Phone Host
Huawei Cloud EulerOS
Networking
Virtual Private Cloud
Elastic IP
Elastic Load Balance
NAT Gateway
Direct Connect
Virtual Private Network
VPC Endpoint
Cloud Connect
Enterprise Router
Enterprise Switch
Global Accelerator
Management & Governance
Cloud Eye
Identity and Access Management
Cloud Trace Service
Resource Formation Service
Tag Management Service
Log Tank Service
Config
OneAccess
Resource Access Manager
Simple Message Notification
Application Performance Management
Application Operations Management
Organizations
Optimization Advisor
IAM Identity Center
Cloud Operations Center
Resource Governance Center
Migration
Server Migration Service
Object Storage Migration Service
Cloud Data Migration
Migration Center
Cloud Ecosystem
KooGallery
Partner Center
User Support
My Account
Billing Center
Cost Center
Resource Center
Enterprise Management
Service Tickets
HUAWEI CLOUD (International) FAQs
ICP Filing
Support Plans
My Credentials
Customer Operation Capabilities
Partner Support Plans
Professional Services
Analytics
MapReduce Service
Data Lake Insight
CloudTable Service
Cloud Search Service
Data Lake Visualization
Data Ingestion Service
GaussDB(DWS)
DataArts Studio
Data Lake Factory
DataArts Lake Formation
IoT
IoT Device Access
Others
Product Pricing Details
System Permissions
Console Quick Start
Common FAQs
Instructions for Associating with a HUAWEI CLOUD Partner
Message Center
Security & Compliance
Security Technologies and Applications
Web Application Firewall
Host Security Service
Cloud Firewall
SecMaster
Anti-DDoS Service
Data Encryption Workshop
Database Security Service
Cloud Bastion Host
Data Security Center
Cloud Certificate Manager
Edge Security
Managed Threat Detection
Blockchain
Blockchain Service
Web3 Node Engine Service
Media Services
Media Processing Center
Video On Demand
Live
SparkRTC
MetaStudio
Storage
Object Storage Service
Elastic Volume Service
Cloud Backup and Recovery
Storage Disaster Recovery Service
Scalable File Service Turbo
Scalable File Service
Volume Backup Service
Cloud Server Backup Service
Data Express Service
Dedicated Distributed Storage Service
Containers
Cloud Container Engine
SoftWare Repository for Container
Application Service Mesh
Ubiquitous Cloud Native Service
Cloud Container Instance
Databases
Relational Database Service
Document Database Service
Data Admin Service
Data Replication Service
GeminiDB
GaussDB
Distributed Database Middleware
Database and Application Migration UGO
TaurusDB
Middleware
Distributed Cache Service
API Gateway
Distributed Message Service for Kafka
Distributed Message Service for RabbitMQ
Distributed Message Service for RocketMQ
Cloud Service Engine
Multi-Site High Availability Service
EventGrid
Dedicated Cloud
Dedicated Computing Cluster
Business Applications
Workspace
ROMA Connect
Message & SMS
Domain Name Service
Edge Data Center Management
Meeting
AI
Face Recognition Service
Graph Engine Service
Content Moderation
Image Recognition
Optical Character Recognition
ModelArts
ImageSearch
Conversational Bot Service
Speech Interaction Service
Huawei HiLens
Video Intelligent Analysis Service
Developer Tools
SDK Developer Guide
API Request Signing Guide
Terraform
Koo Command Line Interface
Content Delivery & Edge Computing
Content Delivery Network
Intelligent EdgeFabric
CloudPond
Intelligent EdgeCloud
Solutions
SAP Cloud
High Performance Computing
Developer Services
ServiceStage
CodeArts
CodeArts PerfTest
CodeArts Req
CodeArts Pipeline
CodeArts Build
CodeArts Deploy
CodeArts Artifact
CodeArts TestPlan
CodeArts Check
CodeArts Repo
Cloud Application Engine
MacroVerse aPaaS
KooMessage
KooPhone
KooDrive
Help Center/ Huawei HiLens/ User Guide/ Registering HiLens Kit Devices/ Configure Networking/ Wireless Network (External Network) and Wired Network (Internal Network)

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

Updated on 2023-03-27 GMT+08:00

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

We use cookies to improve our site and your experience. By continuing to browse our site you accept our cookie policy. Find out more

Feedback

Feedback

Feedback

0/500

Selected Content

Submit selected content with the feedback