Huawei Router Interface Configuration


Huawei Router Interface Configuration

Huawei Router Interface Configuration is one of the first configuration that Junior Network Engineers learn on Huawei Routers. Here, we will show how to configure Huawei Router Interfaces with given IP addresses.


You can test youself with Huawei HCIA Questions Page.


For our example, we will use the below simple topology.





You can download this configuration on Huawei eNSP Labs Page.


As you can see above, there are two types interfaces. These are :

  • Pyhsical Interfaces
  • Loopback Interfaces


In this configuration example, we have 1 loopback and 1 physical interface per router. Physical interface configuration will be done for the communication of two router. Loopback interface configuration is done for other special activities.Here, we will also configure it only to show you that it is not different than a physical interface configuration.


Let’s start the configuration with Router A.


In Router A, firstly we will con figure Gigabit Ethernet 0/0/0 interface IP Address with its Subnet Mask. After this, we will open the port. Because by default router ports are shutdown. We will use “undo shutdown” command to open the port.


<Huawei-RouterA> system-view
[Huawei-RouterA] interface GigabitEthernet 0/0/0
[Huawei-RouterA-GigabitEthernet0/0/0] ip address
[Huawei-RouterA-GigabitEthernet0/0/0] undo shutdown
[Huawei-RouterA-GigabitEthernet0/0/0] quit


The second interface configuration on Router A will be Loopback 0 configuration. Again, we will configure IP Address and Subnet Mask. We can configure Subnet Mask with long versions like ( or short versions (32).


[Huawei-RouterA] interface Loopback 0
[Huawei-RouterA-Loopback0] ip address 32
[Huawei-RouterA-Loopback0] quit


Now, it is time to configure Router B. We will do the same configuration steps for Router B too. Only the IP Addresses will change.


< Huawei-RouterB> system-view
[Huawei-RouterB] interface GigabitEthernet 0/0/0
[Huawei-RouterB-GigabitEthernet0/0/0] ip address
[Huawei-RouterB-GigabitEthernet0/0/0] undo shutdown
[Huawei-RouterB-GigabitEthernet0/0/0] quit


[Huawei-RouterB] interface Loopback 0
[Huawei-RouterB-Loopback0] ip address 32
[Huawei-RouterB-Loopback0] quit


After the configuraton of both Routers, we can check the connection with pinging Router B from Router A and vice versa.


[Huawei-RouterA] ping


[Huawei-RouterB] ping


To ping Loopback interfaces, routing is need on the routers. Because a router can only access to directly connected networks without routing. For routing, static routing or routing protocol is used. We will explain the configuration of static routing and routing protocols in the other lessons.


After Huawei interface configuration, you can focus on other Huawei HCIA configurations like Huawei NAT, DHCP, OSPF configurations. With more practice on Huawei CLI, you will be more familiar on Huawe commands. Because these commands are both improtant for your job and for HCIA Exam.


Back to: HCNA > Static Routing

Leave a Reply

Your email address will not be published. Required fields are marked *