Add ip interface – Allied Telesis AT-S63 User Manual

Page 558

Advertising
background image

Chapter 33: Internet Protocol Version 4 Packet Routing Commands

558

Section VII: Internet Protocol Routing

ADD IP INTERFACE

Syntax

add ip interface=

interface

ipaddress=

ipaddress

|dhcp|bootp

[mask|netmask=

subnetmask

]

[ripmetric=

value

]

Parameters

interface

Specifies a name for the new routing interface. 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 range of
the interface number is 0 to 15.

ipaddress

Specifies an IP address for the interface. The
address must be a unique member of the subnet or
network where the interface is to be assigned.

You can assign an address manually or activate the
DHCP or BOOTP client and have a DHCP or BOOTP
server on the network assign the address
automatically. When there is more than one interface
in a VLAN, only one of the interfaces can obtain its IP
address from a DHCP or BOOTP server. The IP
addresses of the other interfaces in the same VLAN
must be assigned manually.

mask or

Specifies the subnet mask of the IP address of the

netmask

routing interface. Do not specify a mask if the IP

address will be assigned by a DHCP or BOOTP
server. 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, provided that the “1” bits are consecutive (e.g.,128,
192, 224, etc.).

ripmetric

Specifies the cost of crossing the interface for RIP.
The range is 1 to 16. The default is 1.

Advertising