Use the sys_service_configuration command to do the following:
- Bind a service to a particular port
- Reset and associate the service back to a default port
- Bind a service to a particular IP address
- Allow all IP addresses to access a service
Usage: sys_service_configuration [-h] [-l] [-s] [-V] [-S [SERVICE]] [-p [PORT]] [-i [IPV4]] [-d] [-v] [-t]To bind a service to a particular port and IP address execute the following steps:
- Execute the sys_service_configuration command with -l (list) option, to list out the available service names, assigned ports or default ports and the associated IPv4 binding.
# sys_service_configuration -l
- Bind the identified service listed in the preceding step to a particular port / IP address as follows:
# sys_service_configuration -s -S SSHD -p 22 -i 192.168.1.33
- Verify if the service did bind to the specified port / IP address by executing step 1 again.
- If you configure the same service multiple times on the command line, the sys_service_configuration command accepts only the last full set, as depicted in the following figure:
- If you enter duplicate values for parameters on the command line, the sys_service_configuration does not update a service configuration as depicted in the following figure: