Page 351 / 998 Scroll up to view Page 346 - 350
TCP/IP command reference
IP
4-49
iMG/RG Software Reference Manual (IPNetwork Functions)
See also
IP SET RIP AUTHENTICATION
IP SHOW
4.1.8.2.55 IP SET RIP POISON
Syntax
IP SET RIP POISON {ENABLED | DISABLED}
Description
Enables or disables the poisoned reverse flag. If this flag is on, TCP/IP performs poisoned
reverse as defined in RFC 1058; see that RFC for discussion.
To display the current state of the poisoned reverse flag, use the IP SHOW 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 set rip poison enabled
See also
IP SET INTERFACE RIP ACCEPT
IP SET INTERFACE RIP SEND
IP SET RIP HOSTROUTES
IP SHOW
4.1.8.2.56 IP SET ROUTE
Syntax
IP SET ROUTE {<name>|<number>} <ENABLED|DISABLED>
Description
This command enables/disables an existing static route (including a default route).
If the route being operated on by this command is a default route then the command also
might have the effect of making the device not reachable
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).
Option
Description
Default Value
enabled
Sets the poisoned reverse flag to on.
TCP/IP performs
poisoned reverse as defined in RFC 1058.
Disabled
disabled
Sets the poisoned reverse flag to off.
Option
Description
Default Value
enabled
Enables a static route.
Disabled
Page 352 / 998
IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-50
Example
--> ip set route myroute enabled
See also
ip list routes, ip add route, ip show route
4.1.8.2.57 IP SET ROUTE ADVERTISE
Syntax
IP SET ROUTE {<name>|<number>} ADVERTISE <ENABLED|DISABLED>
Description
This command enables/disables the advertising of an existing static route (including a
default route) via RIP. The cost advertised with this route is the cost specified by the IP
SET ROUTE COST command.
If the route being operated on by this command is a default route then the setting of the
IP SET RIP ADVERTISEDEFAULT command also has an effect:
If the IP SET RIP ADVERTISEDEFAULT command is enabled, then it controls the
advertising of the route and uses the cost set by the IP SET DEFAULTROUTECOST
command.
If the IP SET RIP ADVERTISEDEFAULT command is disabled, then the IP SET
ROUTE ADVERTISE command controls the advertising of the route and uses the
cost set by the IP SET ROUTE COST command as described above.
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 route myroute advertise enabled
See also
IP SET ROUTE COST
IP LIST ROUTES
IP SET RIP ADVERTISEDEFAULT
IP SET RIP DEFAULTROUTECOST
4.1.8.2.58 IP SET ROUTE DESTINATION
Syntax
IP SET ROUTE {<name>|<number>} DESTINATION <dest-network> <netmask>
Description
This command sets the destination network address of a route previously created using
the IP ADD ROUTE COMMAND.
disabled
Disables a static route.
Option
Description
Default Value
enabled
Enables RIP to advertise a static route.
Disabled
disabled
Disables advertisement of a static route.
Option
Description
Default Value
Page 353 / 998
TCP/IP command reference
IP
4-51
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 route route1 destination 192.168.103.3 255.255.255.0
See also
IP SET ROUTE GATEWAY
IP SET ROUTE COST
IP LIST ROUTES
4.1.8.2.59 IP SET ROUTE GATEWAY
Syntax
IP SET ROUTE {<name>|<number>} GATEWAY <gateway>
Description
This command sets the gateway address of a route previously created using the IP ADD
ROUTE command. If you want the route to go directly to its destination and not via a
gateway, specify 0.0.0.0 as the gateway.
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 route. To display route names, use the IP
LIST ROUTES command.
N/A
number
An existing route. To display route numbers, use the IP
LIST ROUTES command. The number appears in the
first column under the heading ID.
N/A
dest-network
The IP address of the destination network in the format:
192.168.102.3
N/A
netmask
The destination netmask address (format:
255.255.255.0)
N/A
Option
Description
Default Value
name
An existing route. To display route names, use the IP
LIST ROUTES command.
N/A
number
An existing route. To display route numbers, use the
IP LIST ROUTES command. The numbers appear in
the first column under the heading ID.
N/A
Page 354 / 998
IP
TCP/IP command reference
iMG/RG Software Reference Manual (IPNetwork Functions)
4-52
Example
--> ip set route route1 gateway 192.168.102.3
See also
IP ADD ROUTE
IP SET ROUTE DESTINATION
IP SET ROUTE COST
IP LIST ROUTES
4.1.8.2.60 IP SET ROUTE COST
Syntax
IP SET ROUTE {<name>|<number>} COST <cost>
Description
This command sets the number of hops counted as the cost of the route for a route pre-
viously created using the IP ADD ROUTE 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 set route route1 cost 3
See also
IP ADD ROUTE
IP LIST ROUTES
IP SET ROUTE ADVERTISE
gateway
The IP address of the gateway that the IP routes
through, displayed in the following format:
192.168.102.3 If you added a route directly to an
interface, the gateway address is set by default to
0.0.0.0 so that no gateway is specified.
N/A
Option
Description
Default Value
name
An existing route. To display route names, use the
IP LIST ROUTES command.
N/A
number
An existing route. To display route numbers, use
the IP LIST ROUTES command. The number
appears in the first column under the heading ID.
N/A
cost
The number of hops counted as the cost of the
route. This may affect the choice of route when the
route is competing with routes acquired from RIP.
(Using a mixture of RIP and static routing is not
advised). The cost value can be any positive integer.
1
Option
Description
Default Value
Page 355 / 998
TCP/IP command reference
IP
4-53
iMG/RG Software Reference Manual (IPNetwork Functions)
4.1.8.2.61 IP SET ROUTE INTERFACE
Syntax
IP SET ROUTE {<name>|<number>} INTERFACE {<interface>|NONE}
Description
This command sets the interface used by a route previously created by the IP ADD
ROUTE command. If you want the existing route to route to an address via a gateway
device, use none so that no interface is set.
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 route r1 interface eth1
See also
IP LIST INTERFACES
IP LIST ROUTES
4.1.8.2.62 IP SET TTL
Syntax
IP SET TTL {<number>}
Description
This command sets the default time-to-live (ttl) value in the IP header of a generated IP
packet. To display the current state of
ttl
, use the
ip show
command.
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).
Option
Description
Default Value
name
An existing route. To display route names, use the IP
LIST ROUTES command.
N/A
number
An existing route. To display route numbers, use the
IP LIST ROUTES command. The number appears in
the first column under the heading ID.
N/A
interface
The name of the existing interface that the IP routes
through, displayed in the following format:
192.168.102.3
To display interface names, use the IP
LIST INTERFACES command.
N/A
none
No interface is set. This is used for routes that route
via a gateway device instead of an interface.
N/A
Option
Description
Default Value
number
A number that specifies the time-to-live (ttl) value
for the IP header of all transmitted packets
128

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