华为路由器配置接口IP命令
华为路由器配置接口IP命令如下:
- 进入路由器配置界面,输入用户名和密码。
- 进入接口配置模式,输入命令 interface interface-name (interface-name 为接口名称,如 GigabitEthernet 0/0/1)。
- 配置IP地址,输入命令 ip address ip-address mask (ip-address 为IP地址,mask 为子网掩码)。
- 配置接口状态,输入命令 undo shutdown (表示开启接口)或 shutdown (表示关闭接口)。
- 保存配置,输入命令 save。
例如,配置GigabitEthernet 0/0/1接口的IP地址为192.168.1.1,子网掩码为255.255.255.0,开启接口,命令如下:
interface GigabitEthernet 0/0/1 ip address 192.168.1.1 255.255.255.0 undo shutdown save
原文地址: http://www.cveoy.top/t/topic/hhkL 著作权归作者所有。请勿转载和采集!