beautypg.com

Set ip – Allied Telesis AT-S39 User Manual

Page 28

background image

Chapter 3: Basic Switch Commands

28

SET IP

Syntax

set ip interface=1 ipaddress=IPaddress|DHCP
netmask=subnetmask

Parameters

interface

Specifies the interface number. This value is always

“1”.

ipaddress

Specifies an IP address for the switch or activates

DHCP and BOOTP. For background information on
when to assign a switch an IP address, refer to the
AT-S39 User’s Guide.

netmask

Specifies the subnet mask for the switch. You must

specify a subnet mask if you manually assigned the
switch an IP address.

Description

This command configures the following switch parameters:

❑ IP address

❑ Subnet mask

This command can also be used to activate DHCP and BOOTP on the
switch. Activating DHCP and BOOTP with this command is equivalent to
using the ENABLE DHCPBOOTP command. (You cannot deactivate DHCP
and BOOTP with the SET IP command. That is accomplished with the
DISABLE DHCPBOOTP command.)

Note

You cannot assign an IP address to the switch if DHCP and BOOTP
are activated. They must first be deactivated before an address can
be assigned.

To return the IP address and subnet mask to the default values, refer to
the PURGE IP command.