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:

  1. 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
  2. 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
  3. Verify if the service did bind to the specified port / IP address by executing step 1 again.

The following figure depicts the preceding three steps:

Figure 1. Binding a service to a particular port / IP address




Note:
  1. 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:

    Figure 2. Configuring same service multiple times




  2. If you enter duplicate values for parameters on the command line, the sys_service_configuration command causes a warning as depicted in the following figure:

    Figure 3. Configuring with duplicate parameter values