The following commands are specific to the routing IP rip context within the Netsh environment.

Add commands

Delete commands

Set commands

Show commands

Netsh commands for routing IP RIP

The following entries provide details for each command.

dump

Displays the Routing Information Protocol (RIP) configuration of a remote access server in script form.

Syntax

dump

Remarks

  • You can dump the contents of the current configuration to a file that can be used to restore altered configuration settings.

Example

The following command saves the current configuration as a script in the routingiprip.dmp file.

dump > routingiprip.dmp

add peerfilter

Adds a filter for servers that can be accepted as peers.

Syntax

add peerfilter

[server=] IPAddress

Parameters

[server=] IPAddress


Required. Specifies, by IP address, the peer server whose traffic you want to filter.

Example

To add a server with IP 10.0.0.2 to the list of RIP routers from which announcements will be processed, type:

add peerfilter server=10.0.0.2

add acceptfilter

Adds an acceptance filter for routes received on an interface.

Syntax

add acceptfilter

[name=] InterfaceName

[addr=] IPAddress1IPAddress2

Parameters

[name=] InterfaceName


Required. Specifies, by name, an interface where RIP is available for use. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[addr=] IPAddress1IPAddress2


Required. Specifies an IP address pairing. The first address is for the low IP address; the second address is for the high IP address, which will be used to build the filter.

Example

To add an acceptance filter for an interface named Local Area Connection for an IP range of 10.0.0.2 to 11.1.1.2, type:

add acceptfilter name="Local Area Connection" 10.0.0.2 11.1.1.2

add announcefilter

Adds a filter for routes announced on an interface.

Syntax

add announcefilter

[name=] InterfaceName

[addr=] IPAddress1IPAddress2

Parameters

[name=] InterfaceName


Required. Specifies the name of an interface where RIP is available for use. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[addr=] IPAddress1IPAddress2


Required. Specifies an IP address pairing. The first address is for the low IP address; the second address is for the high IP address, which will be used to build the filter.

Example

To add a filter for routes announced on an interface named Local Area Connection for a range of IP addresses from 10.0.0.2 to 11.1.1.2, type:

add announcefilter name="Local Area Connection" 10.0.0.2 11.1.1.2

add neighbor

Adds a RIP neighbor on an interface.

Syntax

add neighbor

[name=] InterfaceName

[addr=] IPAddress

Parameters

[name=] InterfaceName


Required. Specifies, by name, an interface where RIP is available for use. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[addr=] IPAddress


Required. Specifies the IP address of the RIP neighbor you want to add.

Example

To add a RIP neighbor located at an IP address of 10.0.0.2 for an interface named Local Area Connection, type:

add neighbor "Local Area Connection" 10.0.0.2

add interface

Adds RIP to a specified interface.

Syntax

add interface

[name=] InterfaceName

[[metric=] Integer]

[[updatemode=] {demand | periodic}]

[[announce=] {none | rip1 | rip1compat | rip2}]

[[accept=] {none | rip1 | rip1compat | rip2}]

[[expire=] Integer] [[remove=] Integer]

[[update=] Integer]

[[authmode=] {authnone | authsimplepassword}]

[[tag=] Integer]

[[unicast=] {also | only | disable}]

[[accfiltmode=] {include | exclude | disable}]

[[annfiltmode=] {include | exclude | disable}]

[[password=] Password]

Parameters

[name=] InterfaceName


Required. Specifies, by name, the interface on which to add RIP. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[[metric=] Integer]


Specifies a metric value for routes based on this interface.
[[updatemode=] {demand | periodic}]


Specifies when updates will occur. The demand parameter specifies that updates should occur on demand. The periodic parameter specifies that updates should occur at regular intervals.
[[announce=] {none | rip1| rip1compat | rip2}]


Specifies which routes should be announced. The none parameter specifies that all routes should be announced. The rip1 parameter specifies that only RIP version 1 routes should be announced. The rip1compat parameter specifies that announcements should be made in RIP version-compatible mode. The rip2 parameter specifies that only RIP version 2 routes should be announced.
[[accept=] {none | rip1 | rip1compat | rip2}]


