Product data
252 IBM Systems Director Management Console: Introduction and Overview
9.2.2 Configuring network settings using the SDMC CLI
You can also view and change network settings using the SDMC CLI.
Viewing network settings
To view the network settings, use the lsnetcfg command. For example, to view
all network settings, except the firewall settings, run the following command:
lsnetcfg -n
To view all the firewall settings, run the following command:
lsnetcfg -f
For further options, refer to the man page for lsnetcfg.
Changing network settings
To change network settings, you have to use the chnetcfg command. Using the
chnetcfg command, you can add, modify, or remove entries, and you can enable
and disable network services.
For example, to set the IP address and netmask for the network interface eth1,
run the following example command:
chnetcfg -s modify -i eth1 -a 10.0.0.1 --netmask 255.255.255.0
To add DNS settings, run the following example command:
chnetcfg -s add -ns 172.16.20.1 -ds itso.ibm.com
To enable the Network Time Protocol (NTP), run the following example
command:
chnetcfg -c xntp -s enable
For further examples and options, refer to the man page for chnetcfg.
Note: The lsnetcfg command has to be used without the smcli prefix.
Note: The chnetcfg command has to be used without the smcli prefix.