Got it

Static routing in Huawei EG8145V5

Created: Sep 20, 2021 16:00:20Latest reply: Oct 1, 2021 17:30:40 738 14 0 0 0
  Rewarded HiCoins: 1 (problem resolved)

Hi! I need to set a static route in a Huawei EG8145V5 acting as gateway.


The main network is 192.168.0.0/24, the EG8145V5 is 192.168.0.251


There is another router, 192.168.0.61 who communicate with another network, 192.168.2.0/24


This configuration has benn working previously with two different gatways. The only thing I had to do was setting a static route in the gateway, 192.168.2.0/24 via 192.168.0.61. Nothing more.


Now I have installed a EG8145V5, and I have set the static routing in CLI (accessing by SSH) because I can´t find any option in the Web GUI. The command I have written is:

ip route add address-family inet ip 192.168.2.0/24 gateway 192.168.0.61 interface br0


But now, I can ping 192.168.2.0/24 hosts from the router CLI, but I can not from any other host on 192.168.0.0/24

The EG8145V5 knows how to do it, because it do it from CLI, but it does not forward the ping packets of other hosts by interface br0, it forward them by wan.


I attach a pic with traceroute from the EG8145V5 CLI, succesfuly, and from a host of 192.168.0.0/24, wrong.


EG8145V5 static route


Featured Answers
Chenxintao
Admin Created Sep 26, 2021 01:06:36

Hello, friend!


Unbinding is shown in the following figure.


wan



View more
  • x
  • convention:

TomasCrespo
TomasCrespo Created Sep 29, 2021 10:09:13 (0) (0)
Thanks! I will test your solution and report in a pair of days  

Recommended answer

Diego.Silva
MVE Author Created Sep 20, 2021 18:01:33

Hi, Friend,

I think the Host connected to the 192.168.0.0 cannot ping the other Host at the bottom of the 192.168.2.0, because the 192.168.0.61 router performs NAT address translation. You can try to turn off this function, but if it is a home router, it cannot be turned off.


To configure Static Route via the web, you can follow the following step:

  1. In the navigation tree on the left, choose Route > Static Route Configuration. In the pane on the right, click New. In the dialog box that is displayed, set the parameters related to the static route, as shown in Figure 1.

    Figure 1 Static Route Configuration


    aa

  2. Click Apply.


View more
  • x
  • convention:

TomasCrespo
TomasCrespo Created Sep 21, 2021 18:17:08 (0) (0)
Hi Diego!

The router 192.168.0.61 is not the problem. Before EG8145V5 (192.168.0.251) we have had two other routers working pefectly. Further more, I have test again. I have replaced the EG8145V5 by my old router and all 192.168.0.0/host are able to ping any 192.168.2.0/24 host. So, the problem is in the EG8145V5.

Furthermore, as you can see in the attached pic of tracert, when a host of 192.168.0.0/24 makes a ping, the packet never gets 192.168.0.61. It gets the EG8145V5 and it sends to W 
All Answers
Hello! Thank you for contacting us.
We are working on an answer for you.
View more
  • x
  • convention:

Hello,



Your account permissions may not meet the requirements. Please use the administrator account of the device to log in. If you do not know the administrator account details, contact your device provider to obtain them. Then, modify the DNS parameters.


Thanks
View more
  • x
  • convention:

TomasCrespo
TomasCrespo Created Sep 22, 2021 11:03:31 (0) (0)
Hi! I have just tried with admin password. Now I have a "Route" menu in Web GUI, but the result is the same. The router can ping any 192.168.2.0/24 host (from CLI) but the rest of 192.168.0.0/24 host can NOT.  
Diego.Silva
Diego.Silva MVE Author Created Sep 20, 2021 18:01:33

Hi, Friend,

I think the Host connected to the 192.168.0.0 cannot ping the other Host at the bottom of the 192.168.2.0, because the 192.168.0.61 router performs NAT address translation. You can try to turn off this function, but if it is a home router, it cannot be turned off.


To configure Static Route via the web, you can follow the following step:

  1. In the navigation tree on the left, choose Route > Static Route Configuration. In the pane on the right, click New. In the dialog box that is displayed, set the parameters related to the static route, as shown in Figure 1.

    Figure 1 Static Route Configuration


    aa

  2. Click Apply.


View more
  • x
  • convention:

TomasCrespo
TomasCrespo Created Sep 21, 2021 18:17:08 (0) (0)
Hi Diego!

The router 192.168.0.61 is not the problem. Before EG8145V5 (192.168.0.251) we have had two other routers working pefectly. Further more, I have test again. I have replaced the EG8145V5 by my old router and all 192.168.0.0/host are able to ping any 192.168.2.0/24 host. So, the problem is in the EG8145V5.

Furthermore, as you can see in the attached pic of tracert, when a host of 192.168.0.0/24 makes a ping, the packet never gets 192.168.0.61. It gets the EG8145V5 and it sends to W 
Currently the routing table is:
Number Destination IP Address Destination Subnet Mask Gateway Interface Source
1 0.0.0.0 0.0.0.0 178.237.132.129 2_INTERNET_R_VID_10 Static route
2 10.230.0.0 255.255.240.0 0.0.0.0 1_TR069_R_VID_20 System
3 178.237.132.128 255.255.255.128 0.0.0.0 2_INTERNET_R_VID_10 System
4 192.168.0.0 255.255.255.0 0.0.0.0 br0 System
5 192.168.2.0 255.255.255.0 192.168.0.61 br0 Static route

My route is #5.
It looks that the router is applying route #1 when a 192.168.0.0/24 host pings a 192.168.2.0/24 host.
View more
  • x
  • convention:

Posted by TomasCrespo at 2021-09-22 11:37 Currently the routing table is:Number Destination IP Address Destination Subnet Mask Gateway Interfa ...

Hi, friend!

I understand your question, but can you provide the following information?

1. Run the telnet command to the ONT.

2. display current-configuration

3. collect debug info

Thanks!

View more
  • x
  • convention:

Hi! And thank you for your interest


I attach the output of each command:


display current-configuration



collect debug info




Thanks!

View more
  • x
  • convention:

Posted by TomasCrespo at 2021-09-23 15:33 Hi! And thank you for your interestI attach the output of each command:display current-configuration ...

Hello, friend!


Based on the information you provided, I made a simple topology.


ont

It is verified that you need to unbind the device port in the existing WAN and LAN configurations to implement communication between network segment 0.2 and network segment 2.0.


Thanks!

View more
  • x
  • convention:

TomasCrespo
TomasCrespo Created Sep 25, 2021 12:04:01 (0) (0)
The topology is correct, but I don't understand what means "I have to unbind WAN and LAN interfaces"  
liqiang185
liqiang185 Reply TomasCrespo  Created Sep 25, 2021 13:13:50 (0) (0)
Do you mean LAN port and WAN port on ont? They need to be bound together.  

Hello, friend!


Unbinding is shown in the following figure.


wan



View more
  • x
  • convention:

TomasCrespo
TomasCrespo Created Sep 29, 2021 10:09:13 (0) (0)
Thanks! I will test your solution and report in a pair of days  

As @Chenxintao said, unbinding the LAN ports in the WAN configuration tab got the things working. Now every host at 192.168.0.0/24 can ping any host of 192.168.2.0/24 through the Huawei EG8145V5 (192.168.0.251) with a static route.


Great!!! Really, really thanks Chenxintao.


PD: Now only have one problem. When the router restarts, the lan ports and binded again i_f36.gif

View more
  • x
  • convention:

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.