Sie sind auf Seite 1von 10

onu nat

Function

This command is used to configure the status of the function that the OLT manages the ONU
through the NAT agent. When this function is enabled, the OLT can manage the ONU through
an agent. When this function is disabled, the OLT cannot manage the ONU through the
agent. In addition, when this function is disabled, the service will be terminated and thus user
configuration will be lost. As a result, allocation information such as UDP port reallocation
needs to be re-configured.

Format

onu nat { enable | disable }

Parameters

Parameter Description Value

enable Enables the function that the OLT -


manages the ONU through the NAT
agent. After this function is enabled, the
OLT can manage the ONU through the
NAT agent.

disable Disables the function that the OLT -


manages the ONU through the NAT
agent.

Modes

Global config mode

Level

Operator level

Usage Guidelines

 By default, this function is disabled.

 To save IP resources, and reduce fees for IP address registration and maintenance
workload of the NMS, you can use the OLT for managing the ONU through an
agent. In this case, you can enable the function that the OLT manages the ONU
through the NAT agent to implement management of the ONU by the OLT through
the agent.
 Before this function is enabled, you must check whether the static IP address or
DHCP is configured for the ONU in the system. If the static IP address or DHCP is
configured for the ONU in the system, you can enable this function after deleting the
associated configuration.

 If this function is disabled, the service will be terminated and thus configuration will be
lost; in addition, the original UDP information, OLT agent allocation information, and
ACL rules of the ONU will be deleted. In this case, UDP port reallocation is required
for re-configuration.

Example

To query the status of the function that the OLT manages the ONU through the NAT agent,
do as follows:

huawei(config)#onu nat enable


Are you sure to enable ONU NAT switch?
If you choose'y', ONU will be out of control.
Sure to enable? (y/n)[n]:y
Success: Set the switch of OLT succeed

System Response

 The system displays the result after the status of the function that the OLT manages
the ONU through the NAT agent is configured successfully.

 For more information about the error message that the system displays against a
command entered with incorrect syntax, see the "Syntax Check" in Parameter.

onu nat ip

Function

This command is used to configure the public network IP address for the ONU when the
function that the OLT manages the ONU through the NAT agent is enabled.

The NMS queries and configures the ONU based on the public network IP address of the
ONU; thus, if the OLT manages the ONU through the agent, the NMS cannot learn the private
network IP address of the ONU. Therefore, you need to configure a public network IP address
for the ONU for the NMS to query information about the ONU through the public network IP
address of the ONU.

Format

onu nat ip ip-addr

Parameters

Parameter Description Value

ip ip-addr Configures the global IP address, in Dotted decimal notation.


dotted decimal notation. It cannot be Range: 0.0.0.0-
changed after configuration. This IP 255.255.255.255.
address is a unicast IP address. Default value: 10.10.10.10.

Modes

Global config mode

Level

Operator level

Usage Guidelines

 Configure the public network IP address of the ONU before the function that the OLT
manages the ONU through the NAT agent is enabled.

 Configure the IP address of L3 interface of the OLT before configuring the public
network IP address of the ONU; otherwise, the public network IP address of the
ONU cannot be configured.

 Configure the public network IP address to the IP address of L3 interface of the OLT.

Example

To configure the public network IP address of the ONU to 10.71.50.23 before the function that
the OLT manages the ONU through the NAT agent is enabled, do as follows:

huawei(config)#onu nat ip
{ ip-addr<I><X.X.X.X> }:10.71.50.23

Command:
onu nat ip 10.71.50.23
System Response

 When configuring the public network IP address of the ONU, if you fail to configure
the IP address of the L3 interface in advance, the system displays the message
"Fail to get MAC address from this IP, please config another IP address".

 For more information about the error message that the system displays against a
command entered with incorrect syntax, see the "Syntax Check" in Parameter.

onu nat ip-pool

Function

This command is used to configure the start IP address and IP address range of the ONU
private IP address pool when the function of managing the ONU through the NAT agent by
the OLT is disabled. Operators can configure the private IP addresses and its count for the
ONU according to actual conditions.

Format

onu nat ip-pool { start-address ip-addr scope scope-value }

Parameters

Parameter Description Value

start-address ip- Configures the start IP address of the Dotted decimal notation.
addr ONU private IP address pool, in the Range: 0.0.0.0-
dotted decimal notation. This IP address 255.255.255.255.
is a unicast IP address. Default: 10.0.0.0.

scope scope-value Configures the range of ONU private IP Numeral type. Range:
addresses, that is, the number of IP 1024-5120.
addresses. Default: 5120.

Modes

Global config mode


Level

Operator level

Usage Guidelines

 Before configuring the start IP address and IP address range of the ONU private IP
address pool, disable the function of managing the ONU through the NAT agent by
the OLT.

 In each IP address segment, the IP address *.*.*.0 is the system reserved IP address
and is used as the gateway, the IP address *.*.*.255 is used as the broadcast IP
address, and only the IP addresses *.*.*.2-*.*.*.254 can be allocated to the ONU.

 Make sure that the start IP address configured and the IP addresses in the specified
range do not conflict with other IP addresses.

Example

