服务配置命令
#进入系统视图
sys
Enter system view, return user view with Ctrl+Z.
#查看接口摘要
[Huawei]display ip interface brief
*down: administratively down
^down: standby
(l): loopback
(s): spoofing
The number of interface that is UP in Physical is 3
The number of interface that is DOWN in Physical is 1
The number of interface that is UP in Protocol is 1
The number of interface that is DOWN in Protocol is 3
Interface IP Address/Mask Physical Protocol
GigabitEthernet0/0/0 unassigned up down
GigabitEthernet0/0/1 unassigned up down
GigabitEthernet0/0/2 unassigned down down
NULL0 unassigned up up(s)
#进入接口视图
[Huawei]interface GigabitEthernet 0/0/0
#配置接口地址
[Huawei-GigabitEthernet0/0/0]ip address 192.168.1.254 255.255.255.0
Nov 19 2020 13:33:32-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[0]:The line protocol
IP on the interface GigabitEth