Got it

How to set the static route via Telnet/SSH on HG8120H?

Latest reply: Feb 26, 2021 13:51:46 4730 6 1 0 0

Hello, guys!


This post enquires about the procedure of how to set the static route via Telnet/SSH on HG8120H. Please see more details below.


Huawei HG8120H


ISSUE DESCRIPTION


I've a Telnet/SSH access to HG8120H. But I have no idea how to add a static route via Telnet/SSH. And commands like SU_WAP>ip route add ... give the error: 'ERROR::input para is not right!'


Even though it shows information like:


SU_WAP>ip route

78.81.176.1 dev ppp259  src 178.68.64.135

192.168.100.0/24 dev br0  src 192.168.100.1

10.199.96.0/19 dev wan2  src 10.199.96.177

default dev ppp259  metric 10


The web interface doesn't allow to add static routes from different subnets and it's weird, so I'm trying to solve this problem via Telnet/SSH.

Could you please help me with the procedure of how to set the static route via Telnet/SSH on HG8120H?


Thank you!

Next command is used to add an static route (WAN mode):
ip route add [ address-family Family ] ip IpAddressRange [ gateway IpAddress ]interface IntfName [ metric Metric ] [ srcip Ip ]
As example:
To add a static route of the wan interface, do as follows:
WAP>ip route add address-family inet ip 20.1.20.6 gateway 20.1.20.254 interface Internet metric 100
success!
View more

This article contains more resources

You need to log in to download or view. No account? Register

x
  • x
  • convention:

faysalji
faysalji Created Oct 5, 2018 04:27:03 (0) (0)
Thank you!  
Hi,
I have almost the same problem:
WAP>ip route add address-family Ipv4 ip 192.168.3.1 gateway 192.168.1.1 interface br0 metric 100
ERROR::input para is not right!

What am I doing wrong?
View more
  • x
  • convention:

Posted by KingSize at 2019-03-17 16:54 Hi, I have almost the same problem: WAP>ip route add address-family Ipv4 ip 192.168.3.1 gateway 192. ...
hi,friend,if you have any problem,please open another post.How to set the static route via Telnet/SSH on HG8120H?-2894153-1
View more
  • x
  • convention:

192.168.3.1 and 192.168.1. different ip address
View more
  • x
  • convention:

Hi although I can add

ip route delete address-family inet ip 192.168.240.0/24 gateway 192.168.100.10 interface LocalNetwork metric 100

with succes , I can only ping the network devices of 192.168.240.0/24 only from the telnet session , all other devices on the LAN 192.168.100.0/24 who has gateway the huawei router cannot reach the 192.168.240.0/24.
What could be the issue
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.