Set ip interface – Allied Telesis AT-S63 User Manual

Page 590

Advertising
background image

Chapter 32: Internet Protocol Version 4 Packet Routing

590

Section VII: Internet Protocol Routing

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 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 specify the local interface. For background
information, refer to “Interface Names” on page 552.

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 version 2.1.0, the switch 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 573. To view the interfaces, refer
to “SHOW IP INTERFACE” on page 601

Advertising