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!