Showing posts with label Huawei S5700-52C-SI. Show all posts
Showing posts with label Huawei S5700-52C-SI. Show all posts

Monday, March 7, 2016

CONFIGURING NTP ACCESS CONTROL AUTHORITY ON HUAWEI SWITCH

NTP access control is a simple security measure. When an access request reaches the local end, the access request is successively matched with the access authority from the maximum one to the minimum one. The first successfully matched access authority takes effect. The matching order is: peer, server, synchronization, and query.
1 peer: indicates the maximum access authority. The remote end can perform time requests and control queries for the local NTP service. The local clock can also be synchronized with the clock of the remote server.
2 server: indicates that the remote end can send a time request and a control query to the local end. The local clock, however, cannot be synchronized with the clock of the remote server.
3 synchronization: indicates that the remote end can perform only the time request to the local end.
4 query: indicates the minimum access authority. The remote end can only perform the control query to the local end.
The access control authority is configured on different devices in different NTP operating modes, as described in Table 4-1.
The configuration overview :
Step 1 Run:
system-view
The system view is displayed.
Step 2 Configure the basic ACL.
Before configuring the access control rights, you must create a basic ACL. For the creation procedure, see “ACL Configuration” in the S2750&S5700&S6700 Series Ethernet Switches Configuration Guide-Security.
Step 3 Run:
ntp-service access { peer | query | server | synchronization } acl-number
The access control authority of the NTP service is configured.
By default, no access control authority is set.
Note:
Check the configuration of the ACL rule before configuring the NTP access control authority in the ACL. When the ACL rule is permit, the peer device with the source IP address specified in this rule can access the NTP service on the local device. The access right of the peer device is configured using the ntp-service access command. When the ACL rule is deny, the peer device with the source IP address specified in this rule cannot access the NTP service on the local device.
—-End

Checking the Configuration
 Run the display current-configuration include ntp command to check the NTP configuration.
 Run the display ntp-service status command to check the NTP service status.
 Run the display ntp-service sessions verbose ] command to check the NTP session status.
—-End
This configuration also works for Huawei S2700, S5700, S6700.
Customers interested in purchasing Huawei switch ch or the price, please refer to below links:
More blog:
Huawei Low-end Switches Boot Upgrade For BOOTROM
Huawei Low-end Switches Upgrade The APP System
Cisco-Router-IOS Configuration Backup And Recovery
Optical attenuation is too large lead to ONU recovery failure

How to configure FTP for S5700-SI ?

When I configure FTP for Huawei S5700-52C-SI, I use the steps as following, but I can’t make it work:
Step 1 seting for the FTP server
Start the FTP service on Quidway S5700, and configure the FTP username ftpuser, password ftppwd.
<Quidway> System-View
[Quidway] FTP server enable
[Quidway] AAA
[Quidway-aaa] local-user ftpuser password simple ftppwd – appear the mistake: Error: Unrecognized command found at ‘^’ position. but if input: local-user ftpuserpassword CI ftppwd is not this tip.
[Quidway-aaa] local-user ftpuser service-type FTP
[Quidway-aaa] local-user ftpuser ftp-directory flash:/
[Quidway-aaa] return

Step 2 configure device IP
The configuration of IP, recommend the use of the idle and configured as a default configuration interface, the Ethernet 0/0/1 as an example.
<Quidway> System-View
[Quidway]interface Ethernet 0/0/1 – enter the mistake this command: Error: Wrongparameter found at position. and then give ‘^’ not the next step.
[Quidway-Ethernet0/0/1]port link-type access
[Quidway-Ethernet0/0/1]quit
[Quidway] VLAN 10
[Quidway-vlan10] port Ethernet 0/0/1
[Quidway-vlan10] quit
[Quidway] interface vlanif 10
[Quidway-Vlanif10] IP address 1.1.1.1 24
[Quidway-Vlanif10] quit
[Quidway]

Step 3 login to the FTP server (Switch)
The following example is the WindowsXP system are described.
Storage will upload the file to the specified directory (assumed to be the D:\> directory), in the “Start Menu” run “, type” CMD, and then press the “enter” key. Then type FTP 1.1.1.1,in “user” prompt, enter the user name, in the “password” prompt, enter the password, and then press the “enter” key. Display information as follows:
D:\>ftp 1.1.1.1
Connected to 1.1.1.1
220 FTP service ready
User (1.1.1.2: (none)): ftpuser
331 Password required for 1
Password
230 User logged in
Ftp>
Step 1 upload web software
In the FTP client (PC) to execute the put source-filename [destination-filename], from PC upload software. Upload finished, execute the bye command, disconnect FTP, return to the user view.
Ftp> put D:\S2300.web.zip
200 Port command okay
150 Opening ASCII mode data connection for S2300.web.zip
226 Transfer complete
Ftp: send 4940436 bytes, when using 35.10Seconds 140.76Kbytes/sec
Ftp> bye
221 Server closing
D:\>

The suggestion:

Before configure the IP, recommend the use of the idle and configured as a default configuration interface, the Ethernet 0/0/1 as an example:
<Quidway> System-View
[Quidway]interface Ethernet 0/0/1 – appear the mistake: Error: Wrong parameter found at ‘^’ position, can not follow the next step.
[Quidway-Ethernet0/0/1]port link-type access
[Quidway-Ethernet0/0/1]quit
[Quidway] VLAN 10
[Quidway-vlan10] port Ethernet 0/0/1
[Quidway-vlan10] quit
[Quidway] interface vlanif 10
[Quidway-Vlanif10] IP address 1.1.1.1 24
[Quidway-Vlanif10] quit
[Quidway]

More blog:
Huawei Low-end Switches Boot Upgrade For BOOTROM
Huawei Low-end Switches Upgrade The APP System
Cisco-Router-IOS Configuration Backup And Recovery
Optical attenuation is too large lead to ONU recovery failure