![Huawei V100R006C00 Скачать руководство пользователя страница 30](http://html.mh-extra.com/html/huawei/v100r006c00/v100r006c00_configuration-manual_169533030.webp)
[SwitchB-GigabitEthernet0/0/1]
nap local-ip 12.12.12.5 sub-ip 12.12.12.9 peer-ip
12.12.12.6 sub-ip 12.12.12.10 30
Are you sure to continue?[Y/N]
y
# After the preceding configuration is complete, run the
display nap status
command on
Switch B. You can view that NAP has been enabled on Switch B. Then, run the
display nap
interface
command. You can view that the primary and secondary IP addresses have been
assigned to the master and slave interfaces. For example:
[SwitchB-GigabitEthernet0/0/1]
display nap status
Slave port status : Enable
Nap ip-pool/Mask : 10.167.253.0/24
[SwitchB-GigabitEthernet0/0/1]
display nap interface
------------------------------------------------------
NAP master port list
Port count : 1
------------------------------------------------------
Port property : Master
Current status : IP-ASSIGNED
Local port : GigabitEthernet0/0/1
Peer port : GigabitEthernet0/0/1
Local primary ip : 12.12.12.5
Peer primary ip : 12.12.12.6
Local secondary ip : 12.12.12.9
Peer secondary ip : 12.12.12.10
Hello time : 3s
Linked time : 00:02:33
------------------------------------------------------
Step 3
Log in to the slave device from the master device.
# Configure Switch B.
[SwitchB-GigabitEthernet0/0/1]
nap login neighbor
Trying 12.12.12.10 ...
Press CTRL+K to abort
Connected to 12.12.12.10 ...
Info: The max number of VTY users is 10, and the number
of current VTY users on line is 1.
Step 4
Disable NAP on the slave device.
# Configure Switch C.
<Quidway>
system-view
[Quidway]
sysname SwitchC
[SwitchC]
undo nap slave enable
----End
Configuration Files
None
2.3.2 Example for Configuring NAP-based Remote Deployment in
Automatic Mode
In this example, the temporary neighbor relationship is set up between a switch and another
switch that has the empty configuration to implement remote deployment in automatic mode.
Networking Requirements
, the user needs to perform a remote login to Switch B from Switch A.
Switch B is the master device, and temporary neighbor relationship is to be set up between
Quidway S5700 Series Ethernet Switches
Configuration Guide - Device Management
2 NAP Configuration
Issue 01 (2011-07-15)
Huawei Proprietary and Confidential
Copyright © Huawei Technologies Co., Ltd.
21