Specifies which routes should be accepted. The none parameter specifies that all routes should be accepted. The rip1 parameter specifies that only RIP version 1 routes should be accepted. The rip1compat parameter specifies that routes should be accepted in RIP version-compatible mode. The rip2 parameter specifies that only RIP version 2 routes should be accepted.
[[expire=] Integer]


Specifies, in seconds, the route expiration interval.
[[remove=] Integer]


Specifies, in seconds, the route removal interval.
[[update=] Integer]


Specifies, in seconds, the full update interval.
[[authMode=] {authnone | authsimplepassword}]


Specifies whether authorization should be required. The authnone parameter specifies that no authorization should be required. The authsimplepassword parameter specifies that password authorization should be required.
[[tag=] Integer


Specifies the route tag.
[[unicast=] {also | only | disable}]


Specifies the unicast mode. The also parameter specifies use also unicast mode. The only parameter specifies use only unicast mode. The disable parameter specifies that unicast mode should be disabled.
[[accfiltmode=] {include | exclude | disable}]


Specifies whether acceptance filters should be included or disabled. The include parameter specifies that acceptance filters should be included. The exclude parameter specifies that acceptance filters should not be included. The disable parameter specifies that acceptance filters should be disabled.
[[annfiltmode=] {include | exclude | disable}]


Specifies whether announcement filters should be included or disabled. The include parameter specifies that announcement filters should be included. The exclude parameter specifies that announcement filters should not be included. The disable parameter specifies that announcement filters should be disabled.
[[password=] Password]


Specifies a plaintext password no longer than 16 characters.

Example

To enable and configure RIP on the interface named Local Area Connection using RIP configuration default settings, type:

add interface "Local Area Connection"

delete peerfilter

Deletes a filter for an accepted peer server.

Syntax

delete peerfilter

[server=] IPAddress

Parameters

[server=] IPAddress


Required. Specifies, by IP address, the peer server whose traffic you do not want to filter.

Example

To remove a server with IP 10.0.0.2 from the list of RIP routers from which announcements will be processed, type:

delete peerfilter server=10.0.0.2

delete acceptfilter

Deletes an acceptance filter for routes received on a specified interface.

Syntax

delete acceptfilter

[name=] InterfaceName

[addr=] IPAddress1IPAddress2

Parameters

[name=] InterfaceName


Required. Specifies, by name, an interface where RIP is available for use. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[addr=] IPAddress1IPAddress2


Required. Specifies an IP address pairing. The first address is for the low IP address; the second address is for the high IP address, which will be used to build the filter.

Example

To delete an acceptance filter for the IP ranges of 10.0.0.2 to 11.1.1.2 on an interface named Local Area Connection, type:

delete acceptfilter "Local Area Connection" 10.0.0.2 11.1.1.2

delete announcefilter

Deletes an announcement filter set for an interface.

Syntax

delete announcefilter

[name=] InterfaceName

[addr=] IPAddress1IPAddress2

Parameters

[name=] InterfaceName


Required. Specifies the name of an interface where RIP is available for use. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[addr=] IPAddress1IPAddress2


Required. Specifies an IP address pairing. The first address specifies the low IP address; the second address specifies the high IP address, which will be used to build the filter.

Example

To delete an announcement filter for the IP range 10.0.0.2 to 11.1.1.2 for an interface named Local Area Connection, type:

delete announcefilter "Local Area Connection" 10.0.0.2 11.1.1.2

delete neighbor

Deletes a RIP neighbor from an interface.

Syntax

delete neighbor

[name=] InterfaceNameIPAddress

Parameters

[name=] InterfaceName


Required. Specifies, by name, an interface where RIP is available for use. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
IPAddress


Required. Specifies, by IP address, the RIP neighbor to delete.

Example

To delete a RIP neighbor located at 10.0.0.2 for an interface named Local Area Connection, type:

delete neighbor name="Local Area Connection" 10.0.0.2

delete interface

Removes RIP from the specified interface.

Syntax

delete interface

[name=] InterfaceName

Parameters

[name=] InterfaceName


Required. Specifies, by name, an interface from which you want to remove RIP. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").

Example

To remove RIP from the interface named Local Area Connection, type:

delete interface "Local Area Connection"

set interface

Configures RIP on a specified interface.

Syntax

set interface

[name=] InterfaceName

[[metric=] Integer]

[[updatemode=] {demand | periodic}]

[[announce=] {none | rip1 | rip1compat | rip2}]

[[accept=] {none | rip1 | rip1compat | rip2}]

[[expire=] Integer]

[[remove=] Integer]

[[update=] Integer]

[[authmode=] {authnone | authsimplepassword}]

[[tag=] Integer] [[unicast=] {also | only | disable}]

[[accfiltmode=] {include | exclude | disable}]

[[annfiltmode=] {include | exclude | disable}]

[[password=] Password]

Parameters

[name=] InterfaceName


Required. Specifies, by name, the interface on which to configure RIP. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[[metric=] Integer]


Specifies a metric value for routes based on this interface.
[[updatemode=] {demand | periodic}]


Specifies when updates should occur. The demand parameter specifies that updates should occur on demand. The periodic parameter specifies that updates should occur at regular intervals.
[[announce=] { none | rip1 | rip1compat | rip2}]


Specifies which routes should be announced. The none parameter specifies that all routes should be announced. The rip1 parameter specifies that only RIP version 1 routes should be announced. The rip1compat parameter specifies that announcements should be made in RIP version-compatible mode. The rip2 parameter specifies that only RIP version 2 routes should be announced.
[[accept=] {none | rip1 | rip1compat| rip2}]


Specifies which routes should be accepted. The none parameter specifies that all routes should be accepted. The rip1 parameter specifies that only RIP version 1 routes should be accepted. The rip1compat parameter specifies that acceptance should occur by using the RIP version-compatible mode. The rip2 parameter specifies that only RIP version 2 routes should be accepted.
[[expire=] Integer]


Specifies, in seconds, how much time should elapse before the route expires.
[[remove=] Integer]


Specifies, in seconds, how much time should elapse before the route is removed.
[[update=] Integer]


Specifies, in seconds, how often full updates occur.
[[authmode=] {authnone | authsimplepassword}]


Specifies whether authorization should be required. The authnone parameter specifies that no authorization should be required. The authsimplepassword parameter specifies that password authorization should be required.
[[tag=] Integer]


Specifies the route tag.
[[unicast=] {also | only | disable}]


Specifies the unicast mode. The also parameter specifies use also unicast mode. The only parameter specifies use only unicast mode. The disable parameter specifies that unicast mode should be disabled.
[[accfiltmode=] {include | exclude | disable}]


Specifies whether acceptance filters should be included. The include parameter specifies that acceptance filters should be included. The exclude parameter specifies that acceptance filters should not be included. The disable parameter specifies that acceptance filters should be disabled.
[[annfiltmode=] {include | exclude | disable}]


Specifies whether announcement filters should be included or disabled. The include parameter specifies that announcement filters should be included. The exclude parameter specifies that announcement filters should not be included. The disable parameter specifies that announcement filters should be disabled.
[[password=] String]


Specifies a plaintext password no longer than 16 characters long.

Example

To modify the RIP configuration on the interface named Local Area Connection, specifying a metric value of 2 and that updates should occur on demand, type:

set interface name="Local Area Connection" metric=2 updatemode=periodic

set flags

Sets RIP-related flags for a specified interface.

Syntax

set flags

[name=] InterfaceName

[flag=]

[clear]

[splithorizon]

[poisonreverse]

[triggeredupdates]

[cleanupupdates]

[accepthostroutes]

[acceptdefaultroutes]

[senddefaultroutes]

[nosubnetsummary]

Parameters

[name=] InterfaceName


Required. Specifies, by name, the interface on which to set flags. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").
[flag=] [clear] [splithorizon] [poisonreverse] [triggeredupdates] [cleanupupdates] [accepthostroutes] [acceptdefaultroutes] [senddefaultroutes] [nosubnetsummary]


Specifies policies for RIP-related flags. The clear parameter specifies that all set RIP flags should be cleared. The splithorizon parameter specifies that RIP for split horizon should be enabled. The poisonreverse parameter specifies that RIP for poison reverse should be enabled. The triggeredupdates parameter specifies that RIP triggered updates should occur. The cleanupupdates parameter specifies that cleanup updates for RIP should occur. The accepthostroutes parameter specifies that host routes should be accepted. The acceptdefaultroutes parameter specifies that default routes should be accepted. The senddefaultroutes parameter specifies that default routes should be sent. The nosubnetsummary parameter specifies that subnet summarization should not occur.

Remarks

  • Multiple flag values can be specified in a comma separated list.

Example

To set RIP-related flags for an interface named Local Area Connection, type:

set flags name="Local Area Connection" splithorizon,accepthostroutes

set global

Sets global RIP parameters.

Syntax

set global

{[[loglevel=] {none | error | warn | info}] | [[mintrig=] Integer] | [[peermode=] {include | exclude | disable}]}

Parameters

{[[loglevel=] {none | error | warn | info}]


Specifies which RIP events should be logged. The none parameter specifies that no RIP events should be logged. The error parameter specifies that only errors related to RIP should be logged. The warn parameter specifies that only warnings related to RIP should be logged. The info parameter specifies that all events related to RIP should be logged.
[[mintrig=] Integer]


Specifies, in minutes, the minimum amount of time that should elapse between triggers.
[[peermode=] { include | exclude | disable}]}


Specifies whether peers should be included and whether peer mode should be disabled. The include parameter specifies that peers should be included. The exclude parameter specifies that peers should not be included. The disable parameter specifies that peer mode should be disabled.

Example

To configure global RIP parameters to specify no RIP event logging, 10 minutes between triggers, and with peer mode disabled, type:

set global none 10 disable

show interface

Shows RIP configuration for the specified interface. Used without parameters, show interface displays configuration information for all interfaces.

Syntax

show interface

[[name=] InterfaceName]

Parameters

[[name=] InterfaceName]


Specifies, by name, the interface whose information you want to display. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").

show flags

Displays RIP flags set for a specified interface. Used without parameters, show flags displays information for all interfaces.

Syntax

show flags

[[name=] InterfaceName]

Parameters

[[name=] InterfaceName]


Specifies, by name, the interface for which you want to display information. The InterfaceName parameter must match the name of the interface as specified in Network Connections. If InterfaceName contains spaces, use quotation marks around the text (for example, "Interface Name").

show global

Shows RIP global parameters.

Syntax

show global

show ifstats

Displays RIP statistics for a specified interface. Used without parameters, show ifstats displays information once for all interfaces.

Syntax

show ifstats

[[index=] Integer]

[[rr=] Integer]

Parameters

[[index=] Integer]


Specifies, by index number, the interface for which you want to display information.
[[rr=] Integer]


Specifies, in seconds, how often you want the information to be refreshed.

Remarks

  • To list the index value for each interface, use the show interface command in the Netsh Interface IP context.

Example

To display RIP statistics every 5 seconds for an interface with an index value of 1, type:

show ifstats index=1 rr=5

show ifbinding

Displays RIP interface IP address binding. Used without parameters, show ifbinding displays information once for all interfaces.

Syntax

show ifbinding

[[index=] Integer]

[[rr=] Integer]

Parameters

[[index=] Integer]


Specifies, by index number, the interface for which you want to display information.
[[rr=] Integer]


Specifies, in seconds, how often you want the information to be refreshed.

Remarks

  • To list the index value for each interface, use the show interface command in the Netsh Interface IP context.

Example

To display the bindings every 5 seconds for an interface with an index value of 1, type:

show ifbinding index=1 rr=5

show globalstats

Displays RIP global statistics.

Syntax

show globalstats

[[rr=] Integer]

Parameters

[[rr=] Integer]


Specifies, in seconds, how often you want the information to be refreshed.

Example

To display RIP global statistics which refreshes at the rate of every 5 seconds, type:

show globalstats rr=5

show neighbor

Displays RIP peer statistics.

Syntax

show neighbor

[[index=] Integer]

[[rr=] Integer]

Parameters

[[index=] Integer]


Specifies, by index number, the interface for which you want to display information.
[[rr=] Integer]


Specifies, in seconds, how often you want the information to be refreshed.

Example

To display the bindings for IP address 10.0.0.1 at a refresh rate of every 5 seconds, type:

show neighbor index=10.0.0.1 rr=5