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 :
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] interface GigabitEthernet 0/0/0
[Huawei-RouterA-GigabitEthernet0/0/0] ip address 192.168.0.1 255.255.255.0
[Huawei-RouterA-GigabitEthernet0/0/0] undo shutdown
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 (255.255.255.255) or short versions (32).
[Huawei-RouterA] interface Loopback 0
[Huawei-RouterA-Loopback0] ip address 10.10.10.10 32
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 192.168.0.2 255.255.255.0
[Huawei-RouterB-GigabitEthernet0/0/0] undo shutdown
Leave a Reply