华为 AR207V - 无法设置 IP 地址

网络工程 路由器 ip 华为
2022-02-20 16:49:51

我无法在华为 AR207V 路由器上设置 IP 地址,因为它拒绝“ip 地址”命令。

这是一个使用过但恢复出厂设置的设备,我目前连接在串口上,没有其他连接。

[Huawei]display version
Huawei Versatile Routing Platform Software
VRP (R) software, Version 5.130 (AR200 V200R005C00SPC100)
Copyright (C) 2011-2013 HUAWEI TECH CO., LTD
Huawei AR207V Router uptime is 0 week, 0 day, 0 hour, 40 minutes

MPU 0(Master) : uptime is 0 week, 0 day, 0 hour, 40 minutes
SDRAM Memory Size    : 512     M bytes
Flash Memory Size    : 512     M bytes
MPU version information :
1. PCB      Version  : AR01SRU0B VER.B
2. MAB      Version  : 0
3. Board    Type     : AR207V
..snip

我无法更新到最新固件,因为它首先需要 IP。

这就是我尝试在接口上设置 IP 时发生的情况 -

Please configure the login password (<6-128>)
Enter password:
Confirm password:
<Huawei>system-view
Enter system view, return user view with Ctrl+Z.
[Huawei]interface Ethernet 0/0/0
[Huawei-Ethernet0/0/0]ip address 192.168.2.1 24
                     ^
Error: Unrecognized command found at '^' position.

有很多说明*显示如上设置 IP 但本机拒绝关键命令

这里出了什么问题?

谢谢

(IP设置说明-https: //support.huawei.com/enterprise/en/doc/EDOC1100033773/403d9282/configuring-ip-addresses-for-interfaces

2个回答

谢谢扎克。

我从华为论坛得到了答复;undo portswitch on ethernet 0/0/0 允许在该接口上设置 ip,但您不能在其他以太网接口上执行此操作。

system-view
interface Ethernet 0/0/0
undo portswitch
ip address <ip> <bits>

我会看看vlans是否有帮助。

谢谢

我认为路由器不支持 L3 或路由接口,因此您不能直接将 IP 地址绑定到物理接口。您可能希望将 IP 地址绑定到 VLAN:

system-view
vlan 1234
quit
interface vlanif 1234
ip address 192.168.2.1 24
quit