Set ip interface – Allied Telesis AT-S63 User Manual
Page 403

AT-S63 Stack Command Line User’s Guide
Section VII: Internet Protocol Routing
403
SET IP INTERFACE
Syntax
set ip interface=
interface
|eth0
[ipaddress=
ipaddress
|dhcp|bootp] [mask|netmask=
subnetmask
]
[ripmetric=
value
]
Parameters
interface
Specifies the name of the routing interface to be
modified. An interface name consists of “VLAN”
followed by the name or ID (VID) of the VLAN and the
interface number (e.g., vlan-Sales-0 or vlan4-0). The
“eth0” value can be used in place of the interface
name to specify the local interface.
ipaddress
Specifies a new IP address for the interface.
mask or
Specifies a new subnet mask for the interface. Do
netmask
not specify a mask if the IP address is assigned by a
DHCP or BOOTP server. To change the subnet
mask, you must also include the IP address of the
interface. The default value is based on the address’
network type. The default values are:
Class A address - 255.0.0.0
Class B address - 255.255.0.0
Class C address - 255.255.255.0
Note
In version 2.0.0 the routing table supported only these three values
for subnet masks. In all later versions, subnet masks can be of
variable lengths so long as the “1” bits are consecutive (e.g.,128,
192, 224, etc.).
ripmetric
Specifies the new cost of crossing the interface for
RIP. The range is 1 to 16. The default is 1.
Description
This command modifies the IP address, subnet mask and RIP metric
attribute of an existing routing interface. To initially create an interface,
refer to “ADD IP INTERFACE” on page 392. To view the interfaces, refer
to “SHOW IP INTERFACE” on page 412