To configure the range of ONU private IP addresses when the function of managing the ONU
through the NAT agent by the OLT is disabled, do as follows:

huawei(config)#onu nat ip-pool


{ start-address<K> }:start-address
{ ip-addr<I><X.X.X.X> }:10.9.8.2
{ scope<K> }:scope
{ scope-value<U><1024,5120> }:1024

Command:
onu nat ip-pool start-address 10.9.8.2 scope 1024

System Response

 The system displays the message "Please disable the ONU NAT switch first" if the
ONU private IP addresses are configured when the function of managing the ONU
through the NAT agent by the OLT is enabled.

 The system does not display any message after the command is executed
successfully.

 For more information about the error message that the system displays against a
command entered with incorrect syntax, see the "Syntax Check" in Parameter.
onu nat priority

Function

This command is used to configure priority for the upstream SNMP packet when the function
that the OLT manages the ONU through the NAT agent is enabled.

Format

onu nat priority priority-value

Parameters

Parameter Description Value

priority priority- Configures priority for the upstream Numeral type. Range: 0-7.
value SNMP packet of the ONU. Default value: 7.

Modes

Global config mode

Level

Operator level

Usage Guidelines

Before the function that the OLT manages the ONU through the NAT agent is enabled,
configure priority for the upstream SNMP packet of the ONU.

Example

Before the function that the OLT manages the ONU through the NAT agent is enabled, to
configure priority for the upstream SNMP packet of the ONU to 4, do as follows:

huawei(config)#onu nat priority


{ priority-value<U><0,7> }:4

Command:
onu nat priority 4

System Response
 Before the function that the OLT manages the ONU through the NAT agent is
disabled, configuring of the priority of the upstream SNMP packet of the ONU will be
successful, but will not take effect.

 For more information about the error message that the system displays against a
command entered with incorrect syntax, see the "Syntax Check" in Parameter.

onu nat vlan

Function

This command is used to configure the VLAN ID of the ONU management channel when the
function that the OLT manages the ONU through the NAT agent. After the configuration of the
VLAN ID of the ONU management channel, an xPON board can capture the packet on the
ONU through the VLAN ID.

Format

onu nat vlan vlanid

Parameters

Parameter Description Value

vlan vlanid Configures the VLAN ID of the agent Numeral type. Range: 2-
management channel of the ONU. 4093.

Modes

Global config mode

Level

Operator level

Usage Guidelines

Before configuring of the VLAN ID, the function that the OLT manages the ONU through the
NAT agent must be enabled. After the configuring of the VLAN ID, an xPON board can
capture the packet on the ONU through the VLAN ID.

Example
Before the function that the OLT manages the ONU through the NAT agent is enabled, to
configure the VLAN ID of the agent management channel of the ONU to 20, do as follows:

huawei(config)#onu nat vlan


{ vlanid<U><2,4093> }:20

Command:
onu nat vlan 20

System Response

 Before the function that the OLT manages the ONU through the NAT agent is
disabled, the configuring of the VLAN ID of the agent management channel of the
ONU will be successful, but will not take effect.

 For more information about the error message that the system displays against a
command entered with incorrect syntax, see the "Syntax Check" in Parameter.

telnet(ont)

Function

This command is used for a maintenance engineer to log in to the ONT from the OLT. After
this command is executed successfully, the maintenance engineer remotely logs in to the
ONT through networks.

Format

telnet frame/slot/port ontid [ ont-vlan | ont-ip ] *

Parameters

Parameter Description Value

frame/slot/port Indicates the subrack ID, slot ID, and port Please see Differences
ID. Between Shelves.

ontid Indicates the ID of the ONT to which the Please see Differences
maintenance engineer attempts to log in. Between Shelves.

ont-vlan Specifies the VLAN to which the ONT Numeral type. Range: 1-4095.
belongs
Parameter Description Value

ont-ip Indicates the IP address of the LAN port IPv4 address format. Dotted
on the ONT. There are five classes of IP decimal notation.
addresses. You can select a suitable IP
subnet based on the actual requirement. If
the host part of an IP address fully
consists of 0s or 1s, this IP address is
designed for special purposes and cannot
be used as common IP address.

Modes

diagnose mode

Level

Operator level

Usage Guidelines

 Ensure that the ONT has been added to the OLT before running this command.

 You can press Ctrl+] to exit a Telnet connection.

 For some specific ONTs, you must use VLAN 1 to telnet those ONTs. If VLAN 1 is
used, you cannot telnet those ONTs.

Example

To telnet the ONT from OLT in the diagnose mode, do as follows:

huawei(diagnose)#telnet
{ frame/slot/port<S><Length 1-15> }:0/12/0
{ ontid<U><0,127> }:0
{ <cr>|ont-ip<i><X.X.X.X>|ont_vlan<U><1,4094> }:10.10.10.10
{ <cr>|ont-vlan<U><1,4094> }:100
Command:
telnet 0/12/0 0 10.10.10.10 100

System Response

 The system shows the telnet login interface after you telnet the ONT successfully.
Enter the user name and password so that you can log in to the ONT.

 For more information about the error message that the system displays against a
command entered with incorrect syntax, see the "Syntax Check" in Parameter.

Das könnte Ihnen auch gefallen