2 command examples – ZyXEL Communications ZyXEL Dimension ES-2024PWR User Manual
Page 192

Chapter 52 Remote Management Commands
Ethernet Switch CLI Reference Guide
192
52.2 Command Examples
This example allows computers in subnet 172.16.37.0/24 to access the Switch through any
service except SNMP, allows the computer at 192.168.10.1 to access the Switch only through
SNMP, and prevents other computers from accessing the Switch at all.
This example disables all SNMP and ICMP access to the
Switch
.
service-control http <socket-
number> <timeout>
Allows HTTP access on the specified service port and defines
the timeout period (in minutes).
timeout: 1-255
C
13
no service-control http
Disables HTTPS access to the Switch.
C
13
service-control https <socket-
number>
Allows HTTPS access on the specified service port.
C
13
no service-control https
Disables HTTPS access to the Switch.
C
13
service-control icmp
Allows ICMP management packets.
C
13
no service-control icmp
Disables ICMP access to the Switch.
C
13
service-control snmp
Allows SNMP management.
C
13
no service-control snmp
Disables SNMP access to the Switch.
C
13
service-control ssh <socket-
number>
Allows SSH access on the specified service port.
C
13
no service-control ssh
Disables SSH access to the Switch.
C
13
service-control telnet <socket-
number>
Allows Telnet access on the specified service port.
C
13
no service-control telnet
Disables Telnet access to the Switch.
C
13
Table 111 service-control Command Summary (continued)
COMMAND
DESCRIPTION
M
P
sysname# configure
sysname(config)# remote-management 1 start-addr 172.16.37.0 end-addr
--> 172.16.37.255 service telnet ftp http icmp ssh https
sysname(config)# remote-management 2 start-addr 192.168.10.1 end-addr
--> 192.168.10.1 service snmp
sysname(config)# exit
sysname# configure
sysname(config)# no service-control snmp
sysname(config)# no service-control icmp
sysname(config)# exit