Netsh Routing IP RIP Context Commands
Updated: June 3, 2009
Applies To: Windows Server 2008, Windows Server 2008 R2
The following commands are specific to the routing IP rip context within the Netsh environment.
Add commands
Delete commands
Set commands
Show commands
The following entries provide details for each command.
Displays the Routing Information Protocol (RIP) configuration of a remote access server in script form.
dump
-
You can dump the contents of the current configuration to a file that can be used to restore altered configuration settings.
The following commands save the current configuration as a script in the c:\test\ripcfg.dmp file.
-
From the command prompt:
netsh routing ip rip dump > c:\test\ripcfg.dmp -
From the netsh routing ip rip context prompt:
set file open c:\test\ripcfg.dmp
dump
set file close
You can use the netsh exec command to run the script created by the netsh dump command.
Adds a filter for routers that are accepted as peers.
add peerfilter
[ server = ] IPAddress
- [ server = ] IPAddress
- Required. Specifies, by IPv4 address, the peer router whose traffic you want to accept.
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
Adds an acceptance filter for routes received on an interface.
add acceptfilter
[ name = ] InterfaceName
[ addr = ] IPAddress1 IPAddress2
- [ 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 = ] IPAddress1 IPAddress2
- Required. Specifies a pair of IPv4 addresses. 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.
To add an acceptance filter for the “Local Area Connection” interface 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
Adds a filter for routes announced on an interface.
add announcefilter
[ name = ] InterfaceName
[ addr = ] IPAddress1 IPAddress2
- [ 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 = ] IPAddress1 IPAddress2
- Required. Specifies a pair of IPv4 addresses. 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.
To add a filter for routes announced on the “Local Area Connection” interface 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
Adds a RIP neighbor on an interface.
add neighbor
[ name = ] InterfaceName
[ addr = ] IPAddress
- [ 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 IPv4 address of the RIP neighbor you want to add.
To add a RIP neighbor located at an IPv4 address of 10.0.0.2 for the “Local Area Connection” interface, type:
add neighbor "Local Area Connection" 10.0.0.2
Adds RIP to a specified interface.
add interface
[ name = ] InterfaceName
[ [ metric = ] Integer ]
[ [ update = ] Integer]
[ [ announce = ] { none | rip1 | rip1compat | rip2 } ]
[ [ accept = ] { none | rip1 | rip1compat | rip2 } ]
[ [ expire = ] Integer ]
[ [ remove = ] Integer ]
[ [ updatemode = ] { demand | periodic } ]
[ [ authmode = ] { authnone | authsimplepassword } ]
[ [ tag = ] Integer ]
[ [ unicast = ] { also | only | disable } ]
[ [ accfiltmode = ] { include | exclude | disable } ]
[ [ annfiltmode = ] { include | exclude | disable } ]
[ [ password = ] Password ]
- [ 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.
- [ update = ] Integer
- Specifies, in seconds, the full update interval.
- [ announce = ] { none | rip1 | rip1compat | rip2 }
-
Specifies which routes should be announced.
- none specifies that all routes should be announced.
- rip1 specifies that only RIP version 1 routes should be announced.
- rip1compat specifies that announcements should be made in RIP version-compatible mode.
- rip2 parameter that only RIP version 2 routes should be announced.
- none specifies that all routes should be announced.
- [ accept = ] { none | rip1 | rip1compat | rip2 }
-
Specifies which routes should be accepted.
- none specifies that all routes should be accepted.
- rip1 specifies that only RIP version 1 routes should be accepted.
- rip1compat specifies that routes should be accepted in RIP version-compatible mode.
- rip2 specifies that only RIP version 2 routes should be accepted.
- none specifies that all routes should be accepted.
- [ expire = ] Integer
- Specifies, in seconds, the route expiration interval.
- [ remove = ] Integer
- Specifies, in seconds, the route removal interval.
- [ updatemode = ] { demand | periodic }
-
Specifies when updates will occur.
- demand specifies that updates should occur on demand.
- periodic specifies that updates should occur at regular intervals.
- demand specifies that updates should occur on demand.
- [ authMode = ] { authnone | authsimplepassword }
-
Specifies whether authorization should be required.
- authnone specifies that no authorization should be required.
- authsimplepassword specifies that password authorization should be required.
- authnone specifies that no authorization should be required.
- [ tag = ] Integer
- Specifies the route tag.
- [ unicast = ] { also | only | disable }
-
Specifies the unicast mode.
- also specifies use also unicast mode.
- only specifies use only unicast mode.
- disable specifies that unicast mode should be disabled.
- also specifies use also unicast mode.
- [ accfiltmode = ] { include | exclude | disable }
-
Specifies whether acceptance filters should be included or disabled.
- include specifies that acceptance filters should be included.
- exclude specifies that acceptance filters should not be included.
- disable specifies that acceptance filters should be disabled.
- include specifies that acceptance filters should be included.
- [ annfiltmode = ] { include | exclude | disable }
-
Specifies whether announcement filters should be included or disabled.
- include specifies that announcement filters should be included.
- exclude specifies that announcement filters should not be included.
- disable specifies that announcement filters should be disabled.
- include specifies that announcement filters should be included.
- [ password = ] Password
- Specifies a plaintext password no longer than 16 characters.
To enable and configure RIP on the interface named Local Area Connection using RIP configuration default settings, type:
add interface "Local Area Connection"
Deletes a filter for an accepted peer server.
delete peerfilter
[ server = ] IPAddress
- [ server = ] IPAddress
- Required. Specifies, by IPv4 address, the peer server whose traffic you do not want to filter.
To remove a server with an IPv4 address of 10.0.0.2 from the list of RIP routers from which announcements will be processed, type:
delete peerfilter server=10.0.0.2
Deletes an acceptance filter for routes received on a specified interface.
delete acceptfilter
[ name = ] InterfaceName
[ addr = ] IPAddress1 IPAddress2
- [ 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 = ] IPAddress1 IPAddress2
- Required. Specifies a pair of IPv4 addresses. The first address is for the low IP address; the second address is for the high IP address.
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
Deletes an announcement filter set for an interface.
delete announcefilter
[ name = ] InterfaceName
[ addr = ] IPAddress1 IPAddress2
- [ 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 = ] IPAddress1 IPAddress2
- Required. Specifies a pair of IPv4 addresses. The first address specifies the low IP address; the second address specifies the high IP address.
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
Deletes a RIP neighbor from an interface.
delete neighbor
[ name = ] InterfaceName
[ addr = ] IPAddress
- [ 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, by IPv4 address, the RIP neighbor to delete.
To delete a RIP neighbor located at 10.0.0.2 for the “Local Area Connection” interface, type:
delete neighbor name="Local Area Connection" 10.0.0.2
Removes RIP from the specified interface.
delete interface
[ name = ] InterfaceName
- [ 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").
To remove RIP from the “Local Area Connection” interface, type:
delete interface "Local Area Connection"
Configures RIP on a specified interface.
set interface
[ name = ] InterfaceName
[ [ metric = ] Integer ]
[ [ update = ] Integer]
[ [ announce = ] { none | rip1 | rip1compat | rip2 } ]
[ [ accept = ] { none | rip1 | rip1compat | rip2 } ]
[ [ expire = ] Integer ]
[ [ remove = ] Integer ]
[ [ updatemode = ] { demand | periodic } ]
[ [ authmode = ] { authnone | authsimplepassword } ]
[ [ tag = ] Integer ]
[ [ unicast = ] { also | only | disable } ]
[ [ accfiltmode = ] { include | exclude | disable } ]
[ [ annfiltmode = ] { include | exclude | disable } ]
[ [ password = ] Password ]
- [ 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.
- [ update = ] Integer
- Specifies, in seconds, the full update interval.
- [ announce = ] { none | rip1 | rip1compat | rip2 }
-
Specifies which routes should be announced.
- none specifies that all routes should be announced.
- rip1 specifies that only RIP version 1 routes should be announced.
- rip1compat specifies that announcements should be made in RIP version-compatible mode.
- rip2 parameter that only RIP version 2 routes should be announced.
- none specifies that all routes should be announced.
- [ accept = ] { none | rip1 | rip1compat | rip2 }
-
Specifies which routes should be accepted.
- none specifies that all routes should be accepted.
- rip1 specifies that only RIP version 1 routes should be accepted.
- rip1compat specifies that routes should be accepted in RIP version-compatible mode.
- rip2 specifies that only RIP version 2 routes should be accepted.
- none specifies that all routes should be accepted.
- [ expire = ] Integer
- Specifies, in seconds, the route expiration interval.
- [ remove = ] Integer
- Specifies, in seconds, the route removal interval.
- [ updatemode = ] { demand | periodic }
-
Specifies when updates will occur.
- demand specifies that updates should occur on demand.
- periodic specifies that updates should occur at regular intervals.
- demand specifies that updates should occur on demand.
- [ authMode = ] { authnone | authsimplepassword }
-
Specifies whether authorization should be required.
- authnone specifies that no authorization should be required.
- authsimplepassword specifies that password authorization should be required.
- authnone specifies that no authorization should be required.
- [ tag = ] Integer
- Specifies the route tag.
- [ unicast = ] { also | only | disable }
-
Specifies the unicast mode.
- also specifies use also unicast mode.
- only specifies use only unicast mode.
- disable specifies that unicast mode should be disabled.
- also specifies use also unicast mode.
- [ accfiltmode = ] { include | exclude | disable }
-
Specifies whether acceptance filters should be included or disabled.
- include specifies that acceptance filters should be included.
- exclude specifies that acceptance filters should not be included.
- disable specifies that acceptance filters should be disabled.
- include specifies that acceptance filters should be included.
- [ annfiltmode = ] { include | exclude | disable }
-
Specifies whether announcement filters should be included or disabled.
- include specifies that announcement filters should be included.
- exclude specifies that announcement filters should not be included.
- disable specifies that announcement filters should be disabled.
- include specifies that announcement filters should be included.
- [ password = ] Password
- Specifies a plaintext password no longer than 16 characters.
To modify the RIP configuration on the “Local Area Connection” interface, specifying a metric value of 2 and that updates should occur on demand, type:
set interface name="Local Area Connection" metric=2 updatemode=periodic
Sets RIP-related flags for a specified interface.
set flags
[ name = ] InterfaceName
[ flag = ]
[ clear ]
[ splithorizon ]
[ poisonreverse ]
[ triggeredupdates ]
[ cleanupupdates ]
[ accepthostroutes ]
[ acceptdefaultroutes ]
[ senddefaultroutes ]
[ nosubnetsummary ]
- [ 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 ] [ sendhostroutes ] [ nosubnetsummary ]
-
Specifies policies for RIP-related flags.
- clear specifies that all set RIP flags should be cleared.
- splithorizon specifies that RIP for split horizon should be enabled.
- poisonreverse specifies that RIP for poison reverse should be enabled.
- triggeredupdates specifies that RIP triggered updates should occur.
- cleanupupdates specifies that cleanup updates for RIP should occur.
- accepthostroutes specifies that host routes should be accepted.
- acceptdefaultroutes specifies that default routes should be accepted.
- senddefaultroutes specifies that default routes should be sent.
- sendhostroutes specifies that host routes should be sent.
- nosubnetsummary specifies that subnet summarization should not occur.
- clear specifies that all set RIP flags should be cleared.
-
Multiple flag values can be specified in a comma separated list.
To set RIP-related flags for the “Local Area Connection” interface, type:
set flags name="Local Area Connection" splithorizon,accepthostroutes
Sets global RIP parameters.
set global
[ [ loglevel = ] { none | error | warn | info } ]
[ [ mintrig = ] Integer ]
[ [ peermode = ] { include | exclude | disable } ]
- [loglevel = ] { none | error | warn | info }
-
Specifies which RIP events should be logged.
- none specifies that no RIP events should be logged.
- error specifies that only errors related to RIP should be logged.
- warn specifies that both errors and warnings related to RIP should be logged.
- info specifies that all events related to RIP should be logged.
- none specifies that no RIP events 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.
- include specifies that peers should be included.
- exclude specifies that peers should not be included.
- disable specifies that peer mode should be disabled.
- include specifies that peers should be included.
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
Shows RIP configuration for the specified interface. Used without parameters, show interface displays configuration information for all interfaces.
show interface
[ [ name = ] InterfaceName ]
- [ [ 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").
Displays RIP flags set for a specified interface. Used without parameters, show flags displays information for all interfaces.
show flags
[ [ name = ] InterfaceName ]
- [ [ 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").
Shows RIP global parameters.
show global
Displays RIP statistics for a specified interface. Used without parameters, show ifstats displays information once for all interfaces.
show ifstats
[ [ index = ] Integer ]
[ [ rr = ] Integer ]
- [ 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.
-
To list the index value for each interface, use the show interface command in the netsh interface ipv4 context.
To display RIP statistics every 5 seconds for an interface with an index value of 1, type:
show ifstats index=1 rr=5
Displays RIP interface IPv4 address binding. Used without parameters, show ifbinding displays information once for all interfaces.
show ifbinding
[ [ index = ] Integer ]
[ [ rr = ] Integer ]
- [ 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.
-
To list the index value for each interface, use the netsh interface ipv4 show interface or netsh interface ipv6 show interface commands.
To display the bindings every 5 seconds for an interface with an index value of 1, type:
show ifbinding index=1 rr=5
Displays RIP global statistics.
show globalstats
[ [ rr = ] Integer ]
- [ rr = ] Integer
- Specifies, in seconds, how often you want the information to be refreshed.
To display RIP global statistics which refreshes at the rate of every 5 seconds, type:
show globalstats rr=5
Displays RIP peer statistics.
show neighbor
[ [ index = ] Integer ]
[ [ rr = ] Integer ]
- [ 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.
-
To list the index value for each interface, use the show interface command in the netsh interface ipv4 context.
To display the bindings for IP address 10.0.0.1 at a refresh rate of every 5 seconds, type:
show neighbor index=1 rr=5
