Set ip interface – Allied Telesis AT-S63 User Manual

Page 58

Advertising
background image

Chapter 3: Basic Switch Commands

58

Section I: Basic Operations

SET IP INTERFACE

Syntax

set ip interface=eth0 ipaddress=

ipaddress

|bootp|dhcp

mask|netmask=

subnetmask

Parameters

interface

Specifies the interface number. This value is always

eth0.

ipaddress

Specifies an IP address for the switch or activates the

BOOTP or DHCP client software.

mask or

Specifies the subnet mask for the switch. You must

netmask

specify a subnet mask when you manually assign the

switch an IP address. These parameters are
equivalent. The default is 0.0.0.0.

Description

This command configures the following switch parameters:

ˆ

IP address

ˆ

Subnet mask

This command can also activate the DHCP or BOOTP client software on
the switch. If you are using this command to activate the client software,
note the following:

ˆ

The switch immediately begins to query the network for a BOOTP or
DHCP server after the command is entered. The switch continues to
query the network for its IP configuration until it receives a response.

ˆ

Any static IP address, subnet mask, or gateway address assigned to
the switch is replaced with the value the switch receives from the
BOOTP or DHCP server. If you later disable BOOTP or DCHP, these
values are returned to their default settings.

ˆ

You cannot manually assign an IP address or subnet mask to a switch
when the BOOTP or DHCP client software has been activated.

ˆ

The switch does not support running both the BOOTP client software
and DHCP client software at the same time.

To display the current IP address and subnet mask, refer to “SHOW IP
INTERFACE” on page 74. To re
turn the IP address and subnet mask to
their default values, refer to “PURGE IP” on page 51.

Advertising