Command usage
26
Models 2211 & 2232 Getting Started Guide
2 • Getting started
'set' Command
With
set
command, users can configure parameter values of the device server for each environment. Basic
set
command usage is as follows:
set group par1 [par2 ...] + <CR>
where,
group = 'ip','host','serial' or 'admin'
par1 par2 ... = configuration parameters. Use * to keep a parameter's value
The 'group' is the category where the parameters should be entered. For example, if users want to set parame-
ters related to the IP configuration, use
set
command as shown in the following example.
> set ip static 192.168.1.100 255.255.255.0 192.168.1.1
OK
>
In the above example, the first parameter 'ip' indicates that the following parameters are IP configuration
parameters. The second parameter 'static' indicates that the device server will use static IP address of the third
parameter '192.168.1.100'. The fifth parameter indicates the subnet mask and the next indicates the default
gateway IP address.
If users want to change only one of the parameters of the group, users can omit trailing parameters and/or can
use '*' to keep a parameter value. The example below shows how to change subnet mask only without changing
IP address and gateway IP address.
> set ip static * 255.255.0.0
OK
>
Command usage of
set
will differ depending on the groups. Each
set
command usage of the group can be
found using
help group
command. For example, if users want to know how to use
set
command to configure
IP configuration, typing 'help ip' + <CR> will show 'set' command usage for the IP configuration as
shown below.
> help ip
set ip ipmode par1 par2 ...
- ipmode: static=Static IP / dhcp=DHCP / pppoe=PPPoE
- parameters:
if ipmode = static,
par1 = IP address,
par2 = subnet mask,
par3 = gateway
if ipmode = dhcp,
no parameters required
if ipmode = pppoe,
par1 = PPPoE username,
par2 = PPPoE password
>
Note
The changed values will not take effect until
save
and
reboot
commands are
invoked. For more details, refer to section
“'save' Command”
on page 29
and section
“'reboot' Command”
on page 29.