Page 341 / 998 Scroll up to view Page 336 - 340
TCP/IP command reference
IP
4-39
iMG/RG Software Reference Manual (IPNetwork Functions)
See also
IP SET INTERFACE MTU
IP SET INTERFACE DHCP
IP LIST INTERFACES
IP SET INTERFACE NETMASK
4.1.8.2.41 IP SET INTERFACE IPADDRESS
Syntax
IP SET INTERFACE {<name>|<number>} IPADDRESS <ipaddress> [<netmask>]
Description
This command sets the IP address for an existing IP interface.
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 set interface ip4 ipaddress 192.168.102.3 255.255.255.0
See also
IP SET INTERFACE MTU
IP SET INTERFACE DHCP
IP LIST INTERFACES
IP SET INTERFACE NETMASK
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
ip address
The IP address of the interface displayed in the following
format: 192.168.102.3. If the IP address is set to the
special value 0.0.0.0, the interface is marked as unconfig-
ured. This value is used when the interface address is
obtained automatically.
For unnumbered interfaces, the
IP address parameter is used to specify the router-id of
the interface. The router-id should be the same as the
IP address of one of the router’s numbered interfaces.
0.0.0.0
netmask
The netmask address of the interface displayed in the
following format: 255.255.255.0.
The special value
255.255.255.255 indicates an unnumbered interface,
that is configured by setting the IP address to the inter-
face’s router-id value, and setting netmask to
255.255.255.255.
If no IP address is
supplied, the natu-
ral mask of the IP
address is used.
Page 342 / 998
IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-40
4.1.8.2.42 IP SET INTERFACE NETMASK
Syntax
IP SET INTERFACE {<name>|<number>} NETMASK <netmask>
Description
This command sets the netmask for an existing IP interface.
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 set interface ip6 netmask 255.255.255.0
See also
IP SET INTERFACE IPADDRESS
IP LIST INTERFACES
4.1.8.2.43 IP SET INTERFACE MTU
Syntax
IP SET INTERFACE {<name>|<number>} MTU <mtu>
Description
This command sets the MTU (
Maximum Transmission Unit
) for an existing IP interface.
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
netmask
The netmask address of the interface in the format:
255.255.255.0 The special value 255.255.255.255 is used
to indicate an unnumbered interface, that is configured
by setting the IP address to the interface’s router-id
value, and setting netmask to 255.255.255.255.
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.
1500
Page 343 / 998
TCP/IP command reference
IP
4-41
iMG/RG Software Reference Manual (IPNetwork Functions)
Example
--> ip set interface ip2 mtu 800
See also
IP SET INTERFACE IPADDRESS
IP SET INTERFACE DHCP
IP LIST INTERFACES
4.1.8.2.44 IP SET INTERFACE DHCP
Syntax
IP SET INTERFACE {<name>|<number>} DHCP {ENABLED|DISABLED}
Description
This command specifies whether a named interface should obtain its configuration via
DHCP.
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 set interface ip2 dhcp enabled
See also
IP SET INTERFACE IPADDRESS
IP SET INTERFACE MTU
IP LIST INTERFACES
mtu
Maximum Transmission Unit
: maximum packet size
(in bytes) an interface can handle. The MTU should be set
to a value appropriate for the transport attached to the
interface (typically from 576 to 1500 bytes). For example,
Ethernet and most other transports support an MTU of
1500 bytes, whereas PPPoE supports an MTU of 1492
bytes.
1500
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
enabled
The interface obtains configuration information from
DHCP client.
Disabled
disabled
The interface does not use DHCP client configura-
tion information.
Option
Description
Default Value
Page 344 / 998
IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-42
Description
For information on setting DHCP client configuration options, see
DHCP Client com-
mand reference
.
4.1.8.2.45 IP SET INTERFACE GATEWAY
Syntax
IP SET INTERFACE {<name>|<number>} GATEWAY {<IP-ADDRESS>}
Description
This command specifies the gateway ip-address associated to
the given interface
Note:
This command is avalable on FIBER B,D,E MODULAR and ADSL B,C models only.
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 set interface ip2 dhcp enabled
See also
IP ADD ROUTE
IP SET INTERFACE MTU
IP LIST INTERFACES
For information on setting DHCP client configuration options, see
DHCP Client command reference
.
4.1.8.2.46 IP SET INTERFACE RIP ACCEPT
Syntax
IP SET INTERFACE {<name>|<number>} RIP ACCEPT {NONE|V1|V2|ALL}
Description
This command specifies whether an existing interface accepts RIP messages. You can
specify what version of RIP messages are accepted by the interface.
When receiving RIP v1 messages, the IP stack tries to use the information it has available
to determine the appropriate subnet mask for the addresses received.
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
ip-address
The gateway ip-address
N/A
Page 345 / 998
TCP/IP command reference
IP
4-43
iMG/RG Software Reference Manual (IPNetwork Functions)
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 set interface ip3 rip accept none
See also
IP SET INTERFACE RIP SEND
IP SET INTERFACE RIP MULTICAST
IP SET RIP HOSTROUTES
IP SET RIP POISON
IP SHOW
IP LIST INTERFACES
4.1.8.2.47 IP SET INTERFACE RIP MULTICAST
Syntax
IP SET INTERFACE {<name>|<number>} RIP MULTICAST {ENABLED | DISABLED}
Description
This command allows you to enable/disable whether RIP version 2 messages are sent via
multicast.
RIP version 2 messages sent via multicast are only received by the hosts on the network
that have a multicast network address. If this command is disabled, RIP version 2 mes-
sages are sent via broadcast and are received by all the hosts on the network.
You need to set RIP to send v2 messages using the IP SET INTERFACE RIP SEND com-
mand in order for the IP SET INTERFACE RIP MULTICAST ENABLED command to send
version 2 messages via multicast.
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 INTERFACE COMMAND. The number appears in
the first column under the heading ID.
N/A
none
The interface does not accept RIP messages.
None
v1
The interface only accepts RIP v. 1 messages (RFC1058)
v2
The interface only accepts RIP v. 2 messages (RFC1723)
all
The interface accepts RIP version 1 (RFC1058) and RIP ver-
sion 2 (RFC1723) messages

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