Got it

How to configure IP address to an AR158E interface?

Created: Sep 1, 2021 14:04:26Latest reply: Sep 1, 2021 15:15:53 631 13 2 0 0
  Rewarded HiCoins: 0 (problem resolved)

Hi guys, in my work we saw one old Huawei AR158E router gathering some dust and I'm playing now with it seeing if I can give it some new purpose...


So far I have been able to configure some VLANs and a VLANIF in Ethernet0/0/2 and works flawlessly... But I was wondering if I can configure an IP address directly to a interface, let's say Ethernet0/0/2, I was somehow related to Huawei cli but my skill levels are average at most. So I try to follow this tutorial, but I get stuck in one step and I can't configure the IP.


<AR-158E> system-view
[AR-158E] interface Ethernet0/0/2
[AR-158E-Ethernet0/0/2] ip address 192.168.0.15 255.255.255.0
                           ^   
Error: Unrecognized comand found at '^' position


When i try:

[AR-158E-Ethernet0/0/2] ip?
  ip IP packet
[AR-158E-Ethernet0/0/2] ip ?
                           ^ 
Error: Unrecognized comand found at '^' position


I guess I need to active some kind of hiden option, but I can't figure it out what it can be... How, if can be done, can I achieve to configure an IP to an interface?


-------------------------------------------------------------------------------------------------------------------------------

For info:

display version


Featured Answers

Best answer

Recommended answer

chenhui
Admin Created Sep 1, 2021 15:15:53

Hello,
You should configure the command 'undo portswtich' under the interface view.
Please refer to the example below:
<Huawei> system-view
[Huawei] interface ethernet 0/0/0
[Huawei-Ethernet0/0/0] undo portswitch

Besides, for Huawei AR158E in version V200R003, only LAN interface FE0 can be configured as a WAN interface. In other words, you can only switch the interface FE0 to a layer 3 interface. Or you can upgrade the router to V200R007C00, in which all FE LAN interfaces can be configured as WAN interfaces.


BTW, if you are not able to enter into the system view, the account that you are using to login into the router might have no priveleges.

View more
  • x
  • convention:

kCyborg
kCyborg Created Sep 1, 2021 15:32:35 (0) (0)
Indeed!!! I can (after undo portswitch) only configure the IP address on FE0 (Ethernet0/0/0) but not in the other interfaces. I will try to upgrade the router to V200R007C00 and will let you know, thanks mate!!!

A question rise for me: why do I need to send the "undo portswitch" command?

And yes, I have access to "system-view".

Thanks!!!!  
chenhui
chenhui Reply kCyborg  Created Sep 2, 2021 00:45:48 (0) (0)
You are welcome!  
kCyborg
kCyborg Created Sep 3, 2021 12:23:46 (0) (0)
Hi again... It took me some time, but I, just now, successfully upgraded the old AR158E from V200R003 up to V200R010C10!!!

Just now I configure the IP address to the Ethernet0/0/2 interface!!! Thanks you very much for your help... Just a question arise now: why can't I configure more than one interface in the same subnet? I had 10.0.0.1 on Eth0/0/0 and want to use 10.0.0.2 on Eth0/0/2 and give me the "The specified address conflict with another interface"?  
chenhui
chenhui Reply kCyborg  Created Sep 3, 2021 12:29:25 (0) (0)
Hi,
This is normal. For the router device, for each interface, it connects to a network segment, in other words, the IP addresses of any two interfaces should not be on the same network segment.  
kCyborg
kCyborg Reply chenhui  Created Sep 3, 2021 13:35:10 (0) (0)
Thanks for your quick answers!!!  
user_3894435
user_3894435 Created Sep 7, 2021 16:04:47 (0) (0)
 
Nabihazahid
Nabihazahid Created Sep 28, 2021 16:27:37 (0) (0)
 
All Answers
Hi,
Kindly wait for a second, we'll feedback to you ASAP.
View more
  • x
  • convention:

Hello. you can try this command before to configure an IP address: undo portswitch.


Also you can find the reference of the command here:


https://support.huawei.com/hedex/hdx.do?docid=EDOC1100069307&id=portswitch_ethernet_1&lang=en


Regards.

View more
  • x
  • convention:

kCyborg
kCyborg Created Sep 1, 2021 14:20:14 (0) (0)
Hi mate, without enter into the system-view:
<AR-158E> undo ?
clock Specify the system clock
debugging <Group> debugging command group
license <Group> license command group
schedule Schedule system task
screen-length Set the number of lines displayed on a screen
sslvpn Sslvpn
terminal Set the terminal line characteristics  
kCyborg
kCyborg Created Sep 1, 2021 14:22:48 (0) (0)
When I enter into the system-view (the most related like commands):
ping <Group> ping command group
pki <Group> pki command group
policy-based-route Specify a policy for policy based routing
port-group Port-group
port-mapping Specify PAM(Port to Application Mapping)
configuration information
portal <Group> portal co 
Nabihazahid
Nabihazahid Reply kCyborg  Created Sep 28, 2021 16:27:44 (0) (0)
 

Hello,
You should configure the command 'undo portswtich' under the interface view.
Please refer to the example below:
<Huawei> system-view
[Huawei] interface ethernet 0/0/0
[Huawei-Ethernet0/0/0] undo portswitch

Besides, for Huawei AR158E in version V200R003, only LAN interface FE0 can be configured as a WAN interface. In other words, you can only switch the interface FE0 to a layer 3 interface. Or you can upgrade the router to V200R007C00, in which all FE LAN interfaces can be configured as WAN interfaces.


BTW, if you are not able to enter into the system view, the account that you are using to login into the router might have no priveleges.

View more
  • x
  • convention:

kCyborg
kCyborg Created Sep 1, 2021 15:32:35 (0) (0)
Indeed!!! I can (after undo portswitch) only configure the IP address on FE0 (Ethernet0/0/0) but not in the other interfaces. I will try to upgrade the router to V200R007C00 and will let you know, thanks mate!!!

A question rise for me: why do I need to send the "undo portswitch" command?

And yes, I have access to "system-view".

Thanks!!!!  
chenhui
chenhui Reply kCyborg  Created Sep 2, 2021 00:45:48 (0) (0)
You are welcome!  
kCyborg
kCyborg Created Sep 3, 2021 12:23:46 (0) (0)
Hi again... It took me some time, but I, just now, successfully upgraded the old AR158E from V200R003 up to V200R010C10!!!

Just now I configure the IP address to the Ethernet0/0/2 interface!!! Thanks you very much for your help... Just a question arise now: why can't I configure more than one interface in the same subnet? I had 10.0.0.1 on Eth0/0/0 and want to use 10.0.0.2 on Eth0/0/2 and give me the "The specified address conflict with another interface"?  
chenhui
chenhui Reply kCyborg  Created Sep 3, 2021 12:29:25 (0) (0)
Hi,
This is normal. For the router device, for each interface, it connects to a network segment, in other words, the IP addresses of any two interfaces should not be on the same network segment.  
kCyborg
kCyborg Reply chenhui  Created Sep 3, 2021 13:35:10 (0) (0)
Thanks for your quick answers!!!  
user_3894435
user_3894435 Created Sep 7, 2021 16:04:47 (0) (0)
 
Nabihazahid
Nabihazahid Created Sep 28, 2021 16:27:37 (0) (0)
 

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.