Page 326 / 998 Scroll up to view Page 321 - 325
IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-24
4.1.8.2.20 IP INTERFACE ADD SECONDARYIPADDRESS
Syntax
IP INTERFACE {<name>|<number>} ADD SECONDARYIPADDRESS <ipaddress>
[<netmask>]
Description
This command adds a secondary IP address to an existing IP interface. A secondary
address may be used to create an extra IP address on an interface for management pur-
poses, or to allow the IP stack to route between two subnets on the same interface.
The functionality of secondary IP addresses depends on several parameters including the
type of IP interface and the netmask:
If a secondary address is on the same subnet as the primary interface address, you
do not need to specify a subnet mask for that secondary address. This applies to all
interface types.
If a secondary address is on a different subnet to the primary address, and the inter-
face is Ethernet or a transport using a bridged encapsulation, you must specify the
subnet mask. The IP stack will listen on the new address for connections to local
services (e.g., for management purposes), and will also route packets to the new
subnet.
If a secondary address is on a different subnet to the primary address, and the inter-
face is a point-to-point interface, specifying a netmask is optional.
For the same behavior as described for Ethernet interfaces above, the subnet mask
should be specified.
If the subnet mask is not specified, the IP address will not be associated with any
subnet, but will still be recognized as one of the IP stack’s own addresses for local
traffic.
Note:
The ability to specify a subnet mask with a secondary address is still supported, but superseded by the
functionality of virtual interfaces. You should USE VIRTUAL INTERFACES instead; see
IP
ATTACHVIRTUAL
. Support for adding secondary IP addresses including subnet mask specification will be
withdrawn in a future releases.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Option
Description
Default Value
name
An existing IP interface. To display interface names, use the
IP LIST INTERFACES command.
N/A
number
An existing IP interface. To display interface numbers, use
the IP LIST INTERFACES command. The number appears
in the first column under the heading ID.
N/A
Page 327 / 998
TCP/IP command reference
IP
4-25
iMG/RG Software Reference Manual (IPNetwork Functions)
Example
--> ip interface ip1 add secondaryipaddress 192.168.102.3 255.255.255.0
See also
IP LIST INTERFACES
IP INTERFACE LIST SECONDARYIPADDRESSES
4.1.8.2.21 IP INTERFACE ADD STATICARPENTRY
Syntax
IP INTERFACE {<name>|<number>} ADD STATICARPENTRY <ipad-
dress> <macaddr>
Description
This command allows you to add a static ARP entry. This is useful for testing purposes.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example
--> ip interface ip1 add staticarpentry 192.168.1.1 00:20:2b:e0:03:87
See also
ip list interfaces
ip interface list staticarpentries
ipaddress
A secondary IP address that you want to add to the main
IP interface. You can add any number of secondary IP
addresses. The IP address is displayed in the following for-
mat: 192.168.102.3
To display the secondary IP addresses, use the IP INTER-
FACE LIST SECONDARYIPADDRESSES command.
N/A
netmask
The netmask of the secondary IP address displayed in the
following format: 255.255.255.0 To display the secondary
IP addresses, use the IP INTERFACE LIST SECONDARYI-
PADDRESSES command.
none specified
Option
Description
Default Value
name
An existing IP interface. To display interface names, use
the IP LIST INTERFACES command.
N/A
number
An existing IP interface. To display interface numbers,
use the IP LIST INTERFACES command. The number
appears in the first column under the heading ID.
N/A
ipaddress
The IP address/range of addresses of the interface to be
set as a static ARP entry, in the format: 192.168.102.3
N/A
macaddr
A valid MAC address in the format: ##:##:##:##:##:##
N/A
Option
Description
Default Value
Page 328 / 998
IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-26
4.1.8.2.22 IP INTERFACE CLEAR PROXYARPENTRIES
Syntax
IP INTERFACE {<name>|<number>} CLEAR PROXYARPENTRIES
Description
This command clears all proxy ARP entries and exclusions that were created using the IP
INTERFACE ADD PROXYARPENTRY and IP INTERFACE ADD PROXYARPEXCLU-
SION commands.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example
--> ip interface ip1 clear proxyarpentries
See also
IP INTERFACE ADD PROXYARPENTRY
IP INTERFACE ADD PROXYARPEXCLUSION
4.1.8.2.23 IP INTERFACE CLEAR SECONDARYIPADDRESSES
Syntax
IP INTERFACE {<name>|<number>} CLEAR SECONDARYIPADDRESSES
Description
This command deletes all additional IP addresses that have been added to an existing IP
interface using the IP INTERFACE ADD SECONDARYIPADDRESS command.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example
--> ip interface ip1 clear secondaryipaddresses
See also
IP LIST INTERFACES
IP INTERFACE ADD SECONDARYIPADDRESS
Option
Description
Default Value
name
An existing IP interface. To display interface names, use the
IP LIST INTERFACES command.
N/A
number
An existing IP interface. To display interface numbers, use
the IP LIST INTERFACES command. The number appears
in the first column under the heading ID.
N/A
Option
Description
Default Value
name
An existing IP interface. To display interface names, use the
IP LIST INTERFACES command.
N/A
number
An existing IP interface. To display interface numbers, use
the IP LIST INTERFACES command. The number appears
in the first column under the heading ID.
N/A
Page 329 / 998
TCP/IP command reference
IP
4-27
iMG/RG Software Reference Manual (IPNetwork Functions)
IP INTERFACE DELETE SECONDARYIPADDRESS
IP INTERFACE LIST SECONDARYIPADDRESSES
4.1.8.2.24 IP INTERFACE CLEAR STATICARPENTRIES
Syntax
IP INTERFACE {<name>|<number>} CLEAR STATICARPENTRIES
Description
This command clears all static ARP entries that were created using THE IP INTERFACE
ADD STATICARPENTRY command.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example
--> ip interface ip1 clear staticarpentries
See also
ip list interfaces
4.1.8.2.25 IP INTERFACE DELETE PROXYARPENTRIES
Syntax
IP INTERFACE {<name>} DELETE PROXYARPENTRIES <number>
Description
This command deletes a single proxy ARP entries that was created using the IP INTER-
FACE ADD PROXYARPENTRY command.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example
--> ip interface ip1 delete proxyarpentry 1
Option
Description
Default Value
name
An existing IP interface. To display interface names, use the
IP LIST INTERFACES command.
N/A
number
An existing IP interface. To display interface numbers, use
the IP LIST INTERFACES command. The number appears
in the first column under the heading ID.
N/A
Option
Description
Default Value
name
An existing IP interface. To display interface names, use the
IP LIST INTERFACES command.
N/A
number
An existing proxy ARP entry. To display proxy ARP entry
numbers, use the IP INTERFACE LIST PROXYARPEN-
TRIES command.
N/A
Page 330 / 998
IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-28
See also
IP INTERFACE ADD PROXYARPENTRY
IP INTERFACE LIST PROXYARPENTRIES
4.1.8.2.26 IP INTERFACE DELETE PROXYARPEXCLUSION
Syntax
IP INTERFACE {<name>} DELETE PROXYARPEXCLUSION <number>
Description
This command deletes a single proxy ARP exclusion entry that was created using the IP
INTERFACE ADD PROXYARPEXCLUSION command.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Example
--> ip interface ip1 delete proxyarpexclusion 2
See also
IP INTERFACE ADD PROXYARPEXCLUSION
IP INTERFACE LIST PROXYARPENTRIES
4.1.8.2.27 IP INTERFACE DELETE SECONDARYIPADDRESSES
Syntax
IP INTERFACE {<name>|<number>} DELETE SECONDARYIPADDRESS
<secondaryipaddress number>
Description
This command deletes a single secondary IP address that has previously been added to
an existing IP interface using the IP INTERFACE ADD SECONDARYIPADDRESS com-
mand.
Options
The following table gives the range of values for each option that can be specified with
this command and a Default Value (if applicable).
Option
Description
Default Value
name
An existing IP interface. To display interface names, use the
IP LIST INTERFACES command.
N/A
number
An existing proxy ARP exclusion entry. To display proxy
ARP exclusion numbers, use the IP INTERFACE LIST
PROXYARPENTRIES command.
N/A
Option
Description
Default Value
name
An existing IP interface. To display interface names, use the
IP LIST INTERFACES command.
N/A
number
An existing IP interface. To display interface numbers, use
THE IP LIST INTERFACES command. The number appears
in the first column under the heading ID.
N/A

Rate

4 / 5 based on 3 votes.

Popular Allied-Telesis Models

Bookmark Our Site

Press Ctrl + D to add this site to your favorites!

Share
Top