Got it

How to configure DHCP for LAN ports of ONT from OLT CLI

Created: May 7, 2021 10:03:17Latest reply: May 7, 2021 11:43:30 284 2 0 0 0
  HiCoins as reward: 0 (problem unresolved)

Hello


I need help on how I can configure DHCP and assisgn ports to be used in the LAN of ONT when ONT is in routed mode. I know how to do this via ONT GUI (On the ONT Web page) at site but I want to be able to do this from OLT CLI.

Please help how to:

  1. assign static WAN IP on ONT via OLT CLI

  2. Create DHCP address pool for ONT LAN via OLT CLI

  3. Assign LAN ports on the ONT via OLT CLI


Thank you

Featured Answers

Recommended answer

Chenxintao
Admin Created May 7, 2021 11:43:30

Hello, friend!


1. You can run the ont ipconfig command to configure the IP address of the ONT.


Example:

To configure the static IP address 192.168. 10.2, subnet mask 255.255. 255.0, and gateway 192.168. 10.1, for ONT 0 connected to port 0/1/1, do as follows: The primary DNS is 192.168. 20.2 and the secondary DNS is 192.168. 20.10.


huawei (config-if-gpon-0/1)#ont ipconfig

{ port<U><0, 7> }:1

{ ontid<U><0, 127> }:0

{ dhep<K> | dsep-mapping-table<K> | ip-index<K> |pppoe<K> |static<K> }:static

{ <er>|gateway<K> | ip-address<K> | pri-dns<K>|slave-dns<K>|vlan<K> }:ip-address

{ ip-address<I2>《X.X.X.X> } :192. 168. 10. 2

[ mask<K> }:mask

{ mask<MDCX.X.X.X>》} :255. 255. 255. 0

[ <cr>|gateway<K>|pri-dns<K>|slave-dns<K>|vlan<K> }:gateway

{ gateway《I><X.X.X.X>》} :192. 168. 10. 1

[ <er>|pri-dns<K>|slave-dns<K>|vlan(K> }:pri-dns

{ pri-dns<I>《X.X.X.X>》}:192. 168. 20. 2

{ <er>|slave-dns<K>|vlan<K> }:slave-dns

{ s1ave-dns<1><X.X.X.X> ]:192.168.20.10

{ <er>|vlan<K> }:


Command:


ont ipconfig 1 0 static ip-address 192. 168. 10. 2 mask 255. 255. 255.0


gateway 192. 168. 10. 1 pri-dns 192. 168. 20.2 slave-dns 192. 168. 20. 10


2. The ip address command is used to configure an IP address pool. When you need to configure a media IP address for a media stream or a signaling IP address for a signaling stream, run this command. After the IP address is configured successfully, the corresponding interface uses the configured media IP address and signaling IP address.


3. On the third question: The LAN port of the ONT is fixed and cannot be allocated through the OLT.


Thanks!

View more
  • x
  • convention:

All Answers
Hello, dear!
It's nice to meet you in the community.
We're working on your problem. Please be patient.
View more
  • x
  • convention:

Hello, friend!


1. You can run the ont ipconfig command to configure the IP address of the ONT.


Example:

To configure the static IP address 192.168. 10.2, subnet mask 255.255. 255.0, and gateway 192.168. 10.1, for ONT 0 connected to port 0/1/1, do as follows: The primary DNS is 192.168. 20.2 and the secondary DNS is 192.168. 20.10.


huawei (config-if-gpon-0/1)#ont ipconfig

{ port<U><0, 7> }:1

{ ontid<U><0, 127> }:0

{ dhep<K> | dsep-mapping-table<K> | ip-index<K> |pppoe<K> |static<K> }:static

{ <er>|gateway<K> | ip-address<K> | pri-dns<K>|slave-dns<K>|vlan<K> }:ip-address

{ ip-address<I2>《X.X.X.X> } :192. 168. 10. 2

[ mask<K> }:mask

{ mask<MDCX.X.X.X>》} :255. 255. 255. 0

[ <cr>|gateway<K>|pri-dns<K>|slave-dns<K>|vlan<K> }:gateway

{ gateway《I><X.X.X.X>》} :192. 168. 10. 1

[ <er>|pri-dns<K>|slave-dns<K>|vlan(K> }:pri-dns

{ pri-dns<I>《X.X.X.X>》}:192. 168. 20. 2

{ <er>|slave-dns<K>|vlan<K> }:slave-dns

{ s1ave-dns<1><X.X.X.X> ]:192.168.20.10

{ <er>|vlan<K> }:


Command:


ont ipconfig 1 0 static ip-address 192. 168. 10. 2 mask 255. 255. 255.0


gateway 192. 168. 10. 1 pri-dns 192. 168. 20.2 slave-dns 192. 168. 20. 10


2. The ip address command is used to configure an IP address pool. When you need to configure a media IP address for a media stream or a signaling IP address for a signaling stream, run this command. After the IP address is configured successfully, the corresponding interface uses the configured media IP address and signaling IP address.


3. On the third question: The LAN port of the ONT is fixed and cannot be allocated through the OLT.


Thanks!

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.