Set ip interface – Allied Telesis AT-S63 User Manual
Page 288
Chapter 18: Routing Interface Commands
288
Section V: Internet Protocol Routing
SET IP INTERFACE
Syntax
set ip interface=
interface
|eth0
[ipaddress=
ipaddress
|dhcp|bootp] [mask|netmask=
subnetmask
]
Parameters
interface
Specifies the name of the routing interface to be
modified. An interface name consists of “VLAN”
followed by the ID (VID) or name of the VLAN and an
interface number, separated by a dash (e.g., vlan4-0).
The “eth0” value can be used in place of the interface
name to identify 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
The stack supports masks of variable length, provided 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 280. To view the interfaces, refer
to “SHOW IP INTERFACE” on page 295