- 原因
二层接口不能直接配置ip,我们在使用ensp的时候,AR201这个路由器的接口默认是二层接口
display ip interface brief 可以查询到可以配置ip的口
- 解决方法1
在接口视图下使能三层接口功能,undo portswitch
但有时候也不太行,感觉是ensp模拟器的限制[Huawei-Ethernet0/0/0]ip ?
^
Error: Unrecognized command found at ‘^’ position.
[Huawei-Ethernet0/0/0]undo portswitch
[Huawei-Ethernet0/0/0]ip add 192.168.10.1 24
Nov 18 2024 10:35:22-08:00 Huawei %%01IFNET/4/LINK_STATE(l)[5]:The line protocol
IP on the interface Ethernet0/0/0 has entered the UP state.
- 解决方法2
使用GigabitEthernet口以及插入其他板卡,我发现GigabitEthernet口是一直默认三层接口的,最不折腾的方法就是全用GigabitEthernet口。
GigabitEthernet口配置
这里我加了一块2FE的卡,可以进行IP配置