beautypg.com

Ip address – Allied Telesis AT-S100 User Manual

Page 171

background image

AT-S100 Management Software User’s Guide

Section I: Command Modes

171

IP ADDRESS

Syntax

ip address A.B.C.D/M label LABEL secondary

Parameters

A.B.C.D/M

Specifies the IP address of the interface followed by a
slash and a subnet mask.

LABEL

Specifies the label, or name, of the IP address.

secondary

Indicates that this IP address is a secondary IP
address.

Description

Use the IP ADDRESS command to assign an IP address to a VLAN
interface and label the address. In addition, this command assigns the IP
address as either a primary or a secondary IP address for the specified
interface.

You must configure the primary IP address before the secondary IP
address. Also, the secondary IP address cannot be the same address as
the primary IP address.

You must assign an IP address to a VLAN in the Interface Command
Mode. You may assign the IP address to the default VLAN which is VLAN
1 or to a VLAN that you have created. For information about how to create
a VLAN, see “Creating VLANs” on page 40.

Command Mode

Interface Configuration mode

Examples

The following commands set VLAN 1 with the primary IP address of
10.0.0.1 and a subnet mask of 255.255.255.255.0 (24 bits) and labels the
IP address as “englab5.”

switch#configure terminal

switch(config)#interface vlan1

switch(config-if)#ip address 10.0.0.1/8 label englab5